1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00
Commit Graph

997 Commits

Author SHA1 Message Date
Francesco Potortì
6861f0e327 New multi-line regexp and new regexp syntax. 2002-06-13 11:15:46 +00:00
Francesco Potortì
24dbe96a10 New multi-line regexp and new regexp syntax.
(arg_type): at_icregexp label removed (obsolete).
(pattern): New member multi_line for multi-line regexps.
(filebuf): A global buffer containing the whole file as a string
for multi-line regexp matching.
(need_filebuf): Global flag raised if multi-line regexps used.
(print_help): Document new regexp modifiers, remove references to
obsolete option --ignore-case-regexp.
(main): Do not set regexp syntax and translation table here.
(main): Treat -c option as a backward compatibility hack.
(main, find_entries): Init and free filebuf.
(find_entries): Call regex_tag_multiline after the regular parser.
(scan_separators): Check for untermintaed regexp and return NULL.
(analyse_regex, add_regex): Remove the ignore_case argument, which
is now a modifier to the regexp.  All callers changed.
(add_regex): Manage the regexp modifiers.
(regex_tag_multiline): New function.  Reads from filebuf.
(readline_internal): If necessary, copy the whole file into filebuf.
(readline): Skip multi-line regexps, leave them to regex_tag_multiline.

(add_regex): Better check for null regexps.
(readline): Check for regex matching null string.
(find_entries): Reorganisation.
2002-06-13 10:44:15 +00:00
Francesco Potortì
e7d3b099a2 (scan_separators): Support all character escape
sequences supported by gcc.
(find_entries): rewind unconditionally.
(find_entries): Do not call language functions directly, now calls
itself.
(find_entries): Do general initialisations here.
(CNL_SAVE_DEFINEDEF, C_entries, LOOP_ON_INPUT_LINES, F_getit)
(Ada_getit, Pascal_functions, Pascal_functions)
(prolog_skip_comment): Do not do them here.
(readline_internal): Increment lineno here.
(readline): Conditionally undo readline_internal increment.
(readline): Do not return a value.
2002-06-06 22:37:28 +00:00
Francesco Potortì
f0da41a610 *** empty log message *** 2002-06-06 22:36:54 +00:00
Francesco Potortì
97b90b0a2d (enum arg_type): New label at_stdin.
(STDIN): New constant.
(parsing_stdin): New flag.
(longopts): New option --parse-stdin=NAME.
(print_help): Document it.
(main): Handle it.
(process_file): Split into process_file and process_file_name.
(process_file_name): New function.
2002-06-06 12:50:27 +00:00
Francesco Potortì
f6566f9015 (TeX_commands): Skip comments.
(TEX_defenv): Now contains more contructs.
(TEX_cmt): Make it a static char and move it before TeX_commands.
(TeX_commands): Shorten the tag to the brace after the name.
(TeX_commands): Names now include the initial backslash.
(TeX_commands): Names do not include numeric args #n.
(TeX_commands): Correct line char number in tags.
(TEX_tabent, TEX_token): Deleted.
(TeX_commands, TEX_decode_env): Streamlined.
2002-06-06 09:45:52 +00:00
Francesco Potortì
5526f1f688 *** empty log message *** 2002-06-06 09:45:25 +00:00
Francesco Potortì
50496bd978 (main): Avoid a buffer overrun with sprintf. 2002-06-05 12:10:26 +00:00
Richard M. Stallman
a71867c57a *** empty log message *** 2002-05-30 17:16:05 +00:00
Richard M. Stallman
c0e38e32b9 (LIBS_MAIL): Renamed from LIB_MAIL.
(LIBS_MOVE): Renamed from MOVE_LIBS.
2002-05-30 17:15:45 +00:00
Paul Eggert
b7e67db6db Reinstate the following change from 2002-03-22, which was
inadvertently lost on 2002-04-13.

* etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
`sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
the latter usage.
2002-05-27 06:51:19 +00:00
Paul Eggert
8108640c1e Reinstate the following change from 2002-03-22, which was
inadvertently lost on 2002-04-13.

(main): Use `sort -o TAGFILE TAGFILE' instead of `sort TAGFILE -o
TAGFILE', as POSIX 1003.1-2001 disallows the latter usage.
2002-05-27 06:50:39 +00:00
Eli Zaretskii
5f226e2c33 *** empty log message *** 2002-05-25 10:50:02 +00:00
Eli Zaretskii
b72f3bcb37 (socket_connection): Move the code to resolve the POP
host right before trying to connect with it.
2002-05-17 11:24:02 +00:00
Eli Zaretskii
9975de28cd This file was deleted since the TCP emulation is no longer in use
on any platform.
2002-05-05 18:44:05 +00:00
Colin Walters
5167cfda36 *** empty log message *** 2002-04-29 23:16:38 +00:00
Colin Walters
d99fabf003 (SCORE_FILE_PREFIX): Delete.
(main): New argument -d, for specifying directory.
(usage): Document.
(get_user_id): Compute
(get_home_dir): Deleted.
(get_prefix): New function, taken from main.
(main): Check whether or not we are running setuid.  Move prefix
computation to get_prefix.  Don't call getpwent; we don't need to
any more.  Instead, move it to get_user_id().
2002-04-29 22:49:00 +00:00
Colin Walters
7451222f00 (${archlibdir}): Don't conditionalize on
HAVE_SHARED_GAME_DIR. Instead, test at installation time whether or
not we have access to the specified game user.
2002-04-29 22:48:22 +00:00
Pavel Janík
beedfcf163 (skip_initializer): Return void. 2002-04-24 18:27:59 +00:00
Colin Walters
973c3c870b *** empty log message *** 2002-04-23 20:34:27 +00:00
Colin Walters
1d4328ffce (read_score) [HAVE_GETDELIM]: Trim trailing space. 2002-04-23 20:23:05 +00:00
Francesco Potortì
8378bcd361 (last_node): Make it a global variable.
(process_file): Print the tags from the nodes as soon as
possible, and delete the nodes.  This brings down the memory
occupancy as etags to almost the same level as when the #line
directives were not parsed.
(free_fdesc): New function.
(find_entries): Use it.
(invalidate_nodes): In etags mode, do not just mark the nodes as
invalid, do delete them.
2002-04-22 14:12:08 +00:00
Gerd Moellmann
c901ceff74 (add_declarator): Test *CLS instead of CLS. 2002-04-21 12:49:36 +00:00
Eli Zaretskii
c42d6dbdbe Move config.h before the other headers, to prevent compiler warnings
due to redifinition of _FILE_OFFSET_BITS.
2002-04-16 20:05:08 +00:00
Eli Zaretskii
2400310de0 Add update-game-score. 2002-04-16 18:26:02 +00:00
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