CVS log for epic4/source/keys.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.33 / (view) - annotate - [select for diffs] , Mon Mar 17 02:42:46 2008 UTC (4 months, 1 week ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_10, HEAD
Changes since 1.32: +2 -2 lines
Diff to previous 1.32
* Move "term.h" out of the way so we can #include <term.h> (mv'd to termx.h)
* This makes it possible to avoid empty decls for tparm()
* Which is supposed to fix the build for larne on who-only-knows-what.
* Rename tparm() to my_tparm().
* Do a make depend since i changed the name of a header file. ugh.
* Change the name of (struct term) to (struct my_term) for freebsd sake. ugh.

Revision 1.32 / (view) - annotate - [select for diffs] , Wed Apr 20 03:07:02 2005 UTC (3 years, 3 months ago) by wd
Branch: MAIN
CVS Tags: epic4-2_8, epic4-2_6, epic4-2_4
Changes since 1.31: +25 -8 lines
Diff to previous 1.31
Fix bug with deleting user-created functions.
-wd

Revision 1.31 / (view) - annotate - [select for diffs] , Fri Jul 23 23:02:31 2004 UTC (4 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-2_2, epic4-2_1_3, epic4-2_1_2, epic4-2_1_1
Changes since 1.30: +19 -19 lines
Diff to previous 1.30
Flush all of the small bug fixes i've been sitting on.

Revision 1.30 / (view) - annotate - [select for diffs] , Tue Oct 28 05:53:57 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: 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, epic4-1_1_14
Changes since 1.29: +3 -3 lines
Diff to previous 1.29
* 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.29 / (view) - annotate - [select for diffs] , Mon Aug 11 02:57:04 2003 UTC (4 years, 11 months ago) by wd
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.28: +5 -5 lines
Diff to previous 1.28
Fix the swapped home/end keybindings for some terminals.
-wd

Revision 1.28 / (view) - annotate - [select for diffs] , Tue Jul 22 20:12:54 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.27: +4 -2 lines
Diff to previous 1.27
Teach all the /set callbacks to take a (const void *).
This fixes a bad-c problem with /set!

Revision 1.27 / (view) - annotate - [select for diffs] , Tue Jul 22 18:04:36 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26
* 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.26 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:57 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.25: +7 -7 lines
Diff to previous 1.25
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.25 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:25 2003 UTC (5 years ago) by jnelson
Branch: MAIN
Changes since 1.24: +12 -12 lines
Diff to previous 1.24
Convert m_strdup() to malloc_strdup().

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

Revision 1.23 / (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.22: +45 -44 lines
Diff to previous 1.22
* 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.22 / (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.21: +19 -13 lines
Diff to previous 1.21
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.16.2.3 / (view) - annotate - [select for diffs] , Wed Mar 26 09:20:46 2003 UTC (5 years, 4 months ago) by wd
Branch: wd-devel
Changes since 1.16.2.2: +2 -2 lines
Diff to previous 1.16.2.2 to branch point 1.16 to next main 1.17
Okay.  User input is now handled specially, and parse_command() will not
accept incomplete command names anymore.
-wd

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

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

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

Revision 1.20 / (view) - annotate - [select for diffs] , Mon Dec 23 15:11:27 2002 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8
Changes since 1.19: +1 -14 lines
Diff to previous 1.19
* Remove colon at end of RETURN_MSTR so it is like others.
* Unify dgets() and SSL_dgets()
* Add a 4th argument to dgets(), an (SSL *) for ssl reads, NULL for normals
* Integrate SSL stuff more tightly by removing unecessary #ifdef's
* Change 'enable_ssl' to 'try_ssl' to avoid confusion with 'ssl_enabled'
* Remove uneccesary members of (Window)
* #include "functions.h" in any file implementing built in functions.
* panic if ssl op attempted on non-ssl connection.
* Don't call functions in RETURN_* macros. (they're evaled twice)
* Nuke #ifdef 0'd uses of 'ceiling_of_display'

Revision 1.19 / (view) - annotate - [select for diffs] , Thu Dec 19 03:22:59 2002 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.18: +6 -7 lines
Diff to previous 1.18
* 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.18 / (view) - annotate - [select for diffs] , Wed Dec 11 19:20:23 2002 UTC (5 years, 7 months ago) by crazyed
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17
* 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.17 / (view) - annotate - [select for diffs] , Tue Nov 26 23:03:13 2002 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.16: +10 -6 lines
Diff to previous 1.16
* 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.16 / (view) - annotate - [select for diffs] , Mon Sep 23 07:07:49 2002 UTC (5 years, 10 months ago) by wd
Branch: MAIN
Branch point for: wd-devel
Changes since 1.15: +56 -11 lines
Diff to previous 1.15
Fixed the key_exec_bt() function so that if you bind 'foo', 'bar', and
'foobar', and type in 'foobaz' quickly it executes 'foo' and 'b', 'a', 'z'
(basically, made it execute the longest possible string of keys each time)
-wd

Revision 1.15 / (view) - annotate - [select for diffs] , Tue Sep 3 05:06:52 2002 UTC (5 years, 10 months ago) by wd
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
Forgot to bind ^C to self-insert as it was historically.
-wd

Revision 1.14 / (view) - annotate - [select for diffs] , Sun Sep 1 17:27:52 2002 UTC (5 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +1 -3 lines
Diff to previous 1.13
* Fix expand_twiddle to take a (const char *)
* Fix do_log and set_log_file to take a (const char *)
* Remove a couple of no-ops in keys.c
* Revamp do_log into two parts; open_log and close_log; do_log now a wrapper.
* Fix a string that had a newline in it. spotted by Szabolcs Rumi.

Revision 1.13 / (view) - annotate - [select for diffs] , Fri Aug 23 21:45:30 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.12: +10 -11 lines
Diff to previous 1.12
Hopefully fixed a bcgcc problem with bind_string()
-wd

Revision 1.12 / (view) - annotate - [select for diffs] , Mon Aug 19 16:09:06 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
I em a gud speeler.
-wd

Revision 1.11 / (view) - annotate - [select for diffs] , Tue Aug 13 22:52:19 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
CVS Tags: epic4-1_1_7
Changes since 1.10: +44 -44 lines
Diff to previous 1.10
Whitespace fixes.
-wd

Revision 1.10 / (view) - annotate - [select for diffs] , Tue Aug 13 04:05:21 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.9: +10 -6 lines
Diff to previous 1.9
Fixed the 'window' script.  You can no longer shorthand keybinding names.
Also, fixed POLA violation by allowing non-bound keys to rest in a state
as long as need be.
-wd

Revision 1.9 / (view) - annotate - [select for diffs] , Tue Aug 13 03:27:01 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.8: +136 -133 lines
Diff to previous 1.8
Keybindings are now eight-bit clean.  I hope.
-wd

Revision 1.8 / (view) - annotate - [select for diffs] , Mon Aug 12 16:44:06 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7
Oops, bug found and fixed.  $bindctl(FUNCTION ... GET) can core the
client.
-wd

Revision 1.7 / (view) - annotate - [select for diffs] , Mon Aug 12 16:19:35 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.6: +48 -52 lines
Diff to previous 1.6
Fixed some style breakage, and some warnings.
-wd

Revision 1.6 / (view) - annotate - [select for diffs] , Mon Aug 12 15:41:11 2002 UTC (5 years, 11 months ago) by wd
Branch: MAIN
Changes since 1.5: +1194 -1349 lines
Diff to previous 1.5
New keybindings system coming through.  Details can be found in doc/keys
and in a few other places. :)
-wd

Revision 1.5 / (view) - annotate - [select for diffs] , Mon Jul 29 21:27:05 2002 UTC (5 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_6
Changes since 1.4: +3 -3 lines
Diff to previous 1.4
Update documentation prior to epic4-1.1.6 release
Add "HAVE_GETSERVBYNAME" check to configure stuff.
Remove /SET RANDOM_LOCAL_PORTS which has gone away.
Fix some layout issues with gailib.c and change two function names.
Fix comment issue with ircsig.c
Fix uninitialized variable issue with keys.c
Remove mention of /SET RANDOM_LOCAL_PORTS in network.c

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

Revision 1.3 / (view) - annotate - [select for diffs] , Wed Jul 3 20:46:12 2002 UTC (6 years ago) by wd
Branch: MAIN
Changes since 1.2: +149 -1 lines
Diff to previous 1.2
Added /STACK ... BIND (per discussion w/ hop)
-wd

Revision 1.2 / (view) - annotate - [select for diffs] , Thu May 23 02:35:17 2002 UTC (6 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1
No functional changes, just removal of unecessary whitespace at the end
of lines.  From adm.

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_5, epic4-1_1_4, epic4-1_1_3, 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