1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

972 Commits

Author SHA1 Message Date
Francesco Potortì
2431364f30 (find_entries): Bug fix in list management. 2002-04-16 00:02:55 +00:00
Francesco Potortì
090416ca29 *** empty log message *** 2002-04-16 00:02:38 +00:00
Francesco Potortì
54ef70a20c * etags.c (get_language_from_filename): Add one argument.
(strcaseeq): New function.
	(get_language_from_filename): Use it to do a case insenstitive
	comparison if called with appropriate args.
	(find_entries): Try with case insensitive match.
	(process_file): Bug fixed.
2002-04-15 16:04:52 +00:00
Francesco Potortì
5dab24c1f2 *** empty log message *** 2002-04-15 16:04:29 +00:00
Francesco Potortì
a53638904d Bug fix. New version to come soon. 2002-04-15 15:55:07 +00:00
Francesco Potortì
9e0a3f9876 Avoid doubly tagging parse.y when both parse.c and parse.y are given on
the command line, in either order.

	* etags.c (find_entries): Delete tags previously obtained from
	file xxx.c's #line directives when parsing file xxx.y.  This is
	generally done for automatically generated files containing
	#line directives.  This handles the case when xxx.y is tagged
	before xxx.c, and the entries of xxx.c pointing to xxx.y should
	be discarded.
	(language): Added the metasource member.  Initializers changed.
	(invalidate_nodes): New function.
	(readline): Discard lines after having found a #line
  	directive pointing to an already tagged file.  This handles the
	case when xxx.y is tagged before xxx.c, and the entries of
	xxx.c pointing to xxx.y should be discarded.
	(fdesc): New structure for keeping track of input files.
	(fdesc): Remove `file' member (a string) and use instead a pointer
	to a file description structure.
	(curfile, curfiledir, curtagfname, curlang, nocharno,
	forced_lang): Global variables removed in favor of fdhead and
	curfdp, pointers to file description strucures.
	(longopts, main, print_help): Use the CTAGS conditional to include
	or exclude options that work on etags or ctags only.
	(process_file, find_entries, pfnote, add_node, put_entries,
	readline): Use fdhead and curfdp.
	(process_file, find_entries): Do not take an arg string, all
	callers changed.

	* etags.c (longopts, print_help, main): Test CTAGS to disallow
	options that are not right for either etags or ctags.

	* etags.c (number_len, total_size_of_entries): Define them also
	in CTAGS mode, because gcc does not compile all refs away.
2002-04-15 14:18:47 +00:00
Francesco Potortì
c150db2349 *** empty log message *** 2002-04-15 14:17:50 +00:00
Colin Walters
e9d1f248d5 *** empty log message *** 2002-04-14 06:42:43 +00:00
Colin Walters
7c4f687309 (lock_file): If the lock file is older than an hour, delete it. Reset
attempts to zero if we have to break the lock.
2002-04-14 06:40:19 +00:00
Andreas Schwab
7605f1bd6c (read_score): Fix type of second parameter
of getdelim to be of type size_t instead of int.  Use 0 instead of
ESUCCES.
2002-04-14 01:02:53 +00:00
Colin Walters
b9b966e0d9 *** empty log message *** 2002-04-10 19:17:05 +00:00
Colin Walters
e82defd14e *** empty log message *** 2002-04-10 19:16:02 +00:00
Colin Walters
8eec804f6e (toplevel): Include stdarg.h.
(MAX_DATA_LEN, MAX_SCORES): New.
(SCORE_FILE_PREFIX): If HAVE_SHARED_GAME_DIR is not defined,
default to ~/.emacs.d/games.
(get_user_id): Don't zero uid in the case where we can't get the
username.
(lose): New function.
(main): Actually use `max', and default it to MAX_SCORES.
Correctly handle new default for SCORE_FILE_PREFIX.  Use `lose'
function.
(read_score): Handle the case of reading unamelen characters, then
finishing.  Use mktemp if mkstemp isn't available.
(lock_file, unlock_file): Delete unused versions.
(lock_file): Always sleep, even if we unlinked the lock file.
2002-04-10 19:10:23 +00:00
Colin Walters
1ba1fb11c0 (gamedir, gameuser): New variables.
(toplevel, UTILITIES): Add update-game-score.
(${archlibdir}): Handle HAVE_SHARED_GAME_DIR.
2002-04-10 19:05:44 +00:00
Colin Walters
5795b42089 update-game-score.c (SCORE_FILE_PREFIX): Don't hardcode.
(get_user_id): Take struct passwd as an argument.
(get_home_dir): New function.
(main): Read in user information here.  Discover home directory if
necessary.
(read_score): Trim newline only in `getline' case.
2002-04-07 05:46:15 +00:00
Colin Walters
f5bceaf89b Actually make previous changes work (oops). 2002-04-05 09:18:57 +00:00
Colin Walters
cd553ffbf3 (toplevel): Include pwd.h.
(struct score_entry): Add username field.
(push_score): Use it.
(get_user_id): New function.
(main): Don't malloc excessively.
(main): Use username field.
(read_score): Read it.
(push_score): Handle it.
(write_scores) Write it.
(read_score): Handle arbitrary length data.
2002-04-05 08:58:12 +00:00
Eli Zaretskii
b74bd4a35d *** empty log message *** 2002-03-30 08:09:08 +00:00
Eli Zaretskii
74974a34cd (add_declarator): Fix the first call to add_member_defn. 2002-03-30 07:40:54 +00:00
Gerd Moellmann
fa8bc89d0d (add_declarator, skip_initializer): New functions.
(declaration): Use them.
2002-03-29 11:20:40 +00:00
Jason Rumney
dd87b4cc4c Move backquote.elc into emacs-lisp. 2002-03-28 20:11:54 +00:00
Colin Walters
2f1de3dd26 Initial version. 2002-03-27 20:57:06 +00:00
Paul Eggert
dfef6d4974 * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
`sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
the latter usage.
2002-03-23 06:49:12 +00:00
Paul Eggert
61bbbf8d13 (main): Use sort -o TAGFILE TAGFILE' instead of sort TAGFILE -o
TAGFILE', as POSIX 1003.1-2001 disallows the latter usage.
2002-03-23 06:48:31 +00:00
Jason Rumney
ca55a1e303 Fix formatting of previous entry 2002-03-12 22:29:10 +00:00
Francesco Potortì
a13d6523e0 *** empty log message *** 2002-03-12 14:17:25 +00:00
Francesco Potortì
49adb67ab2 * etags.c (Python_functions): Skip spaces at beginning of lines.
(Python_functions, PHP_functions): Name tags, for ctags' sake.
(TeX_commands): Name tags.  Correction of old disabled code.

* etags.c (curfiledir, curtagfname): New global variables.
(process_file): Initialise them.
(readline): Canonicalize the name found in #line directive.
2002-03-12 13:31:57 +00:00
Francesco Potortì
4fff90e4ff *** empty log message *** 2002-03-12 11:16:25 +00:00
Jason Rumney
893a741e97 *** empty log message *** 2002-03-06 23:20:04 +00:00
Jason Rumney
14ca7c9849 (put_entries): Use #if !CTAGS, to fix link error on
compilers that don't optimize out dead code.
2002-03-06 23:14:29 +00:00
Francesco Potortì
db59058201 * etags.c: Honour #line directives.
(no_line_directive): New global var; set it for old behaviour.
(main): Remove some #ifdef in the getopt switch.
(add_node, put_entries): Code added to merge different chunks of
nodes referring to the same file.  Currently the tags are just
appended, without any check for duplicates.
(Perl_functions): Do not special case ctags.
(readline): Identify #line directives and do the right thing.
(nocharno, invalidcharno): New global vars.
(process_file): Reset nocharno.
(readline): Set nocharno.
(pfnote): Read nocharno and maybe put invalidcharno in node.
(total_size_of_entries, put_entries): Use invalidcharno.

* etags.c: Keep the whole tag table in memory, even in etags mode.
(main): Call put_entries here even in CTAGS mode.
(main, process_file): Check the return values of fclose and pclose.
(process_file): Do not call put_entries after parsing each file.
(process_file): Canonicalise file names even for ctags.
(process_file): Set curfile here...
(find_entries): ... not here any more.
(add_node): In etags mode, build a linked list of entries (on
right pointer) for each file, and link the first entry of each
file on left nodes.
(put_entries): Print here the name of the file.
(put_entries): Print the entries starting from the first file.
(number_len, total_size_of_entries): Define these only iin etags
mode, make the second work only on the right nodes.

* etags.c: Make all global variables static.
2002-03-05 11:28:26 +00:00
Francesco Potortì
51aeded3e6 *** empty log message *** 2002-03-05 11:27:51 +00:00
Juanma Barranquero
50ce1f6206 *** empty log message *** 2002-02-25 16:07:54 +00:00
Juanma Barranquero
e63e8d3ed3 Add missing backslash. 2002-02-25 15:47:41 +00:00
Jason Rumney
82a399d298 *** empty log message *** 2002-02-24 18:40:25 +00:00
Jason Rumney
7f379e5ba7 (WINNT_SUPPORT, MOUSE_SUPPORT, lisp): Revert to using .elc files.
(lisp): Sync with list in src/Makefile.in
(VMS_SUPPORT, MSDOS_SUPPORT): Define, so DOC files can be shared.
2002-02-24 18:39:16 +00:00
Richard M. Stallman
95bc7904bc *** empty log message *** 2002-02-15 20:01:30 +00:00
Paul Eggert
3c58afc555 Update copyright date. 2002-02-10 08:10:43 +00:00
Paul Eggert
a279c92001 * rcs-checkin: Use sort -k 2', not sort +1', as POSIX 1003.1-2001
disallows the old syntax.
2002-02-10 08:09:53 +00:00
Paul Eggert
ca32301638 Use sort -k 2', not sort +1', as POSIX 1003.1-2001
disallows the old syntax.
2002-02-10 08:08:59 +00:00
Paul Eggert
0caa685d66 * rcs2log(Copyright): Update to 2002.
(AWK, TMPDIR): Work around portability problem in broken shells that
don't understand `: ${VAR=val}'.
(SORT_K_OPTIONS): New var, for hosts that conform to POSIX 1003.1-2001.
Prefer the new -k option to the traditional +M -N option.
2002-02-03 17:33:19 +00:00
Paul Eggert
b2ba2352ed (Copyright): Update to 2002.
(AWK, TMPDIR): Work around portability problem in broken shells that
don't understand `: ${VAR=val}'.
(SORT_K_OPTIONS): New var, for hosts that conform to POSIX 1003.1-2001.
Prefer the new -k option to the traditional +M -N option.
2002-02-03 17:31:31 +00:00
Pavel Janík
a00e9335a4 Remove unnecessary whitespaces. 2002-01-05 23:37:58 +00:00
Pavel Janík
03950b5baf *** empty log message *** 2002-01-01 22:14:32 +00:00
Pavel Janík
25b18337e9 (main): Parenthesize assignment when used as truth value to prevent gcc
warnings.
2002-01-01 22:08:54 +00:00
Pavel Janík
4838e624ad Include <config.h>. 2002-01-01 19:15:26 +00:00
Pavel Janík
80b2cbf263 Remove unnecessary whitespaces. 2001-12-30 22:09:01 +00:00
Pavel Janík
9d8f0a614a Remove unnecessary whitespace. 2001-12-30 22:07:35 +00:00
Pavel Janík
2f8fe2f420 Include <config.h>. 2001-12-29 22:25:06 +00:00
Pavel Janík
f22d478515 Remove trailing whitespaces. 2001-12-29 22:21:10 +00:00