CVS log for epic5/source/ircaux.c

Epicsol.org
(back) Up to [Epic CVS] / epic5 / source

Request diff between arbitrary revisions


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.196 / (view) - annotate - [select for diffs] , Thu Jun 26 03:23:11 2008 UTC (3 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_9, HEAD
Changes since 1.195: +12 -2 lines
Diff to previous 1.195
* Add support for /ignore'ing a server (for undernet)
* Add --without-wserv flag to configure (see UPDATES)
* Add checks in configure for posix-like job control
* Add support so no job control -> no wserv support.

Revision 1.195 / (view) - annotate - [select for diffs] , Fri Apr 4 23:20:38 2008 UTC (6 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_8
Changes since 1.194: +17 -2 lines
Diff to previous 1.194
* Phase two of larne's patch is to isolate features that require job control
* You can #define NO_JOB_CONTROL to turn off fork/exec type stuff.
* Soon, the configure script will auto-grok this.

Revision 1.194 / (view) - annotate - [select for diffs] , Fri Apr 4 03:51:05 2008 UTC (6 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.193: +2 -2 lines
Diff to previous 1.193
* Roll in a bunch of changes from larne to make epic5 more vms-friendly
* Rename if.h -> ifcmd.h  (larne) -- Make sure you rerun configure!
* Run make depend to pick up name change of if.h
* Check for <sys/param.h> in configure (larne)
* Extern funcs are case insensitive in strict c90, fix (larne)
* Rename options -> options.h since vms requires a dot in filename (larne)
* Change "readonly" -> "rdonly" since "readonly" is a symbol in vms. (larne)
* Pull in "compat.h" for gailib.c and glob.c (larne)
* Set stdout to be explciitly line buffered at startup (larne)
* Returning a value from void functino forbidden by strict c90. fix (larne)
* Fix some compiler warnings that were lying around.
* There are more changes forthcoming, these were the easy ones.

Revision 1.193 / (view) - annotate - [select for diffs] , Sat Mar 29 18:00:16 2008 UTC (6 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.192: +2 -2 lines
Diff to previous 1.192
* Roll forward portability changes from epic4-2.10 (larne)
* This also includes term.h -> termx.h -- Make sure you rerun configure!

Revision 1.192 / (view) - annotate - [select for diffs] , Tue Feb 26 03:46:18 2008 UTC (7 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.191: +7 -2 lines
Diff to previous 1.191
* Add /on signal (pegasus)
* Fix build on interix (twincest)
* Fix compile warnings and a c99-ism
* Fix another panic() causable by /echo. ugh.

Revision 1.191 / (view) - annotate - [select for diffs] , Sat Feb 16 23:42:05 2008 UTC (7 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.190: +2 -2 lines
Diff to previous 1.190
Fix all the compile warnings that I let go way too long.

Revision 1.190 / (view) - annotate - [select for diffs] , Sat Feb 16 03:38:28 2008 UTC (7 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_7
Changes since 1.189: +1 -13 lines
Diff to previous 1.189
* Put 'sig.inc' in include rather than source to fix build for r/o srcdir
* #undef strtoimax() if we are going to define our own to fix build
* Fix printf() qualification for syserr()
* Fix $write(@W<num> ...) so uppercase W works
* Nix strip_control() which isn't used any more.
* Make #define WINDOW_CREATE go away -- it's now mandatory.
* Reorganize do_screens() in prep for future work

Revision 1.189 / (view) - annotate - [select for diffs] , Wed Jan 23 04:05:55 2008 UTC (8 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_6
Changes since 1.188: +10 -2 lines
Diff to previous 1.188
* Fix new math parser comparison operators to work properly with numbers.
* Add function $check_code(), looks for unmatched parens or braces in string.

Revision 1.188 / (view) - annotate - [select for diffs] , Tue Jan 22 04:03:40 2008 UTC (8 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.187: +50 -1 lines
Diff to previous 1.187
* Add a new internal function prepare_display2() a reduced version of p_d().
* Add a new internal function fix_string_width(), the guts of $fix_string()
* Fix /set indent to use prepare_display2(). Now you can use ^C codes. yay!
* Fix fd leak if fork() fails for /exec.
* Fix window toplines so they extend the width of the screen like statusbars.

Revision 1.187 / (view) - annotate - [select for diffs] , Tue Dec 4 16:42:01 2007 UTC (10 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.186: +1 -3 lines
Diff to previous 1.186
Fix build

Revision 1.186 / (view) - annotate - [select for diffs] , Sat Dec 1 04:52:05 2007 UTC (10 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.185: +73 -58 lines
Diff to previous 1.185
* Everything below is from fusion (Alexander Grotewohl)
* If libarchive is present, support zip/tar files in /load and $open()
* Create a new "epic load file" data type that wraps FILE or libarchive.
* Extend uzfopen() to use the new "epic load file" data type.
* Extend the loader to honor the new "epic load file" data type
* Extend $open() [read only for now] to honor the epic load file data type
* Not all operations are supported on zip files.
* Add new function $fix_width() returns string with a guaranteed printable len
* End of things contributed by fusion (Alexander Grotewohl)

Revision 1.185 / (view) - annotate - [select for diffs] , Thu Sep 20 03:00:11 2007 UTC (12 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.184: +3 -1 lines
Diff to previous 1.184
* Create aliases for [url|b64][en|de]code, sedcrypt, and sha256 into builtins.
* Comment out builtin [url|b64][en|de]code, sedcrypt, sha256 builtin functions.
* Change /xquote -u to use xform() instead of urldecode().
* Change dcc_url[en|de]code to use xform() instead of urldecode().
* Change /on ssl_server_cert to use xform() isntead of urldecode().
* This allows me to comment out old urldcode/base64decode stuff. yay!

Revision 1.184 / (view) - annotate - [select for diffs] , Mon Sep 17 02:43:57 2007 UTC (12 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_5
Changes since 1.183: +4 -1 lines
Diff to previous 1.183
* Fix apparantly bogus test that prevented .files from being /load'ed (rb wjr)

Revision 1.183 / (view) - annotate - [select for diffs] , Mon Sep 17 02:34:15 2007 UTC (12 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.182: +25 -1 lines
Diff to previous 1.182
* Add split_string() which converts a general delimited string to (char **)
* Add $splitw(delim string) which converts delimited string into a dword list
* Use $unsplit() to convert $splitw() into a uword list (see UPDATES)
* Fix ./configure --without-ipv6 to allow compiling on opensewer.

Revision 1.182 / (view) - annotate - [select for diffs] , Mon Sep 10 03:13:26 2007 UTC (13 months ago) by jnelson
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181
* The dot (".") and tilde ("~") are unreserved characters in rfc3986 (urlencode)

Revision 1.181 / (view) - annotate - [select for diffs] , Fri Sep 7 17:07:29 2007 UTC (13 months ago) by jnelson
Branch: MAIN
Changes since 1.180: +25 -19 lines
Diff to previous 1.180
* Revert commit 1498 (the dcc stuff) -- it was half baked.
* Fix warnings found with --with-warns.

Revision 1.180 / (view) - annotate - [select for diffs] , Wed Sep 5 19:10:03 2007 UTC (13 months, 1 week ago) by howl
Branch: MAIN
Changes since 1.179: +72 -1 lines
Diff to previous 1.179
* Commit 1500!
* Added function $isutf8(). This function "guesses" whether or not a string
  is UTF-8, and will return the number of UTF-8 symbols, if it is recognised
  as UTF-8.

Revision 1.179 / (view) - annotate - [select for diffs] , Thu Aug 23 02:56:36 2007 UTC (13 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.178: +4 -2 lines
Diff to previous 1.178
* Fix missing NULL for $hookctl(list ...) [rb howl]
* Fix various other issues that valgrind found (yay!)

Revision 1.178 / (view) - annotate - [select for diffs] , Wed Aug 22 20:57:18 2007 UTC (13 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.177: +4 -10 lines
Diff to previous 1.177
--- This is a bunch of stuff I've been sitting on while I wait for howl to
finish what he was doing. ---

* Add support for ./configure --localdir
* Add support for ./configure --with-iconv=/usr/local
* Add support for looking for iconv in configure in various places
* Make configure check for nanosleep().
* Add function decls for [sg]et_server_realname()
* New version of screen.e
* Change "filename" to "local_filename" in dcc's, in prep of further work.
* Un-revert a few minor things.

Revision 1.177 / (view) - annotate - [select for diffs] , Wed Aug 22 17:40:26 2007 UTC (13 months, 3 weeks ago) by howl
Branch: MAIN
Changes since 1.176: +55 -1 lines
Diff to previous 1.176
* Added $serverctl(get/set -1 realname/default_realname).
* $Y now is a synonym for $serverctl(get -1 realname).
* Added $xform(iconv fromcode/tocode ...) wrapper around iconv(3). With this
  epic5 takes babysteps towards supporting Unicode.

Revision 1.176 / (view) - annotate - [select for diffs] , Tue Aug 14 01:29:50 2007 UTC (13 months, 4 weeks ago) by jnelson
Branch: MAIN
Changes since 1.175: +10 -2 lines
Diff to previous 1.175
* Add /SET DEFAULT_REALNAME and DEFAULT_USERNAME
* Add scripted /set realname and /ircuser in builtins for backwards compat.

Revision 1.175 / (view) - annotate - [select for diffs] , Mon Aug 13 02:26:42 2007 UTC (14 months ago) by jnelson
Branch: MAIN
Changes since 1.174: +14 -14 lines
Diff to previous 1.174
* Fix configure so --with-threaded-stdout pulls in -pthread
* Include some commented out code that I'm ruminating over for input line
* Create CURSOR_LEFT and CURSOR_RIGHT macros to avoid assigning LOGICAL_CURSOR
* Default xforms now don't need to be ordered, or have default refnums.

Revision 1.174 / (view) - annotate - [select for diffs] , Thu Aug 2 21:12:18 2007 UTC (14 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.173: +65 -11 lines
Diff to previous 1.173
Make $xform() support dynamic at runtime.  I'll be using this soon to
remove the #ifdef HAVE_SSL in ircaux.c

Revision 1.173 / (view) - annotate - [select for diffs] , Fri Jul 20 21:29:32 2007 UTC (14 months, 3 weeks ago) by jnelson
Branch: MAIN
Changes since 1.172: +2 -2 lines
Diff to previous 1.172
Remove u_* bsd-isms so we can compile with -ansi on linux.

Revision 1.172 / (view) - annotate - [select for diffs] , Sat Jun 2 14:04:56 2007 UTC (16 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_4
Changes since 1.171: +28 -1 lines
Diff to previous 1.171
* Fix it so it compiles without ssl support again.
* Add "ALL" $xform() encoder, returns all valid xforms

Revision 1.171 / (view) - annotate - [select for diffs] , Sat Jun 2 00:53:30 2007 UTC (16 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.170: +10 -2 lines
Diff to previous 1.170
* Allow encryption $xform() handlers to reformat their keys, so we can...
* Add SHA256/AES/AESSHA $xform() encoders

Revision 1.170 / (view) - annotate - [select for diffs] , Sat Jun 2 00:19:13 2007 UTC (16 months, 1 week ago) by jnelson
Branch: MAIN
Changes since 1.169: +23 -35 lines
Diff to previous 1.169
* Fix happykey().  Sometimes, I just don't pay enough attention.
* Don't trim 1 too many chars on incoming encrypted messages. Important!
* Fix buffer sizes being too small to hold buffer for enc/dec short strings.
* Add $xform() handlers for blowfish and cast5
* Whip the $xform() callback functions into usable shape.
* Fix base64 encoding both via $xform() and $b64encode().
* Rewrite $xform(), see UPDATES.  Strong crypto now supported! YAY!

Revision 1.169 / (view) - annotate - [select for diffs] , Wed May 30 01:26:23 2007 UTC (16 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.168: +41 -20 lines
Diff to previous 1.168
* Add a server param to what_channel() so i can use it in send_text() later.
* Add length of 'meta' arg to ciphers so 'meta' doesn't have to be c string

Revision 1.168 / (view) - annotate - [select for diffs] , Tue May 8 23:20:35 2007 UTC (17 months ago) by jnelson
Branch: MAIN
Changes since 1.167: +18 -10 lines
Diff to previous 1.167
Flush recent changes.

Revision 1.167 / (view) - annotate - [select for diffs] , Thu Apr 12 02:24:14 2007 UTC (18 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_3
Changes since 1.166: +16 -13 lines
Diff to previous 1.166
* Add arg to panic() controlling whether panic is sent via QUIT (rb black)

Revision 1.166 / (view) - annotate - [select for diffs] , Mon Nov 13 04:27:47 2006 UTC (22 months, 4 weeks ago) by jnelson
Branch: MAIN
Changes since 1.165: +53 -8 lines
Diff to previous 1.165
* Make the build work with socks5 again, for freebsd ports support
* Add malloc_strcat3_c().
* Optimize malloc_strcat_word_c

Revision 1.165 / (view) - annotate - [select for diffs] , Sat Nov 4 17:16:56 2006 UTC (23 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_2
Changes since 1.164: +4 -1 lines
Diff to previous 1.164
* Change last_arg() so it dequotes the retval according to the word type
* Change $pop() so it only takes an lvalue
* Change $revw() to use the last_arg() improvements
* Improve /xdebug so it takes a block as an argument
* Improve $push() so it pushes the hole argument as dword

Revision 1.164 / (view) - annotate - [select for diffs] , Fri Oct 27 01:29:01 2006 UTC (23 months, 2 weeks ago) by jnelson
Branch: MAIN
Changes since 1.163: +23 -1 lines
Diff to previous 1.163
* Add support for "conditional dequoting" in universal_next_arg_count
* Change next_earg() and next_func_arg() to use the conditional dequoting.
* This permits me to implement $qword() which returns a $word() literally! yay!

Revision 1.163 / (view) - annotate - [select for diffs] , Fri Oct 13 20:58:02 2006 UTC (23 months, 4 weeks ago) by jnelson
Branch: MAIN
Changes since 1.162: +35 -28 lines
Diff to previous 1.162
This is the start of a major project to normalize the behavior of word
handling in built in functions.  The project involves stipulating that every
place that handles a "word list" define what a "word" is and use it
consistenly, and to output the same type of "words" that it accepts as
input.  This leverages /xdebug dword to control optional support for dwords
in many built in functions.

Revision 1.162 / (view) - annotate - [select for diffs] , Thu Oct 5 23:12:40 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.161: +13 -3 lines
Diff to previous 1.161
* Make $urlencode() rfc3986-ish, converting all non-unreserved chars
* Change ServerInfo to use const char's since we don't modify them directly.
* Reorganize how ServerInfos are used, into "temporary" and "permanent" types
* Convert Server's use of ServerInfo's into safe permanent types.
* Add /server -update <refnum> <desc> to change server descs on the fly.
* Fix typo in /invite.
* Fix 'country' script by wrapping it with xdebug dwords.

Revision 1.161 / (view) - annotate - [select for diffs] , Fri Sep 22 11:24:53 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.160: +1 -9 lines
Diff to previous 1.160
Don't call happykey() on a plain text password.

Revision 1.160 / (view) - annotate - [select for diffs] , Thu Sep 21 23:51:54 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.159: +4 -1 lines
Diff to previous 1.159
* MORON.  Don't replace a 'return' with something that doesn't return!

Revision 1.159 / (view) - annotate - [select for diffs] , Thu Sep 21 23:24:21 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.158: +6 -3 lines
Diff to previous 1.158
* Fix valgrind bugs that nullie found (yay!)
* Fix bug with '' in the new math parser being NULL instead of empty string
* Add support for @#chan via notices to show up in #chan's window

Revision 1.158 / (view) - annotate - [select for diffs] , Fri Sep 15 02:02:44 2006 UTC (2 years ago) by jnelson
Branch: MAIN
Changes since 1.157: +23 -5 lines
Diff to previous 1.157
* Desupport dwords in a lot of builtin functions (see updates) [nullie]
* Make /window foo kill fail for want of 'foo' (see updates)

Revision 1.157 / (view) - annotate - [select for diffs] , Sat Sep 9 12:12:25 2006 UTC (2 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.156: +2 -2 lines
Diff to previous 1.156
Fix a typo reported by kev, who never ceases to astound me with how
dilligently he reviews the cvs changes!

Revision 1.156 / (view) - annotate - [select for diffs] , Fri Sep 8 21:52:50 2006 UTC (2 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.155: +8 -2 lines
Diff to previous 1.155
* Fix finite()/isfinite() madness.
* Look for clock_gettime() in -lrt for ubuntu.
* Automatic reconnect from nullie. yay!
* Change /xecho -v to always output to current window if it's visible.
* Fix /on's with arglists, so lower serial nums don't corrupt $*. [rb nullie]
* Fix memory leak with $url(en|de)code() [rb nullie]
* Change /server - so it calls disconnect() directly
* Fix const correctness problems with sha2.c

Revision 1.155 / (view) - annotate - [select for diffs] , Fri Sep 1 00:53:00 2006 UTC (2 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.154: +3 -3 lines
Diff to previous 1.154
* Fix /whois so trailing spaces don't look like real words.
* Change ltoa() to my_ltoa() for hpux's sake
* Change finite() to isfinite() for hpux's sake

Revision 1.154 / (view) - annotate - [select for diffs] , Thu Jun 29 00:13:53 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_1
Changes since 1.153: +3 -3 lines
Diff to previous 1.153
___ WARNING ___ This stuff is all wildly un(der)tested.
I will get to that soon!  But I'm too excited about this to sit on it.

* Add AESSHA256 support (AES256 using the SHA256 digest of your passkey)
* Rename "EXTCRYPT" to "PROGCRYPT"
* Migrate SED support from crypt.c to crypto.c
* Integrate SED and extprog support into the mainline [de]cipher_message()
* Refactor [de]cipher_message() to be less lame.
* Support "anycrypt" support (AESSHA, AES, BLOWFISH, CAST5, SED, PROG)
* Include sha256 implementation from Karll.  Thanks Karll!
* Unify the ctcp handling of all crypto ctcps
* Add $sha256() function to test sha support (digest)
* Make funcs in crypto.c static and just expose [de]crypt_msg().
* This finishes the divide between crypt.c (front end) and crypto.c (back end)
* Fix a gazillion compiler warnings and sort out const/unsigned char issues.

Revision 1.153 / (view) - annotate - [select for diffs] , Tue Jun 27 00:42:35 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.152: +3 -1 lines
Diff to previous 1.152
* Support cast5/blowfish encryption a la ircII.
* Fix build for non-ssl users.

Revision 1.152 / (view) - annotate - [select for diffs] , Tue Jun 6 04:08:48 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.151: +2 -2 lines
Diff to previous 1.151
* Eliminate the third argument to expand_alias(), the statement spanner.
* Rename parse_line() to parse_block() to better reflect its duties.
* Make parse_block() static.  Everything needs to call runcmds() now.
* Eliminate the local-stack-creating feature of parse_block(), callers do this.
* Rename 'line' to 'stmt' in parse_statement().
* Sort of forget to re-implement /set cmdchars.  The / is the cmdchar.
* Try to optimize parse_statement() and next_statement() some.

Revision 1.151 / (view) - annotate - [select for diffs] , Sat Jan 7 16:46:39 2006 UTC (2 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_2_0, epic5-0_0_8
Changes since 1.150: +14 -9 lines
Diff to previous 1.150
Fix various compiler issues.

Revision 1.150 / (view) - annotate - [select for diffs] , Sat Jan 7 16:37:40 2006 UTC (2 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149
Fix up the url encoders to encode the + char.

Revision 1.149 / (view) - annotate - [select for diffs] , Fri Dec 16 05:14:15 2005 UTC (2 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.148: +91 -1 lines
Diff to previous 1.148
Implement xforming for CTCP.

Revision 1.148 / (view) - annotate - [select for diffs] , Sat Dec 10 00:49:32 2005 UTC (2 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.147: +395 -1 lines
Diff to previous 1.147
* Add partial implementation of $xform() (see UPDATES)
* Add shell of implementation of new_send_text() which i hope to finish...
* Fix bug in $b64decode()

Revision 1.147 / (view) - annotate - [select for diffs] , Sun Oct 30 22:41:19 2005 UTC (2 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.146: +4 -23 lines
Diff to previous 1.146
* Switch users of LEVEL_CRAP to LEVEL_OTHER. yay!
* Whack some unused functions and decls, make *toa() funcs return const.
* Roll get_window_by_name() into get_window_by_desc(), it's only user.

Revision 1.146 / (view) - annotate - [select for diffs] , Tue Oct 4 02:47:45 2005 UTC (3 years ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_7
Changes since 1.145: +1 -177 lines
Diff to previous 1.145
* Include <stddef.h> if we can, for no particular reason...
* Nix now unused mangle_line(). yay!
* Use (intptr_t) instead of (intmax_t) to treat pointers as integers...
* Try to handle failures from the dns helpers with more grace.

Revision 1.145 / (view) - annotate - [select for diffs] , Fri Sep 30 02:38:04 2005 UTC (3 years ago) by jnelson
Branch: MAIN
Changes since 1.144: +2 -8 lines
Diff to previous 1.144
For a little while at least, $stripcrap() acts differently from the
/set mangle_* type stuff.  This is a work in progress.  Please be patient =)

* Nix the last vestiges of the unsupported ROM_CHAR feature.
* Nix some now unused function decls in screen.h
* Add new_normalize_line, which is a unified normalizer/mangler (*gulp*)
* Cut over $stripcrap() to use new_normalize_line (*double gulp*)
* Rename "ANSI" mangle type to "NORMALIZE", but still accept "ANSI"
* Nix the gxlate table, and change ^T from State 4 to State 6 character.

Revision 1.144 / (view) - annotate - [select for diffs] , Thu Sep 29 00:01:27 2005 UTC (3 years ago) by jnelson
Branch: MAIN
Changes since 1.143: +1 -3 lines
Diff to previous 1.143
* Fix some bugs, naturally.
* Nix the (apparantly) unused normalize_never_xlate global variable.
* Add function comments to some stuff in screen.c (comments! the horor!)
* Move read_esc_seq so it's closer to read_color_seq.
* State 1 chars (C1 chars) are stripped unless /set allow_c1_chars
* State 6 chars (Control chars) are stripped unless TERM_CAN_GCHAR is set
* State 4 chars (Highlight chars) are handled singly
* Plus, ALL_OFF is not generated unless you do an ALL_OFF! HUZZAH!

Revision 1.143 / (view) - annotate - [select for diffs] , Wed Sep 28 01:32:46 2005 UTC (3 years ago) by jnelson
Branch: MAIN
Changes since 1.142: +2 -25 lines
Diff to previous 1.142
* Fix $stripc() to be a clone of $stripcrap(), just to strip colors
* Nix the now unused strcpy_nocolorcodes().
* Fix up read_color_seq() to return an offset, not ptr, a la skip_ctl_c_seq().
* Fix mangle_line() to use read_color_seq instead of skip_ctl_c_seq
* Nix the now unused skip_ctl_c_seq(). Only one thing now reads ^C's! HUZZAH.
* Rename skip_esc_seq() to read_esc_seq() just because.
* Begin moving logic|display_attributes towards a change model system
* Begin a radical change on how characters are given "state" (see source)
* Basically 8 bit chars (except c1 chars) are treated as "always printable" now
* Mangle a few other callers to logic_attributes, i'm sure these are b0rked.

Revision 1.142 / (view) - annotate - [select for diffs] , Sat Sep 24 02:04:28 2005 UTC (3 years ago) by jnelson
Branch: MAIN
Changes since 1.141: +4 -1 lines
Diff to previous 1.141
* Split handling of ESC seqs out of normalize_string() into skip_esc_seq().

Revision 1.141 / (view) - annotate - [select for diffs] , Thu Aug 25 12:49:36 2005 UTC (3 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.140: +6 -8 lines
Diff to previous 1.140
Add configure glop for intmax_t for c90 systems.  Will start using later.

Revision 1.140 / (view) - annotate - [select for diffs] , Wed Aug 17 22:35:22 2005 UTC (3 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.139: +24 -1 lines
Diff to previous 1.139
Round 1 of an attempt to support 64 bit ints without breaking the build for
systems with only 32 bit ints (ie, vms).  I will phase in support for c99's
"intmax_t" and hacks for backwards compatability "soon".

Revision 1.139 / (view) - annotate - [select for diffs] , Tue Aug 9 01:01:05 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_6
Changes since 1.138: +2 -2 lines
Diff to previous 1.138
* Improve /dcc get
* Fix warnings

Revision 1.138 / (view) - annotate - [select for diffs] , Fri Aug 5 23:54:23 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.137: +2 -1 lines
Diff to previous 1.137
Add humanize_number() and fix compiler warnings. more to follow!

Revision 1.137 / (view) - annotate - [select for diffs] , Wed Aug 3 02:10:07 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.136: +8 -1 lines
Diff to previous 1.136
* Add "UNPRINTABLE" as a mangle type, remove all non-printable chars.

Revision 1.136 / (view) - annotate - [select for diffs] , Sun Jul 24 14:45:03 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.135: +28 -6 lines
Diff to previous 1.135
* Fix up how relative filenames are found with /load.  See UPDATES
* Add ascii_str[n]icmp and rfc1459_str[n]icmp for use with alists.
* Make nick+channel name lookups handled according to 005 CASEMAPPING!

Revision 1.135 / (view) - annotate - [select for diffs] , Sat Jul 23 05:30:24 2005 UTC (3 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.134: +67 -14 lines
Diff to previous 1.134
* When a window is resized, make sure scrollback is bigger than new size.
* Add multiple stricmp tables, "ascii" and "rfc1459"
* Make all string insensitive compares use "ascii"
* Add black's ornamentation on the addset script.
* Fix some regression scripts
* Fix pf bugs with various scripts.
* Add the [$func](args) capability to the new math parser.
* Add the === and !== literal equivalence (case sensitive) operators.
* Sort of set the case sensitive mapping to use in the 005 handler (hack!)
* Fix error recovery of ssl connections.

Revision 1.134 / (view) - annotate - [select for diffs] , Fri Apr 1 03:04:52 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_5
Changes since 1.133: +2 -2 lines
Diff to previous 1.133
* Check for arc4random() in configure, don't use compat.c version if possible.
* GC "fill_it_out" code which has been deactive for a while.
* Fix translation casting error for zlonix
* Allow current_package() to return NULL, handle that as special case.
* Refactor the startup loading stuff
* Move a couple of loads out of basical and into global.

Revision 1.133 / (view) - annotate - [select for diffs] , Sat Mar 19 03:55:55 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.132: +7 -4 lines
Diff to previous 1.132
* Change "ERROR --" to "INFO --" to not alarm people as much.
* Change a few other warnings to not be so alarming.
* Change new_realloc() to not move ptr if it is big enough to hold new size.
* Fix all the status_* sub-formats to not have any hardcoded size limits.

Revision 1.132 / (view) - annotate - [select for diffs] , Fri Mar 4 00:57:44 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_4
Changes since 1.131: +3 -3 lines
Diff to previous 1.131
* Add --with-multiplex=[select|poll|kqueue|pthread] to configure
* Check thread-safety of SSL in configure when using pthreads.
* Don't unconditionally skip leading :'s in symbol names.
* When calling functions, handle skipping leading :'s specially.
* Add support for pthread locking for ssl to ssl.c
* Add %{2}+ and %{3}+ status expandos that only show the mode string.
* Use AI_ADDRCONFIG flag to tell getaddrinfo() we only want addrs we can use.

Revision 1.131 / (view) - annotate - [select for diffs] , Thu Mar 3 02:22:12 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130
Fix more compiler warnings.

Revision 1.130 / (view) - annotate - [select for diffs] , Thu Mar 3 02:10:39 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.129: +4 -68 lines
Diff to previous 1.129
* Refactor the error stuff by eliminating my_strerror() and dgets_errno.
* Error messages are now delivered on multiple levels as info is available.
* This may get annoying, but it's a lot more accurate now!
* Change inet_* functions to return int's since their retval is unused.
* Add a new internal "syserr()" function that generates formatted errors.
* Syserr's look like say()s but they act like yell()s. (can hook with /on yell)
* Keep an counter in the server stuff so we can count off as addrs are used.
* So the error message in /ON DCC_LOST is always just "ERROR" now.
* Fix various compiler warnings and stuff.
* Add $hookctl(GET HOOK <ref> STRING), return /load'able format of ON
* Fix some debugging outbound in switch_hostname(), doh!
* Roll set_socket_options() into a new Socket() function.
* Roll connections to AF_UNIX sockets into the mainline stuff.
* Roll nonblocking/connect/nonblocking into Connect().
* Add AF_UNIX support to Getnameinfo() to remove annoying errors.
* When doing recovery from EBADF in select, only check fd's we're using
* Just puke if configured for kqueue() and kqueue() fails.
* Don't puke on default 353 output if the userlist arg is missing. (for ratbox)
* Permit doing /window name to change case of window's name.

Revision 1.129 / (view) - annotate - [select for diffs] , Mon Feb 21 14:07:43 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.128: +5 -2 lines
Diff to previous 1.128
Fix more bugs.

Revision 1.128 / (view) - annotate - [select for diffs] , Mon Feb 21 03:11:35 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.127: +57 -2 lines
Diff to previous 1.127
Fix $sar() and $msar() so the "new" string can contain the "old" string as
part of it (which before this commit infinitely substituted until failure)

Revision 1.127 / (view) - annotate - [select for diffs] , Sat Feb 19 04:22:26 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.126: +6 -2 lines
Diff to previous 1.126
* Refactor $sar() and $msar() so they share as much code as possible.
* Refactor newio, support select/kqueue/poll (#define's in newio.h)
* ... Getting closer to not needing select!
* Fix SSL.
* Fix a bunch of misc compiler warnings
* Remove restrictions on /QUOTE, so there!
* Add pthread support to newio for larne. HUZZAH!
* I'm sure a zillion things are broken, so it's time to test!

Revision 1.126 / (view) - annotate - [select for diffs] , Sun Jan 23 21:41:28 2005 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_3
Changes since 1.125: +11 -8 lines
Diff to previous 1.125
* Hide ArgListT in alias.h to only those who need it, to save numbers.c
* Fix up a lot of compile warnings all over the place.
* Some changes to $hookctl() might need feedback from howl...
* Fix vhost support so we can do inbound sockets again.

Revision 1.125 / (view) - annotate - [select for diffs] , Wed Jan 12 00:12:20 2005 UTC (3 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.124: +10 -106 lines
Diff to previous 1.124
* Refactor window_check_servers() to work with server's current window only.
* Roll forward all the rest of changes from epic4 (i think)
* Add /ON NEW_NICKNAME, when epic needs a new nickname from you.
* Run 'make depend', fix compile errors, fix 'environment' script

Revision 1.124 / (view) - annotate - [select for diffs] , Thu Jan 6 23:54:13 2005 UTC (3 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.123: +87 -47 lines
Diff to previous 1.123
* After connect()ing to a server, save the remote peername
* This fixes $serverctl(GET <num> PORT)
* This also fixes $servports(), which should work as (not) documented.
* Fix for notify_signon default handler, from larne. thanks!
* Add $serverctl(GET <num> ADDRFAMILY), returns "ipv4", "ipv6" or "unix"
* Allow /hostname <ipv4>/<ipv6>, separately set v4/v6 vhosts! (see UPDATES)

Revision 1.123 / (view) - annotate - [select for diffs] , Tue Nov 2 23:17:34 2004 UTC (3 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.122: +13 -1 lines
Diff to previous 1.122
* Fix $logctl() from epic4.
* ALL/ALL_OFF fix from epic4.

Revision 1.122 / (view) - annotate - [select for diffs] , Sat Oct 30 13:56:16 2004 UTC (3 years, 11 months ago) by crazyed
Branch: MAIN
Changes since 1.121: +2 -4 lines
Diff to previous 1.121
* New /ISON bells and whistles as per UPDATES.
* Changes to /reconnect, /server -a, /on server_established and
  remove_from_comma_list() as per KNOWNBUGS.

Revision 1.121 / (view) - annotate - [select for diffs] , Wed Oct 13 22:25:55 2004 UTC (3 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.120: +19 -1 lines
Diff to previous 1.120
Add $winquery() and $hookctl(), written by howl.

Revision 1.120 / (view) - annotate - [select for diffs] , Tue Oct 5 02:26:29 2004 UTC (4 years ago) by jnelson
Branch: MAIN
Changes since 1.119: +2 -1 lines
Diff to previous 1.119
Fix memory leak.

Revision 1.119 / (view) - annotate - [select for diffs] , Mon Oct 4 22:56:20 2004 UTC (4 years ago) by jnelson
Branch: MAIN
Changes since 1.118: +34 -1 lines
Diff to previous 1.118
* Add a bunch of stuff to debug the who_queue to find and fix adm's bug.

Revision 1.118 / (view) - annotate - [select for diffs] , Mon Sep 13 17:29:57 2004 UTC (4 years ago) by crazyed
Branch: MAIN
Changes since 1.117: +33 -13 lines
Diff to previous 1.117
* Minor changes to dcc loss processing and the commandqueues script.
* Applied Howls shebang patch.

Revision 1.117 / (view) - annotate - [select for diffs] , Tue Aug 17 15:09:46 2004 UTC (4 years, 1 month ago) by crazyed
Branch: MAIN
Changes since 1.116: +13 -1 lines
Diff to previous 1.116
* Numerous new and changed features as per UPDATES.
* Better handling of damaged /who x,y responses.

Revision 1.116 / (view) - annotate - [select for diffs] , Wed Aug 11 22:58:39 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.115: +5 -5 lines
Diff to previous 1.115
* Nix /save and pray nobody notices.
* Implement pmatch_* stuff in alias.c to use the unified symbol table.
* Commands, functions, and expandos now 100% integrated.  HUZZAH!
* Reimplement $get(set|command|function)s() to use the pmatch_* stuff.
* So they now pick up changes at runtime. HUZZAH!
* Allow built in /set to be conditionally added to the "set bucket"
* Don't put user-created /set's in the bucket
* Allow user to replace one user-created /sets but not builtin sets.
* Allow mangling of ALT_CHAR -- how did this ever get missed?
* Fix $currchans() so it works the way the documentation says it does.
* Fix some const correctness issues, introduce others. bleh.

Revision 1.115 / (view) - annotate - [select for diffs] , Sun Aug 8 02:52:50 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.114: +4 -3 lines
Diff to previous 1.114
Sync up with all the bug fixes from epic4.

Revision 1.114 / (view) - annotate - [select for diffs] , Wed Jul 28 00:02:39 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.113: +2 -2 lines
Diff to previous 1.113
* Refactor IrcVariable to not depend on having the varname.
* This will lead to multiple hard links to the same /set value in the future.
* Nix the 'name' and 'hash' values in IrcVariable, no longer needed.
* Make all uses of "realname" use the /set realname variable (rb adm)
* Nix the global "realname" variable, use /set realname for all.
* Fix bug with free_bucket()
* Fix compile warnings in vars.c
* Store built in variable xref table in a bucket.
* When changing a user-created /set, start calling the user's scriptback
* Allow the user's scriptback to call /set to override the user's value.
* Tell the user that they created a new /set.

Revision 1.113 / (view) - annotate - [select for diffs] , Mon Jul 26 22:35:20 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.112: +73 -1 lines
Diff to previous 1.112
* Add the rest of funcs to do builtin var support in unified symbol table.
* Change the unified data type for builtin funcs to (IrcVariable *).
* Implement "buckets", for O(N) scans of the unified symbol table.
* Change DEFAULT_USERINFO to DEFAULT_USER_INFORMATION to match the /set.
* Make the *_VAR stuff in vars.h 'int's.
* Change USER_INFO_VAR to USER_INFORMATION_VAR to match the /set.
* Change CLIENTINFO_VAR to CLIENT_INFORMATION_VAR to match the /set.
* Change STATUS_NICK_VAR to STATUS_NICKNAME_VAR to match the set.
* Put the defn of (struct IrcVariable) in vars.h, to expose to unified table.
* Convert all uses of now defunct (enum VAR_TYPES) to (int)
* Create "make_string_var_bydata", converts (IrcVariable *) to malloc string
* Change get_var_alias() to return (IrcVariable *)
* In that function that outputs set values, use make_string_var_bydata().
* Change hardcoded *_VAR uses into pointers to *_VAR, for deref at runtime.
* Major revamp of vars.c, to wholly create built in vars at runtime.
* Built in variables are stored in unified symbol table and vars.c xref array.
* *_VAR values now point through xref array to the actual variable data.
* Nix the now unnecessary get_variable_index().
* Add create_user_set(), backend for /SET -CREATE
* Add /SET -CREATE <name> <type> [{<code>}]
* Need to go back and implement the {<code>} thing.
* Revamp how /set works, using buckets, to implement auto-completion.
* $getsets() is not implemented yet, do that too.
* When looking up $<setname>, use the unified symbol table. HUZZAH!

Revision 1.112 / (view) - annotate - [select for diffs] , Mon Jun 28 22:48:15 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.111: +109 -1 lines
Diff to previous 1.111
* Begin massive refactorization of alias.c, redefining "Alias" as "Symbol"
* Refactor parse_line() with a bunch of front end call_* functions.
* And a general parse_line() front end, "runcmds()".
* Roll builtin expandos in with the user variables
* Roll variables and commands together into one name space. HUZZAH!
* Nix the caches for the global name space, for now.
* I definitely broke /stack alias|assign here.  I'll fix it later.
* Inline expandos are now officially strings instead of a single char.
* Fix bug with $unshift() that popped up.
* Move after_expando() to ircaux.c.  I think it belongs there more.

Revision 1.111 / (view) - annotate - [select for diffs] , Fri Mar 19 06:05:13 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_2
Changes since 1.110: +1 -23 lines
Diff to previous 1.110
GC a bunch of useless cruft and stuff.

Revision 1.110 / (view) - annotate - [select for diffs] , Fri Mar 12 22:22:00 2004 UTC (4 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.109: +21 -1 lines
Diff to previous 1.109
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********
* Import epic4 commits 674 through 692, inclusive.
* Import epic4 commits 693 through 710, inclusive (epic4-2.0 final)
* Change _X and _Y macros to LEVEL and LEVELMASK for linux (sigh)
* Add a searchbuf() 8 bit clean byte-finder for future use.
* Convert flood checking, ignore checking, lastlog, logfiles to int masks.
* Convert message_from to int masks.
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********

Revision 1.109 / (view) - annotate - [select for diffs] , Thu Jan 29 06:59:55 2004 UTC (4 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.108: +19 -2 lines
Diff to previous 1.108
Merge changes from epic4 commits 674 to 692, inclusive.

Revision 1.108 / (view) - annotate - [select for diffs] , Mon Jan 5 16:24:40 2004 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.107: +93 -1 lines
Diff to previous 1.107
* Allow client_connect() to be nonblocking
* Allow Getaddrinfo() and Freeaddrinfo() to be called extern.
* Track writable sockets in 'global_max_fd' too.
* Keep a list of AI's for server addresses in the server code
* When server connection lost before registration, use the next AI
* Implement set_server_status(), which controls where server is in lifetime
* Nix reconnect(), which is replaced by close_server + set_server_status().
* Nix server_reconnects_to(), we no longer reconnect to servers.
* Make /xdebug server_connect the default for this commit at least
* Call window_check_servers() every time through io(), because...
* Make window_check_servers() look for disconnected servers and restart them.
* Add add_mode_to_str() which adds a channel or usermode to a string (sorted)
* Make usermodes use add_mode_to_str()
* Make channel modes use add_mode_to_str()
* Now modes are not stored in bitmasks, not hard-coded at compile time. HUZZAH!
* Nix "inactive" field in channels, channels are thrown away at disconnect
* Don't allow channels to move between servers, natch.
* Nix all the code to handle disconnected channels and such.
* Use change_window_server() to move windows to new servers, because...
* Make window_check_servers() auto-close windowless servers.
* Make change_window_server(<server>, NOSERV) cause a disconnect from <server>
* Don't honor /set auto_reconnect, we don't ever reconnect.
* Fix printf() error in /on kick default output
* Add new server state, SERVER_RECONNECT which means "i can be connected"
* So now SERVER_CLOSED means "don't reconnect me"
* Allow /server, /window server, and /reconnect to change CLOSED -> RECONNECT
* Make server connections nonblocking.
* Server connections are now nonrecursive, nonblocking, multi-protocol. HUZZAH!
* GC a bunch of server code dealing with reconnection we don't use now.
* Don't call window_check_servers() other than io() for sanity reasons.
* Make /window server just change server, let w_c_s() bootstrap connection
* Remove many window->channel->server sanity checks.

Revision 1.107 / (view) - annotate - [select for diffs] , Thu Dec 18 02:22:31 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.106: +11 -11 lines
Diff to previous 1.106
Const correctness madness!

Revision 1.106 / (view) - annotate - [select for diffs] , Wed Dec 17 09:25:30 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.105: +15 -6 lines
Diff to previous 1.105
Make 'empty_string' (const char []).  Now we're cooking with gas!

Revision 1.105 / (view) - annotate - [select for diffs] , Sun Dec 14 20:04:10 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_1
Changes since 1.104: +3 -3 lines
Diff to previous 1.104
* Nix auto-append-of-$* feature (args_flag to expand_alias/parse_inline)
* Fix provided scripts to add $* when necessary.
* Fix up Makefile, configure, et al, to use epic5/ directories.

Revision 1.104 / (view) - annotate - [select for diffs] , Sat Dec 13 17:25:58 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_5
Changes since 1.103: +2 -2 lines
Diff to previous 1.103
* Make inet_vhostsockaddr() extern so dcc can use it
* Make dcc_open() use inet_vhostsockaddr() to bind /hostname to dcc conns
* Don't allow -b and -q, or -b -and -s, as they cause deadlocks/panics
* Fix casting error that caused $urlencode() of high bit chars to segfault
* If swapping in a window that has no room for double status, recalculate all
* If double-on in a window that has no room for it, recalculate all

Revision 1.103 / (view) - annotate - [select for diffs] , Sat Dec 6 02:03:11 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_4, epic4-1_2_3
Changes since 1.102: +2 -2 lines
Diff to previous 1.102
* The last argument to open_file_for_write() needs to be lowercase.
* Add $numlines() from fudd.
EPIC4-1.2.3!

Revision 1.102 / (view) - annotate - [select for diffs] , Wed Dec 3 05:21:11 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_2
Changes since 1.101: +2 -2 lines
Diff to previous 1.101
More compiler nits fixed.  Nothing worth fretting over.

Revision 1.101 / (view) - annotate - [select for diffs] , Fri Nov 14 21:23:40 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_1, epic4-1_2_0, epic4-1_1_17
Changes since 1.100: +4 -1 lines
Diff to previous 1.100
* current_window_priority should be global variable
* Valgrind is my hero -- fix buffer underruns with mangle_line().
* Make the "current input window" its server's current window on user input.

Revision 1.100 / (view) - annotate - [select for diffs] , Fri Nov 7 03:55:57 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_16, epic4-1_1_15
Changes since 1.99: +3 -3 lines
Diff to previous 1.99
From previous commit...
* Fix urldecode
* /lastlog -msgs 3 is obliged to skip back 3 msgs, not just 3 lastlog entries.
* Fix warnings in gailib.h

From this commit...
* Fix some const correctness issues
* Make message_to() take an (int) and not (unsigned) so we can pass in -1.
* Fix some arglist regression tests to reflect new extractw semantics.
* Fix uninitialized variable in ok_to_output() that caused panics.

Revision 1.99 / (view) - annotate - [select for diffs] , Fri Nov 7 03:51:10 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98
See KNOWNBUGS

Revision 1.98 / (view) - annotate - [select for diffs] , Fri Oct 31 16:10:25 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_14
Changes since 1.97: +11 -16 lines
Diff to previous 1.97
* Fix panic with $joinstr()
* Fix compiler warning comparing pointer against integer
* Fix word appender to NOT USE DOUBLE QUOTES if /xdebug extractw is off!
* Fix the word appender so it actually works right.

Revision 1.97 / (view) - annotate - [select for diffs] , Fri Oct 31 08:19:24 2003 UTC (4 years, 11 months ago) by crazyed
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96
* Numerous updates/changes/fixes to DCC, functions, scripts, /EXEC, the
  new math parser, as per UPDATES and KNOWNBUGS.

One potential incompatibility is in the change to $open(). (as per UPDATES)

Revision 1.96 / (view) - annotate - [select for diffs] , Tue Oct 28 05:53:57 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.95: +33 -597 lines
Diff to previous 1.95
* Add /set wserv_type, either "xterm" or "screen".
* Add malloc_strcat_word_c, add a single word to word list, with "" support
* Convert a bunch of stuff to use malloc_strcat_word_c to honor ""s right.
* GC a bunch of unused code.

Revision 1.95 / (view) - annotate - [select for diffs] , Fri Oct 10 05:22:39 2003 UTC (5 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.94: +18 -8 lines
Diff to previous 1.94
Implement "privleged yells" which allow syou to do /set debug 7 at the
same time as /set output_rewrite.  Yea~!

Revision 1.94 / (view) - annotate - [select for diffs] , Wed Sep 24 20:57:20 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93
Make ^ and ~ equivalent since all irc servers do already...

Revision 1.93 / (view) - annotate - [select for diffs] , Thu Jul 31 05:29:37 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.92: +12 -3 lines
Diff to previous 1.92
Make some compile warnings go away by using (intptr_t).  I hope this
doesn't bite me -- every system I checked has (intptr_t)..

Revision 1.92 / (view) - annotate - [select for diffs] , Fri Jul 18 20:54:22 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.91: +3 -1 lines
Diff to previous 1.91
* Don't prohibit universal_next_arg_count() from returning empty_string.

Revision 1.91 / (view) - annotate - [select for diffs] , Fri Jul 18 00:36:35 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.90: +5 -5 lines
Diff to previous 1.90
* Fix time functions to take (const Timeval) if they don't change the arg.
* Create a special handler for /squit to avoid sending QUIT * to server.
* Protect some IPv6 stuff i added recently to dcc with #ifdef INET6.  Ooops.
* Hack up $repeat(<num><space><space>) so it works again. ugh.
* Hack up /set <variable><space><space> so it works again.  ugh.
* Dont allow /timer -repeat -1 0 because that busy-loops.
* Add shell of $windowctl() which will be filled in going forward.

Revision 1.90 / (view) - annotate - [select for diffs] , Tue Jul 15 00:26:03 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.89: +16 -1 lines
Diff to previous 1.89
Commit #555:
* Add #define MINIMUM_CLOCK_INTERVAL and MINIMUM_MAIL_INTERVAL in config.h
* Add #define DEFAULT_CLOCK_INTERVAL and DEFAULT_MAIL_INTERVAL in config.h
* Add reset_system_timers(), do_update_clock(), and set_cpu_saver_after()
* Add time_to_next_interval(), general form of time_to_next_minute().
* Add get_clock() and reset_clock() to replace update_clock().
* Make remove_timer() an extern function so i can delete timers. ;-)
* Add /SET CLOCK_INTERVAL and /SET MAIL_INTERVAL
* Make $T use the static clock.
* Reorganize system timers 1 and 2 into four timers:
* - CPU SAVER timer, checks for idleness, to turn on cpu saver
* - CLOCK timer, updates the status bar clock periodically
* - MAIL timer, checks for new mail periodically
* - NOTIFY timer, checks for others on irc periodically
* The above three honor "cpu saver" mode.
* Nix the old "do_every_minute" timer.
* Reorganize the clock generation stuff into "reset_*_clock" functions
* Generate the clock statically; only update it from the CLOCK timer
* Add reset_system_timers() which regenerates all four system timers.
* Don't set system timers in main, call reset_system_timers() instead.
* Don't enforce "notify interval" in do_notify(), handle that in NOTIFY timer.
* Comment stuff in words.c

Revision 1.89 / (view) - annotate - [select for diffs] , Mon Jul 14 04:58:27 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.88: +5 -5 lines
Diff to previous 1.88
Commit 552
* Fix a couple of compiler warnings from freebsd-5
* Revamp move_to_prev_word() so its behavior isn't stinky
* Same thing with move_to_next_word(), and they need to be commented.
* Now move_to_abs_word() doesn't need to skip leading spaces.
* Remove now pointless "strip extraneous spaces" feature.
* Don't worry about cheating in real_extractw
* Fix last_arg() per all of the above

Revision 1.88 / (view) - annotate - [select for diffs] , Thu Jul 10 22:56:01 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.87: +286 -4 lines
Diff to previous 1.87
Commit 551 -- second to last commit for this project -- the big one!
* Roll in the new universal_next_arg_count() and attendant macros.
* Comment out some deprecated function decls in ircaux.h
* Do another round of make depends.
* Modify alias arglist code to use the new universal_next_arg_count() stuff
* Convert dequote() to dequoter().
* Convert new_new_next_arg() into new_new_next_arg_count().
* Comment out deprecated functions in ircaux.c -- will be deleted later.

Revision 1.87 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:57 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.86: +8 -44 lines
Diff to previous 1.86
Overhaul of malloced string handling functions:
* Convert m_[s]c3cat[_s]() to malloc_strcat_wordlist_c()
* Nix m_e3cat(), m_s3cat(), m_s3cat_s(), m_3cat()
* Nix m_ec3cat(), m_sc3cat(), m_sc3cat_s(), m_c3cat().
* Convert m_dupchar() to malloc_dupchar().
* Convert m_strndup() to malloc_strndup().
* Make malloc_strcpy/malloc_strcat/malloc_strcat2/malloc_strcat_wordlist macros
* Convert m_2dup() to malloc_strdup2().
* Convert m_3cat() to malloc_strcat2[_c]().
* Convert m_3dup() to malloc_strdup3().
* Convert m_ec3cat() to malloc_strcat2_c()
* Use strlcat_c() in $repeat() instead of strlcpy(). whee!
* Sanity check first arg to $regcomp(), to avoid crashes.
* Don't pass NULL to bsearch(), even if 'nmem' is 0 [$remws()]
* Nix the original malloc_strcpy (supplanted by malloc_strcpy_c)
* Comment out all the deprecated functions

Revision 1.86 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:25 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.85: +4 -18 lines
Diff to previous 1.85
Convert m_strdup() to malloc_strdup().

Revision 1.85 / (view) - annotate - [select for diffs] , Wed Jul 9 13:43:50 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.84: +374 -31 lines
Diff to previous 1.84
* Add some new functions to ircaux.c for malloced string handling
* Fix some const correctness issues.

Revision 1.84 / (view) - annotate - [select for diffs] , Wed Jul 9 13:28:57 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.83: +1 -20 lines
Diff to previous 1.83
Fix some stragglers and GC unused m_sprintf() function.
Fix $serverwin() which was doing a bogus check on server refnums.

Revision 1.83 / (view) - annotate - [select for diffs] , Wed Jul 9 04:45:22 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.82: +59 -23 lines
Diff to previous 1.82
Cut over m_sprintf() to malloc_sprintf().

Revision 1.82 / (view) - annotate - [select for diffs] , Wed Jul 9 04:14:15 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.81: +20 -19 lines
Diff to previous 1.81
Add support for clock_gettime() which is the posix version of gettimeofday().

Revision 1.81 / (view) - annotate - [select for diffs] , Tue Jul 8 21:36:52 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.80: +4 -2 lines
Diff to previous 1.80
Commit 541
* Move #define CTCP_* into ctcp.h
* Add /xdebug extractw_debug
* Move #define LOCAL_COPY and SAFE into irc_std.h
* Create compat.h, move all the compat.c decls into there (from ircaux.h)
* Create network.h, move all the network.c decls into there (from ircaux.h)
* Create words.h, move all the words.c decls into there (from ircaux.h)
* Include "compat.h" and "network.h" in ircaux.h
* Do another round of make depends
* Rename 'search' to 'search_for'.
* Fix the metric clock hooking /on timer too much.
* Revamp words.c, to support passing word quoter (' or ") as an argument.

Revision 1.80 / (view) - annotate - [select for diffs] , Mon Jul 7 21:10:57 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.79: +28 -1 lines
Diff to previous 1.79
Metric clock support!

Revision 1.79 / (view) - annotate - [select for diffs] , Tue Jul 1 18:10:05 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.78: +9 -2 lines
Diff to previous 1.78
Commit 531:
Fix bug reading files where gunzip is a symlink to gzip because of how
path_search() calls realpath().  Oh well.

Revision 1.78 / (view) - annotate - [select for diffs] , Mon Jun 30 03:14:02 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.77: +74 -2 lines
Diff to previous 1.77
Commit 527
New ignore implementation.  I will document all this stuff tomorrow.
As it stands, I've tested this for several days and all seems well.
Of course let me know if you see any problems.

Revision 1.77 / (view) - annotate - [select for diffs] , Sat Jun 28 17:40:38 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76
It is better to use (ssize_t) instead of (int) when refering to string lengths.

Revision 1.76 / (view) - annotate - [select for diffs] , Fri May 30 18:58:10 2003 UTC (5 years, 4 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.75: +159 -15 lines
Diff to previous 1.75
Commit 519
* Change m_strcat_ues_c to take a (char *) "unescape" param and not (int)
* Rename m_strcat_ues_c to malloc_strcat_ues_c
* Rewrite malloc_strcat_ues_c to support new semantics.
* Make sure not to pass 0 to alloca() in ctcp checks
* Initialize (DCC)->server [found by valgrind]
* Change 'expand_alias' so 'unescape' is (char *) and not (int)
* Add extra sanity checks in mangle_line against buffer overruns
* Fix window_channel() to use new malloc_strcat_ues() arguments.

Revision 1.75 / (view) - annotate - [select for diffs] , Sat May 17 17:30:21 2003 UTC (5 years, 4 months ago) by crazyed
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74
* Misc bugfixes as per KNOWNBUGS.
* This patch involves renaming crypt.h to sedcrypt.h.

Revision 1.74 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.73: +190 -285 lines
Diff to previous 1.73
* Rename 'dcc()' to 'dcc_cmd()' so we can use dcc as variable
* Garbage collect unused 'irc_path' global variable.
* Add --with-warns to configure to do FreeBSD "WARNS" like compiler checks
* Many hundreds of changes to improve the "quality of code" in epic, including:
* - Treat all literal strings as (const char *) and fix const correctness.
* - Mopping up all remaining const-correctness issues
* - Do not "launder" a (const char *) to a (char *) in string searches, (ala
    strchr) but rather return a ssize_t offset value.
* - Particular, MatchingBracket() returns (ssize_t) and not (char *).
* - Eliminate all "shadow" variable names by changing them to something else.
* - Eliminate most function decls that do not include a prototype list.
* - Add prototypes for all extern functions that are missing them.
* - Ensure most function pointers include a prototype list.
* - In term.c, most of those (char *)'s are really (const char *)'s.
* - Explicitly specify 'static' functions as 'static'
* - Ensure every function is either 'static' or has a prototype.
* - Eliminate (unsigned) < (signed) type comparisons.
* Hopefully you should not notice any changes!

Revision 1.73 / (view) - annotate - [select for diffs] , Fri May 2 19:22:26 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.72: +36 -1 lines
Diff to previous 1.72
Commit 509:
* Move /DCC from commands.c to dcc.c
* Nix the "dcc deadlist" crap.  Handle deleted dcc's more sensibly now.
* Add a "dequote" internal function that removes "s in extended words.
* Add "QWORDS" as new arglist type, for quoted-words with "s left in.
* Add "arglist" regression test.
* Fix strlcpy(