CVS log for epic5/source/timer.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.52 / (view) - annotate - [select for diffs] , Thu Apr 12 02:24:14 2007 UTC (16 months, 4 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_9, epic5-0_3_8, epic5-0_3_7, epic5-0_3_6, epic5-0_3_5, epic5-0_3_4, epic5-0_3_3, HEAD
Changes since 1.51: +2 -2 lines
Diff to previous 1.51
* Add arg to panic() controlling whether panic is sent via QUIT (rb black)

Revision 1.51 / (view) - annotate - [select for diffs] , Fri Oct 13 20:58:03 2006 UTC (22 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_2
Changes since 1.50: +9 -9 lines
Diff to previous 1.50
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.50 / (view) - annotate - [select for diffs] , Sat May 27 17:45:59 2006 UTC (2 years, 3 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_1
Changes since 1.49: +21 -1 lines
Diff to previous 1.49
* Add provisional support for renumbering windows with channels/logs/timers

Revision 1.49 / (view) - annotate - [select for diffs] , Sat Jun 4 02:59:33 2005 UTC (3 years, 3 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_2_0, epic5-0_0_8, epic5-0_0_7, epic5-0_0_6
Changes since 1.48: +216 -128 lines
Diff to previous 1.48
* Don't do LOCAL_COPY within an infinite loop, leads to stack exahustion.
* Support new signal, SIGUSR2 which throws "system_exception".
* Teach the block commands about "system_exception" so they can be stopped.
* Whack a bunch of unused timers from vars.c. (see UPDATES)
* Sync up config.h, vars.h, and vars.c with each other.
* Add "domains" to timers, server timers, window timer, general timers
* When timers go off, latch back to their domain
* Allow timers to self-cancel if their latched item has gone away
* Add /timer -general to set a general timer.
* Make /timer -win or /timer -serv set a window or serv timer especially.

Revision 1.48 / (view) - annotate - [select for diffs] , Wed Jan 12 00:12:21 2005 UTC (3 years, 7 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_5, epic5-0_0_4, epic5-0_0_3
Changes since 1.47: +3 -3 lines
Diff to previous 1.47
* 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.47 / (view) - annotate - [select for diffs] , Wed Aug 25 22:03:36 2004 UTC (4 years ago) by jnelson
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46
* Fix memory leak with /timer
* Fix $server*() functions, when passed no arguments.

Revision 1.46 / (view) - annotate - [select for diffs] , Wed Aug 11 22:58:39 2004 UTC (4 years ago) by jnelson
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45
* 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.45 / (view) - annotate - [select for diffs] , Sun Aug 8 03:20:27 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.44: +11 -14 lines
Diff to previous 1.44
Remove limits on timer refnames.

Revision 1.44 / (view) - annotate - [select for diffs] , Thu Jul 22 23:49:46 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43
* Make stripcrap(ALL) exclude "ALL_OFF", so I can...
* Fix bug with $stripcrap(ALL,-BOLD ^B^B^Btest). (rb BlackJac)
* Make the #define Char const char thing global to all of epic now.
* Whack /set scroll.
* Create a "/set data" type (VARIABLE) which is union of (int) and (char *).
* Expose VARIABLE and variable types in vars.h for others to use.
* Break init of /set's into two parts, one to malloc() the set data
* The second part is to init the default values once command line is done.
* Fix some warnings from --with-warns
* Fix all /set callbacks to accept a (void *)(VARIABLE *) variable
* /Set callbacks can now directly modify the /set via that variable!
* So don't allow direct setting of /set's from outside vars.c.
* Everybody must use set_var_value() which is the backend to /set.
* Whack the /IRCNAME and /REALNAME variable -- use /SET REALNAME, eh!
* Hack up /xecho -x to bide my time until i whack all those /sets it uses.
* Don't call set_input_prompt() in main() any more, it's handled elsewhere.
* Whack /set logfile callback, since nobody seems to have missed it.
* Whack the "number" (float) data in /set since i wasn't gonna use it.
* Whack the "GLOBAL/CHANGED" tracking in /set's.  Tell me if you miss this.
* Unify output of /set values as "[New|Current] value of <var> is <val>"
* Don't limit the size of /set continued_line, this will be revisited soon.
* Quick and dirty hack to work around adm's bug, will fix this later.

Revision 1.43 / (view) - annotate - [select for diffs] , Mon Jun 28 22:48:15 2004 UTC (4 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.42: +4 -6 lines
Diff to previous 1.42
* 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.42 / (view) - annotate - [select for diffs] , Wed May 5 15:43:28 2004 UTC (4 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41
Fix bugorz.

Revision 1.41 / (view) - annotate - [select for diffs] , Thu Mar 25 04:41:18 2004 UTC (4 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.40: +41 -1 lines
Diff to previous 1.40
Add some help for polling loop detections.

Revision 1.40 / (view) - annotate - [select for diffs] , Wed Dec 17 09:25:31 2003 UTC (4 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_2
Changes since 1.39: +2 -2 lines
Diff to previous 1.39
Make 'empty_string' (const char []).  Now we're cooking with gas!

Revision 1.39 / (view) - annotate - [select for diffs] , Tue Oct 28 05:53:57 2003 UTC (4 years, 10 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_1, 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, epic4-1_1_14
Changes since 1.38: +2 -2 lines
Diff to previous 1.38
* 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.38 / (view) - annotate - [select for diffs] , Tue Jul 22 20:12:54 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.37: +25 -19 lines
Diff to previous 1.37
Teach all the /set callbacks to take a (const void *).
This fixes a bad-c problem with /set!

Revision 1.37 / (view) - annotate - [select for diffs] , Tue Jul 22 18:04:36 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36
* Add "ON/OFF" toggle set variable to the system timer data.
* Create 'update_system_timer' which uses the "toggle" var to run or stop timer
* Merge '(start|stop)_system_timer' into 'update_system_timer'
* Nix #define MINIMUM_(NOTIFY|CLOCK|MAIL)_INTERVAL since we can't stop that.
* Do not enforce minimums for /SET *_INTERVAL since user could get around it.
* Track "last event" time, maybe I'll use that in the future
* Reset "now" global variable before calling timer callback.
* Fix null deref bug with $($$)
* Add default binding to ^G to "self_insert" for beeps.
* Do not enforce MINIMUM_NOTIFY_INTERVAL in do_notify()
* Don't include exec.h from screen.c
* Add 'number' (floating point) field to /set's
* Add FLOAT_TYPE_VAR type for /set's, using 'number' field
* Update all the /set entries to include a default 'number' field.
* Add get_float_var() to get the 'number' field in a set.
* Add set_float_var() to set the 'number' field in a set.
* Teach set_variable() about FLOAT_TYPE_VAR sets.
* Teach save_variables() about FLOAT_TYPE_VAR sets.
* Teach get_string_variable() about FLOAT_TYPE_VAR sets.

Revision 1.36 / (view) - annotate - [select for diffs] , Fri Jul 18 00:36:35 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.35: +9 -1 lines
Diff to previous 1.35
* 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.35 / (view) - annotate - [select for diffs] , Tue Jul 15 23:56:43 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.34: +13 -8 lines
Diff to previous 1.34
Commit 556
* Change #define DEFAULT_CPU_SAVER_EVERY to 60, it needs not be 0.
* Create 'clock.c', to hold clock generation, system timers, cpu saver watchdog
* Create notion of "sys(tem)timers", callbacks for mail, notify, clock gen.
* Add 'system_timer', generalized callback for all of the system timers.
* Fix add_timer() so the 'command' argument does what the docs say it does.
* Extern 'timer_exists' so we don't try to remove_timer() and invalid timer
* Redo dependancies because clock.h exists.
* Add code to bootstrap mail systimer with /set mail
* Add code to bootstrap clock generation with /set clock
* Add code to bootstrap notify handling with /set notify_interval.
* Start enforcing "NOTIFY_INTERVAL" again in do_notify() to avoid excess flood.

Revision 1.34 / (view) - annotate - [select for diffs] , Tue Jul 15 00:26:04 2003 UTC (5 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33
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.33 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:57 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32
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.32 / (view) - annotate - [select for diffs] , Thu Jul 10 09:30:45 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.31: +5 -2 lines
Diff to previous 1.31
Commit 548
* Nix channel_window, duplicate of get_winref_by_channame()
* Make arglist processor panic if it sees an argtype that doesn't exist.
* Fix bug with * operator in exprs like (a ? b : *c) in new expression parser.
* Fix theoretical crash with deleting hooks from /on window. Bleh.
* General cleanups in if.c.
* Fix /timer -list acting all wacky.
* Fix compilation warnings, you know the deal...

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

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

Revision 1.29 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 4 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.28: +9 -11 lines
Diff to previous 1.28
* 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.28 / (view) - annotate - [select for diffs] , Thu Apr 24 20:49:25 2003 UTC (5 years, 4 months ago) by jnelson
Branch: MAIN
Changes since 1.27: +7 -6 lines
Diff to previous 1.27
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.27 / (view) - annotate - [select for diffs] , Tue Apr 8 21:32:24 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.26: +5 -1 lines
Diff to previous 1.26
Okie. i'm a dope.

Revision 1.26 / (view) - annotate - [select for diffs] , Tue Apr 8 21:27:30 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.25: +12 -11 lines
Diff to previous 1.25
Commit #500!  Throw a party!
Ok, ok, so /timer -delete is broken.

Revision 1.10.2.3 / (view) - annotate - [select for diffs] , Wed Mar 26 09:20:46 2003 UTC (5 years, 5 months ago) by wd
Branch: wd-devel
Changes since 1.10.2.2: +4 -5 lines
Diff to previous 1.10.2.2 to branch point 1.10 to next main 1.11
Okay.  User input is now handled specially, and parse_command() will not
accept incomplete command names anymore.
-wd

Revision 1.10.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:02 2003 UTC (5 years, 5 months ago) by wd
Branch: wd-devel
Changes since 1.10.2.1: +32 -4 lines
Diff to previous 1.10.2.1 to branch point 1.10
Another merge.

Revision 1.25 / (view) - annotate - [select for diffs] , Mon Mar 24 09:20:29 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.24: +28 -2 lines
Diff to previous 1.24
Whooo!  I'm on a roll!  Commit #487

* Add /timer -delete_for_window <winref> to delete window's timer.
* Enhance my_strerror() to take an EPIC Network Error and an errno.
* Enhance Getaddrinfo() to use AF_UNIX path as 'path' not 'host'.
* Confirmed that $match("\\[s s1 "s *"\\]" "s s") works like it should now.
* Store a "current window priority" number in each window.
* Add get_winref_by_servref() returns highest "priority" window for a server
* Have /defer track server, use server's "current window" (per above)
* I'd like to have other things use this, like maybe /xeval -s.

Revision 1.24 / (view) - annotate - [select for diffs] , Mon Mar 24 01:23:37 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.23: +4 -2 lines
Diff to previous 1.23
Fix various specious warnings from gcc, also, don't test for "sun_len"
in configure; use "sa_len" test for that.

Revision 1.23 / (view) - annotate - [select for diffs] , Fri Mar 21 07:46:58 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22
* Add extra slop for logically attributed denormalized display strings
* Const-ify a few Timevals, just for good measure.
* Don't hardcode use of AF_INET in dcc.c, rather use a global variable for it.
* Use "global_family" var to pass hint what socket fam to use.  AF_INET for now.
* Add extra sanity check just in case window->screen goes NULL in status redraw
* Fix several benign compile-time issues.
* Reword a few previous entries to fit onto one line.

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

Revision 1.22 / (view) - annotate - [select for diffs] , Fri Feb 21 21:41:23 2003 UTC (5 years, 6 months ago) by crazyed
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21
* Made a mistake in that $timerctl() patch a while back..  This should
  fix it.
* Changed tabkey.ce to use the new extractw feature in $wordtoindex().

Revision 1.21 / (view) - annotate - [select for diffs] , Wed Feb 5 21:48:12 2003 UTC (5 years, 7 months ago) by crazyed
Branch: MAIN
Changes since 1.20: +30 -26 lines
Diff to previous 1.20
* New aliases for script/functions as per UPDATES.
* A tentative solution for the $glob() problem as per KNOWNBUGS.
* A leak fix for /list as per KNOWNBUGS.
* $timerctl() tuning as per UPDATES.

Revision 1.20 / (view) - annotate - [select for diffs] , Sun Jan 12 21:23:04 2003 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19
Commit #429.
Don't have /timer -update reset timers to be re-occuring.

Revision 1.19 / (view) - annotate - [select for diffs] , Sun Jan 12 21:14:11 2003 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18
Fix programmer error.  D'oh!

Revision 1.18 / (view) - annotate - [select for diffs] , Thu Dec 26 16:40:31 2002 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_10
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Fix all the rest of the compile issues. bleh.

Revision 1.17 / (view) - annotate - [select for diffs] , Thu Dec 19 03:22:59 2002 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8
Changes since 1.16: +122 -162 lines
Diff to previous 1.16
* Use server_list_size() and not number_of_servers outside of server.c
* Use NOSERV and not -1 for "no server"
* Use (Timeval) and not (struct timeval)
* Fix (get|set)_server_sent_*() et al to take server refnum.
* Use parse_server_index() and not my_atol() to parse server refnums
* re-indent quotecmd
* Rename is_server_connected() to is_server_registered
* Make /quote work as long as server is open (not registered)
* Use send_to_aserver() when it can avoid setting from_server unecessarily
* Change sent_to_server and clear_sent_to_server to (set|get)server_sent().
* Change doing_* to get_server_doing_*.
* Use (unsigned short) and not (u_short)
* Use (unsigned long) and not (u_long)
* Make output_reject_ctcp() take a refnum
* Lock a dcc while we are connecting it, just in case. ;-)
* Fix /dcc send -p <port>
* Store protocol enforcements as (get|set)_server_protocol_state().
* Use (Stat) and not (struct stat)
* Rewrite $timerctl() so it works like $logctl()
* Rename is_server_connected() to is_server_registered()
* Fix an off-by-one error with /FOR ... IN ...
* Keep track of both readable and writable fd's with newio stuff.
* Convert server_list to an array of pointers
* When user /server -delete's, leave a gap, don't change refnums around.
* Nix code that handles deleting server refnums.
* New function, new_open_for_writing(), for when we do nonblocking connects.
* Change new_open() to deregister fd as "writable"
* Renovate the notify stuff to take refnums and not just use from_server.
* Renovate /WHO, /ISON, /USERHOST to take refnums and not just use from_server.
* Make everything that uses server_list[] use get_server() instead.
* Make everything capable of dealing with "gaps" in server_list[].
* Use a bunch of macros, to handle with getting and setting server attrs.
* Make as much as possible use refnums as params and not from_server.
* And a lot of other stuff...

Revision 1.16 / (view) - annotate - [select for diffs] , Wed Dec 11 19:20:24 2002 UTC (5 years, 8 months ago) by crazyed
Branch: MAIN
Changes since 1.15: +172 -2 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 Dec 9 16:41:26 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14
Make /timer 5 {echo foo} work from input prompt and /load'ed files again.

Revision 1.14 / (view) - annotate - [select for diffs] , Mon Dec 2 01:01:59 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13
* Fix /wait (server_hard_wait()) so it tracks/resets from_server (fb CE)
* Fix /timer so it tracks from_server properly (fb CE)

Revision 1.13 / (view) - annotate - [select for diffs] , Thu Nov 28 02:07:00 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.12: +10 -3 lines
Diff to previous 1.12
Fix /TIMER -window -1 crash, rb zinx.

Revision 1.12 / (view) - annotate - [select for diffs] , Thu Nov 28 01:17:13 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11
Uncripple CPU_SAVER mode. yea!

Revision 1.11 / (view) - annotate - [select for diffs] , Tue Nov 26 23:03:14 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.10: +298 -264 lines
Diff to previous 1.10
* Change do_input_timeouts() to a timer callback.
* Nuke the now unused global /wait stuff
* Revamp timer.c so you can add/change/delete/update timers during a timer
* Change add_timer() so it takes a winref not a window pointer.
* Make the "key timeout" thing happen on demand instead of a recurring timer
* Remove the recurring "key timeout" timer.
* Remove the 'key timeout' thing from io(), also 'first time' stuff.
* Call get_time() after select() in io().
* Fix two compile bugs found by larne.
* Fix bug when you did /flush on a /clear window.

Revision 1.10 / (view) - annotate - [select for diffs] , Thu Sep 26 21:41:43 2002 UTC (5 years, 11 months ago) by jnelson
Branch: MAIN
Branch point for: wd-devel
Changes since 1.9: +6 -14 lines
Diff to previous 1.9
Ach.  Here goes nothing.
Major commit which does many things, but the most prominent of which
is the final integration of the scrollback buffer with the hold buffer.
This fixes several annoying "features" and introduces a small truckload
of new features which have been requested recently.  Please see the
KNOWNBUGS or UPDATES file for more info, since I don't want this message
to be ridiculously long.

Revision 1.9 / (view) - annotate - [select for diffs] , Wed Sep 4 21:48:18 2002 UTC (6 years ago) by wd
Branch: MAIN
Changes since 1.8: +11 -4 lines
Diff to previous 1.8
Fix a bug wrt input not timing out correctly when there are timers.  The
input timeout should be moved to io(), this is basically a hack til that
gets done.
-wd

Revision 1.8 / (view) - annotate - [select for diffs] , Mon Aug 12 15:41:11 2002 UTC (6 years ago) by wd
Branch: MAIN
CVS Tags: epic4-1_1_7
Changes since 1.7: +3 -4 lines
Diff to previous 1.7
New keybindings system coming through.  Details can be found in doc/keys
and in a few other places. :)
-wd

Revision 1.7 / (view) - annotate - [select for diffs] , Mon Aug 5 18:38:26 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_6
Changes since 1.6: +9 -3 lines
Diff to previous 1.6
Make /timer -update a little more forgiving.  You can now do
	/timer -update -refnum XXXX 15 {commands}
and it will create XXXX if it does not exist, rather than erroring.
But it will still error if you do this:
	/timer -update -refnum XXXX {commands}
because if XXXX does not exist, it will not know in how many seconds to
make the timer go off.

Revision 1.6 / (view) - annotate - [select for diffs] , Wed Jul 17 21:52:53 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.5: +32 -2 lines
Diff to previous 1.5
Update copyright notices and copyright dates.

Revision 1.5 / (view) - annotate - [select for diffs] , Sun Jan 6 19:42:30 2002 UTC (6 years, 8 months ago) by crazyed
Branch: MAIN
CVS Tags: epic4-1_1_5, epic4-1_1_4, epic4-1_1_3
Changes since 1.4: +2 -0 lines
Diff to previous 1.4
Fixed a bunch of memory leaks:

* In /alias with no args, one leak for each line printed.
* If an /on would clober another /on, there would be a leak.
* In "/timer -ref xxx", if xxx existed and therefore blocked the timer,
  there would be a leak.
* "/server -d" wouldn't erase the notify list and one or two other things
  for the server
* And the last one I am _not_ sure about.  prepare_display() had a leak,
  however, this does appear to be a work in progress, and the pointer
  in question points to a strange combination of static, dynamic and
  alloca() variables.  I made the smallest possible patch which seems
  to work, however, its quality may be questionable.

Revision 1.4 / (view) - annotate - [select for diffs] , Mon Nov 19 22:51:29 2001 UTC (6 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
Fix bug that showed all timers as having 0 seconds remaining. Found by ce.

Revision 1.3 / (view) - annotate - [select for diffs] , Mon Nov 12 21:46:45 2001 UTC (6 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.2: +44 -25 lines
Diff to previous 1.2
The beginning of the migration away from 'time_t's towards 'struct timeval's.
This first round of support is very rough and may have some issues, which
I will be happy to fix (or you can fix them yourself if you want), but it is
more proof-of-concept work for now.  I don't expect that I will migrate
*everything* to struct timeval, just the important stuff.  I have not made
any serious attempt to optimize this yet and please don't jump the gun and
start optimizing this until I've got the bugs settled out.  Thanks. =)

Oh yes, I almost forgot the good part -- /timer now has highly accurate
sub-second timer resolution.  This means you can do /timer 0.82 echo test
and it will go off in exactly 0.82 seconds.  No more "approximate" timers!

The traditional restrictions about timer execution (timers do not go off
while another timer is executing, and while you are /wait'ing) still apply.

Revision 1.2 / (view) - annotate - [select for diffs] , Thu Apr 5 20:55:39 2001 UTC (7 years, 5 months ago) by robohak
Branch: MAIN
CVS Tags: epic4-1_1_1, epic4-1_0_1
Changes since 1.1: +23 -4 lines
Diff to previous 1.1
keep executing timer in the PendingTimer list so you can't end up with multiple timers with the same name

Revision 1.1.1.1 / (view) - annotate - [select for diffs] (vendor branch) , Tue Dec 5 00:11:57 2000 UTC (7 years, 9 months ago) by jnelson
Branch: epicsol
CVS Tags: start, epic4_0_9_15, 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, 9 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