CVS log for epic4/source/files.c

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

Request diff between arbitrary revisions


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

Revision 1.23 / (view) - annotate - [select for diffs] , Tue Jan 15 13:04:54 2008 UTC (6 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_10, HEAD
Changes since 1.22: +4 -2 lines
Diff to previous 1.22
* New version of /load hold_mode (implements /set hold_interval)
* Fix crash with $write(w<number> text)

Revision 1.22 / (view) - annotate - [select for diffs] , Fri Nov 7 03:55:57 2003 UTC (4 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_8, epic4-2_6, epic4-2_4, epic4-2_2, epic4-2_1_3, epic4-2_1_2, epic4-2_1_1, epic4-2_0, epic4-1_2_9, epic4-1_2_8, epic4-1_2_7, epic4-1_2_6, epic4-1_2_5, epic4-1_2_4, epic4-1_2_3, epic4-1_2_2, epic4-1_2_1, epic4-1_2_0, epic4-1_1_17, epic4-1_1_16, epic4-1_1_15
Changes since 1.21: +4 -4 lines
Diff to previous 1.21
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.21 / (view) - annotate - [select for diffs] , Fri Oct 31 08:19:24 2003 UTC (4 years, 8 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_14
Changes since 1.20: +12 -3 lines
Diff to previous 1.20
* 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.20 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:25 2003 UTC (5 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.19: +3 -3 lines
Diff to previous 1.19
Convert m_strdup() to malloc_strdup().

Revision 1.19 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.18: +6 -6 lines
Diff to previous 1.18
* 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.18 / (view) - annotate - [select for diffs] , Thu Apr 24 20:49:25 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Nominally remove all uses of "unsafe" functions: (Commit 506)
* Convert all uses of strcpy() to strlcpy()
* Convert all uses of strcat() to strlcat()
* Convert all uses of strmcpy() to strlcpy()
* Convert all uses of strmcat() to strlcat()
* Convert all uses of sprintf() to snprintf()
* As much as possible, use 'sizeof var' in snprintf/strlcpy/strlcat.
* Qualify the size of some global vars so we can sizeof() them.
* Nuke strmcpy(), strmcat(), strmcat_ue(), strmccat(),
* Change strmopencat() to strlopencat().
* Change strmpcat() to strlpcat().
* Fix switch_hostname so it doesn't return a (const) string.
* Fix TimerTimeout so it doesn't return a (const) Timeval.
* Change things like (ret) to do ret while (0); for when "ret" is "{}".
* Fix initialization for load_level
* Stop passing in static strings into io(), so we can modify them.
* Make messages passed to io() more informative to the user.
* Fix CTCP FINGER handler not to assume (struct pw) strings can be overwritten.
* Use (socklen_t) and not an (int) for socket sizes.
* Don't return a value in a void function...
* Don't use return value of process_dcc_chat_ctcps() for assignment.
* Don't put semicolons after function bodies
* Fix $getopt() to save 'input_size' so we can use it with strl*().
* Convert all uses of stpcpy() to strlcat() and strlopencat().
* Nix checks for stpcpy() in configure -- regen configure.

Revision 1.15.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:00 2003 UTC (5 years, 4 months ago) by wd
Branch: wd-devel
Changes since 1.15.2.1: +0 -0 lines
Diff to previous 1.15.2.1 to branch point 1.15 to next main 1.16
Another merge.

Revision 1.15.2.1 / (view) - annotate - [select for diffs] , Thu Feb 27 15:29:55 2003 UTC (5 years, 4 months ago) by wd
Branch: wd-devel
Changes since 1.15: +38 -5 lines
Diff to previous 1.15
Yikes.  Merged to become consistent with HEAD.  Sorry for all the commits,
I'll be quiet again soon. :)
-wd

Revision 1.17 / (view) - annotate - [select for diffs] , Wed Jan 29 21:56:01 2003 UTC (5 years, 5 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.16: +6 -2 lines
Diff to previous 1.16
* Added Tyraks /stack patch as per KNOWNBUGS.
* $afterw(), $beforew(), $fromw(), $tow() as per UPDATES.  *potential bug*
* Regress tests as per KNOWNBUGS.
* ERROR hook fix as per KNOWNBUGS.
* autoget script as per KNOWNBUGS.
* $serverctl() as per UPDATES.
* $writeb() as per UPDATES.
* /sleep as per UPDATES.

Revision 1.16 / (view) - annotate - [select for diffs] , Wed Dec 11 19:20:23 2002 UTC (5 years, 7 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8, epic4-1_1_10
Changes since 1.15: +33 -4 lines
Diff to previous 1.15
* Added functions $asciiq() $chrq() $exec() $timerctl() $tcl() $winline()
  and $floodinfo().
* Altered the two argument version of $read() to ctcp quote the strings it
  returns.
* Added sets FLOOD_RATE_PER and FLOOD_MASKUSER.
* Altered the "accept" mode of the dcc_raw and dcc_connect hooks to refer
  to the local port instead of the remote port.
* Added a "-closein %proc" switch to /exec.
* Altered the arg list mode of /alias to use extractw instead of next_arg.
* Added the documented "words" argument to the above.
* Tuned autoget, mudirc, tabkey.ce and commandqueues.
* Altered /pretend to not chop the string.
* Set about rewriting the flood detection and then decided that it's better
  off being a script.
* Moved the function macros to their own file (functions.h) and replaced
  all the copies that are strewn throughout the source with an #include.
  The exception is array.c which broke when I tried it.
* Moved the ctcp enquoting/dequoting functions to ircaux.c.
* Added some command/function ordering checks to funcs/regress, and a check
  for all the functions that are undocumented.
* Rewrote function chanmodetype() so that it doesn't have all those flakey
  buffering things.  Hopefully it's readable now.  The significant change
  is that if a mode character appears twice in CHANMODES, the first one is
  returned instead of the last.
* Added EPIC::call() in the perl routines and an equivalent under tcl.
  this is designed to call a $function() directly, but it isn't really that
  fast, so I might rip them out again.
* The /wait internals used to store a few other settings, which were taken
  out, so I put them back.
* Fixed a few problems with normalize_filename() around the place.
* Fixed a bug with /timer in which it would never show the timers after a
  callback.

Revision 1.15 / (view) - annotate - [select for diffs] , Mon Oct 21 14:21:43 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Branch point for: wd-devel
Changes since 1.14: +1 -2 lines
Diff to previous 1.14
Fix brain-o and a few other non-operative changes.

Revision 1.14 / (view) - annotate - [select for diffs] , Fri Oct 18 20:10:22 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +6 -8 lines
Diff to previous 1.13
* Change expand_twiddle(), path_search() to take results as params, int retval
* Add normalize_filename(), to do job expand_twiddle() used to do.
* Add isdir(), just because
* Change /CD, /LOAD, /SAVE, /DCC SEND, /DCC GET, to use normalize_filename.
* Change /DCC RESUME, $open(), $which(), $unlink() to use normalize_filename.
* Change $rename(), $rmdir(), $fexist(), $fsize() to use normalize_filename.
* Change $glob(), $globi(), $mkdir(), $chmod() to use normalize_filename.
* Change $ftime(), $randread(), and uzfopen() to use normalize_filename.
* Change /LOG, /SET LOGFILE, servers file to use normalize_filename.
* Fix /LOG so maximum number of targets per log is a compile time #define.
* Revamp expand_twiddle() and uzfopen().
* Fix uzfopen() to look for 'bunzip2' in addition to 'bunzip'.
* Fix bug with /QUEUE -delete
* Remove unused variable in window_scroll().

Revision 1.13 / (view) - annotate - [select for diffs] , Wed Jul 17 21:52:52 2002 UTC (6 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_7, epic4-1_1_6
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
Update copyright notices and copyright dates.

Revision 1.12 / (view) - annotate - [select for diffs] , Sat Jul 6 02:50:11 2002 UTC (6 years ago) by jnelson
Branch: MAIN
Changes since 1.11: +28 -3 lines
Diff to previous 1.11
I'm going to start sweeping the entire source, adding the official
copyright notice to each file (like ircII does already), and making
sure that the /* $EPIC$ */ thingee is at the top of the file.  This is
my first swath of files.

Revision 1.11 / (view) - annotate - [select for diffs] , Sat Feb 2 16:44:13 2002 UTC (6 years, 5 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_5, epic4-1_1_4, epic4-1_1_3
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
Fix a null deref when writing to a window's logfile that doesn't exist.
Add some comments to numbers.c in anticipation of future work.

Revision 1.10 / (view) - annotate - [select for diffs] , Fri Feb 1 23:04:28 2002 UTC (6 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.9: +10 -1 lines
Diff to previous 1.9
Bulk commit:
1) Fix typos in KNOWNBUGS
2) Flesh out the things in UPDATES that need documenting
3) Add target_file_write() to files.[ch] for send_text()'s use.
4) Create "reg.h", to hold protos for reg.c
5) Add some missing protos.
6) If /redirect'ing to 0 or to @<fd>, don't output to the screen.
7) Messages sent to target 0 are dropped (/redirect 0 now actually sends
   to target 0, and epic drops it.)  You can /query 0 now if you want.
8) Messages sent to @NUMBER get sent to the NUMBER file, where NUMBER is
   returned by $open().  For example, to paste stuff to log but not to screen:
        @fd = open(FILE w)
        query @$fd
        <paste some stuff>
        query
        @close($fd)
   or
        @fd = open(FILE w)
        redirect @$fd lastlog foo
        @close($fd)
9) Add a function to reg.c to compile a pattern into a regex -- experimental.
10) Fix some compile warnings regarding ssl.

Revision 1.9 / (view) - annotate - [select for diffs] , Wed Jan 16 05:07:59 2002 UTC (6 years, 6 months ago) by crazyed
Branch: MAIN
Changes since 1.8: +11 -9 lines
Diff to previous 1.8
The small stuff first:

* $fskip now takes a second optional argument for the number of lines to
  skip, and returns the number of lines skipped.  If the two numbers
  match, no error was encountered.  If the number is -1, the file was in
  an error state at the start.
* While trying to figure $regexec out, made $encode() and $decode() use
  the ircaux.c versions instead, and fixed a bug along the way.  If this
  has any imact on these functions then there is a bug.

Regex tomfoolery:

* Changed the regcomp() library call args a little to make way for
  $regmatches() which isn't working yet.  This should have no impact, but
  it may, because regcomp is a libc thing.
* Eliminated the first argument to $regerror() to bring it in line with the
  documentation.  Cursory examination of some publically available scripts
  show that although people have been coding around bugs in $regexec(),
  $regerror() is only ever used the documented way.
* Altered $regerror() to return nothing in the case of a successful match
  for compatibility.  See above.

Revision 1.8 / (view) - annotate - [select for diffs] , Sat Nov 24 05:54:52 2001 UTC (6 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.7: +34 -4 lines
Diff to previous 1.7
Preliminary support for $write() and $writeb() support to logfiles.
Basically if you prefix the window refnum with the letter 'w', then
it will write to that window's logfile (if one is open).  If you use
the otherwise invalid window refnum -1, then it will log to the global
logfile (if one is open).  -1 is returned if you try to write to a
logfile that isn't open (of course).

Examples:
	$write(w1 this is a test)	write to window refnum 1's logfile
	$write(w0 this is a test)	write to the current window's logfile
	$write(w-1 this is a test)	write to the global logfile
Uppercase 'w's are of course acceptable as well.

Revision 1.7 / (view) - annotate - [select for diffs] , Fri Nov 16 17:02:25 2001 UTC (6 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.6: +19 -21 lines
Diff to previous 1.6
Whitefang wanted to know if I would be willing to fix $read(), and
crazyeddy wasn't around, and I tested this pretty thoroughly, so
here's my hand at making things better for now.

My apologies to crazyeddy for doing this without talking to him first.

Revision 1.6 / (view) - annotate - [select for diffs] , Fri Nov 16 07:30:46 2001 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
*sigh*

Sorry about this folks, these patches are not related to the situation at
hand.  They accidently got rolled into that hastily applied update, and
none of us "on duty" right now know how to roll them back.

Untouched, these should not effect the workings in any way.  Service will
resume as soon as possible.

This particular one should fix the original problem.

Revision 1.5 / (view) - annotate - [select for diffs] , Fri Nov 16 06:42:28 2001 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.4: +9 -0 lines
Diff to previous 1.4
Hurried patch.  This rolls back the $read() patch for now.

Revision 1.4 / (view) - annotate - [select for diffs] , Fri Nov 16 01:12:42 2001 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.3: +3 -5 lines
Diff to previous 1.3
A cleaner rewrite of the above, which fixes a minor bug.

Revision 1.3 / (view) - annotate - [select for diffs] , Thu Nov 15 21:50:59 2001 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.2: +18 -6 lines
Diff to previous 1.2
This fixes $read(fd) (the single argument version) so that it reads
arbitary length strings without problem.

Revision 1.2 / (view) - annotate - [select for diffs] , Mon Nov 12 16:54:08 2001 UTC (6 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.1: +52 -1 lines
Diff to previous 1.1
Let the work on 1.1.2 commence!

Revision 1.1.1.1 / (view) - annotate - [select for diffs] (vendor branch) , Tue Dec 5 00:11:57 2000 UTC (7 years, 7 months ago) by jnelson
Branch: epicsol
CVS Tags: start, epic4_0_9_15, epic4-1_1_1, epic4-1_0_1, epic4-1_0, epic4-0_9_17, epic4-0_9_16, epic4-0_9_15, epic4-0_9_14, epic4-0_10_0, epic-test-tag2, epic-test-tag
Changes since 1.1: +0 -0 lines
Diff to previous 1.1
Initial import into CVS

Revision 1.1 / (view) - annotate - [select for diffs] , Tue Dec 5 00:11:57 2000 UTC (7 years, 7 months ago) by jnelson
Branch: MAIN
Initial revision

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

CVS Admin
Powered by
ViewCVS 0.9.2