1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00
Commit Graph

369 Commits

Author SHA1 Message Date
Karl Heuer
231c740a45 (main, skip_to_lf): Improve error handling.
(sysfail): New function.
1995-04-13 17:24:35 +00:00
Karl Heuer
7a804c76c4 (main): Check for trailing ", " before trying to delete it. 1995-04-13 17:06:05 +00:00
Richard M. Stallman
1feb8ae1f5 (scan_c_file): At end, restore file name last char to its original value. 1995-04-13 16:05:43 +00:00
Richard M. Stallman
0731825e49 (all): Build test-distrib and make-docfile. 1995-04-13 16:03:08 +00:00
Karl Heuer
ebd67b8e2d (obj, lisp): Update to expanded list of source files.
(DOC): Place DOC strings in DOC-X.
(config.h, paths.h): New source location.
(all): Use COMPAT_LIB in library list.
Use DEL_TREE instead of delnode.
(etags.exe): Use $(LINK) instead of link32.
1995-04-12 03:00:06 +00:00
Richard M. Stallman
1e523e3da8 Test NO_SOCKETS_IN_FILE_SYSTEM. 1995-04-11 01:44:46 +00:00
Richard M. Stallman
1d0b600d31 (BASE_CFLAGS): Renamed from ALLOCA_CFLAGS.
(alloca.o, regex.o): Use BASE_CFLAGS.
1995-04-08 17:51:52 +00:00
Richard M. Stallman
7e1251a15e [Berkeley sockets version] (main): Declare getcwd. 1995-04-07 01:01:25 +00:00
Karl Heuer
f470f9bd66 Update copyright. 1995-04-07 00:16:13 +00:00
Karl Heuer
5c579a7529 (aixcc, aixcc.c): Targets deleted.
(SOURCES, distclean): Removed obsolete references to aixcc.
1995-04-04 21:11:29 +00:00
Richard M. Stallman
c76d4b428f Comment change. 1995-04-02 07:34:28 +00:00
Paul Eggert
4c952fd0fa (output_authors): Replace /[/]/ by /[\/]/, for portability to mawk and nawk. 1995-03-23 01:21:07 +00:00
Paul Eggert
0a4e59d934 Treat -u 'LOGIN:FULLNAME:MAILADDR' as if it were
-u 'LOGIN<tab>FULLNAME<tab>MAILADDR'.
1995-03-21 23:14:41 +00:00
Paul Eggert
44ef8c25be Add -u "login<tab>fullname<tab>mailaddr" option, which replaces the
(now obsolescent) -n login fullname mailaddr option.
Don't omit path from repository root when logging CVS files.
Add -R option for recursive rlog.
(AWK): New environment variable (default `awk') for name of awk program.
(output_authors, tab, loginFullnameMailaddrs, recursive): New variables.
Quote authors and fullnames correctly.
1995-03-21 05:37:42 +00:00
Richard M. Stallman
d1e203d20c Use BSD sockets whenever available, even if HAVE_SYSVIPC. 1995-03-15 23:32:19 +00:00
Richard M. Stallman
ee6a193c4c Use BSD sockets whenever available, even if HAVE_SYSVIPC.
(main): Use getcwd if not BSD.
1995-03-15 23:31:02 +00:00
Francesco Potortì
a8d9bd4b49 * etags.c (process_file): free (filename) after using it.
(readline_internal): Do not access the char before start of line.
1995-03-13 10:47:58 +00:00
Francesco Potortì
75bdbc6afd * etags.c (C_entries): token_saved removed. Initialise tok.valid and
savetok.valid.  Mark token as valid when it is initialised.
	(make_tag): Make token only if token is valid and reset validity.
	(CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved.
	(TOKEN): Added a new member: valid.
1995-02-22 15:06:49 +00:00
Francesco Potortì
9cb0aa73c3 * etags.c (C_entries): Bug corrected in xrealloc of token_str.
(main): Do not read twice the last filename in the stdin file list.
1995-02-15 15:03:21 +00:00
Francesco Potortì
2bd88040e7 * etags.c (C_entries): Initialise the new members of TOKEN.
(C_entries): Do not allocate a new space for each token found by
	consider_token.  Let make_tag do that instead.
	(make_tag): Since now TOKEN has memory of where it is taken from,
	this new macro substitutes both make_tag_from_new_lb and
	make_tag_from_oth_lb.  All callers changed.
	(TOKEN): Add linepos and buffer members.
	(main): Initialise token_str.
	(lang_extensions): Recognise .c++ and .h++ as C++ file suffixes.
	(token_str): New global variable used by C_entries.
1995-02-14 17:31:55 +00:00
Richard M. Stallman
26873b7234 (maintainer-clean): Renamed from realclean. 1995-02-07 23:55:01 +00:00
Francesco Potortì
4b533b5be6 * etags.c (pfnote): Initialise been_warned in the node.
(C_entries): Removed a speed hack for the sake of clarity.
1995-02-01 11:08:17 +00:00
Francesco Potortì
201f9f2b7c * etags.c (longopts, print_help, main): Use -I as abbreviation
for the --ignore-indentation option.
	(main): Do not print an error message for unknown options.
1995-01-18 10:14:19 +00:00
Francesco Potortì
55597f9003 Global polishing, some bugs corrected, dynamic allocation used instead
of fixed length static buffers in many places.
	* etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Deleted.
	(append_to_tagfile, typedefs, typedefs_and_cplusplus,
	 constantypedefs, update, vgrind_style, no_warnings,
	 cxref_style, cplusplus, noindentypedefs): Were int, now logical.
	(permit_duplicates): Was a var, now a #define.
	(filename_lb): Was global, now local to main.
	(main): Open the tag file when in cxref mode.
	Use a BUFSIZ size buffer for making the shell commands.
	Look at the return value from the system routine.
	Exit when cannot open the tag file.
	(process_file): Open the file and pass the FILE* to find_entries.
	(find_entries): Now void, because does not open the file itself.
	(pfnote): Recovering from lack of memory does not work.  Removed.
	Use savenstr and simplify the code.
	(free_tree): Only free the name space if node is named.
	(structtag): Now a pointer, not a fixed length array of chars.
	(consider_token): Don't take a token as argument.  Use savenstr
	when saving a tag in structtag.  Callers changed.
	(TOKEN): Structure changed.  Now used only in C_entries.
	(TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Deleted.
	(C_entries): nameb and savenameb deleted.  Use dinamic allocation.
	(pfcnt): Deleted.  Users updated.
	(getit, Asm_labels, Pascal_functions, L_getit, get_scheme,
	 TEX_getit, prolog_getit): Use dinamic allocation for storing
	the tag instead of a fixed size buffer.
1995-01-12 17:05:37 +00:00
Richard M. Stallman
0c22b79bad (main): Skip past the colon in inname. 1995-01-11 03:36:30 +00:00
Francesco Potortì
cdc1f6a71f * etags.c (pfatal): New function.
(main, etags_getcwd): Use pfatal.
	(etags_getcwd): Corrected another bug in the HAVE_GETCWD version.
1995-01-10 17:20:39 +00:00
Francesco Potortì
aab1fdaecc * etags.c (Lang_function): Use void instead to declare the
language functions, because many compilers are buggy.
	(etags_getcwd): Fix the previous fix on the #else branch.
	(readline_internal): Discard possible \r before \n here.
	(C_entries): Do not deal with \r here: undo previous fix.
1995-01-10 09:07:15 +00:00
Richard M. Stallman
e19bdc1471 (concat, xmalloc, xrealloc, readline, xnew): Four new
functions and a macro that allow the program to work on input
lines of whatever length.  Copied from etags.c.
(fatal): Print a fatal error message and exit.
(main): Use the new functions.  Fixed a bug that made a \037 char
appear at the end of the output.
1995-01-09 18:31:22 +00:00
Richard M. Stallman
dc26fc9f0f (C_entries): Ignore carriage return at end of line. 1995-01-06 22:30:26 +00:00
Richard M. Stallman
3d23b9853e (xmalloc, xrealloc): Add casts.
(add_field): Handle <...> and "..." syntax.
(setup_files, get_keyword): Clean up parens and line breaks.
(args_size): Likewise.
1994-12-26 23:48:27 +00:00
Richard M. Stallman
b5ff43cc2e (scan_lisp_file): Handle dynamic doc strings.
(xmalloc, fatal, error): New functions.
(progname): New variable.
(main): Set progname.
1994-12-21 16:16:45 +00:00
David J. MacKenzie
b3dcbddbfc Include program name in error messages. 1994-12-21 15:58:28 +00:00
Richard M. Stallman
b135a7cf0b [HAVE_SYSVIPC]: Include sys/utsname.h.
(main): If socket/mqueue name is in home dir, add in the host name.
Rename .emacs_server to .emacs-server-....

[!HAVE_SYSVIPC] (main): Fix error message diction.
1994-12-07 07:39:23 +00:00
Richard M. Stallman
021eac48bf [HAVE_SYSVIPC]: Include sys/utsname.h.
(main): If socket/mqueue name is in home dir, add in the host name.
Rename .emacs_server to .emacs-server-....
1994-12-07 07:38:00 +00:00
Richard M. Stallman
2d1db47cfd (get_time): Fix up whitespace. 1994-11-28 21:03:41 +00:00
Francesco Potortì
7537186d2b * etags.c (print_help): print --regex usage for ctags also.
(main): use -h in addition to -H as abbreviation for --help.
1994-11-22 18:17:23 +00:00
Francesco Potortì
b9755a1207 * etags.c [ETAGS_REGEXP]: All the new code that deals with regexps
is compiled if this is defined.  The new functions and variables
	added #ifdef ETAGS_REGEXP are not listed in this ChangeLog.
	[VMS]: All VMS specific code previously contained in
	etags-vmslib.c is now included here, modified for dealing with
	language and regex options intermixed with filenames.
	(header_file): Global variable deleted.
	(Lang_Function): New typedef.  All language parser functions
	changed to this new type.
	(string_numeric_p, substr, prestr): Functions deleted.
	(readline_internal): Does the job that readline did previously.
	(longopts): --language and --regex options added.
	(lang_names, lang_extensions, lang_func, print_language_names):
	New structures, variables and functions for choosing languages.
	(print_help): Help strings updated.  Calls print_language_names.
	(argument_type, ARGUMENT): Typedefs for dealing with language and
	regex options intermixed with filenames.
	(main): Changed the way of dealing with arguments on the command
	line to deal with language and regex options intermixed with
	filenames.
	(get_language, default_C_entries, Cplusplus_entries,
	Cstar_entries, Yacc_entries, just_read_file): New functions.
	(find_entries): Use the new method for choosing the language.
	(Pascal_functions): Allow intermixing of comment styles.
	(prolog_getit, skip_comment): Rewritten for speed.
	(readline): Rewritten to deal with regexps.
1994-11-16 13:00:49 +00:00
Francesco Potortì
dcc89e637e * etags.c (<errno.h>): #include added.
(etags_getcwd): Check return value from getcwd.
1994-11-16 10:29:33 +00:00
Richard M. Stallman
db965a28af (TV1, TV2): Use EMACS_TIME as type.
(get_time): Use EMACS_SUB_TIME.
1994-11-10 22:26:57 +00:00
Karl Heuer
85cdd6afed Changed references of m\m-windowsnt.h to m\intel386.h and of s\s-windowsnt.h
to s\windowsnt.h.
1994-11-03 21:11:43 +00:00
Richard M. Stallman
95ed00257a Initial revision 1994-11-01 10:27:02 +00:00
Richard M. Stallman
c05b6df534 (main, etags_getcwd): Test DOS_NT instead of MSDOS.
[WINDOWSNT]: Include some NT headers.
1994-11-01 05:26:14 +00:00
Richard M. Stallman
86b0513a2c (main) [WINDOWSNT]: Now sets _fmode and stdout to O_BINARY.
[WINDOWSNT]: Include the NT headers.
(READ_TEXT, READ_BINARY): Test DOS_NT, not MS_DOS.
1994-11-01 05:23:42 +00:00
Richard M. Stallman
b6606ad821 (getline): When a search of already-read input for CRLF
fails, store the fact that we've searched it and don't search it
again after reading more data.

(getline): When determining whether or not it's necessary
to grow the input buffer, take into account the null that's stored
at the end of already-read input in the buffer.
1994-10-24 04:41:21 +00:00
Richard M. Stallman
a27897c9ac (main): Don't process one input file twice.
Never use exit code > 1.
1994-10-21 20:31:43 +00:00
Francesco Potortì
715b6f8c4e * etags.c (prestr, substr): return a logical type.
(consider_token): Comment out "EXFUN".  Use "DEFUN" instead of "DEF".
	(consider_token): set funcdef to fignore when a DEFUN is met.
	(C_entries): Now we can use Tom Hageman patch for extern "C".
1994-10-21 12:28:55 +00:00
Richard M. Stallman
b32701a7ff PopServer renamed to popserver throughout. 1994-10-20 20:35:57 +00:00
David J. MacKenzie
25b4690733 Don't declare malloc, since we include config.h. 1994-10-20 16:37:04 +00:00
Richard M. Stallman
8148baf912 Only include ../src/config.h if HAVE_CONFIG_H is
defined, and if HAVE_CONFIG_H isn't defined, define
MAIL_USE_POP always (so that this file can be included in
other programs besides emacs).

Only declare h_errno if HAVE_H_ERRNO isn't defined or
HAVE_CONFIG_H isn't defined.

(find_crlf, getline): Instead of using strstr, use a
custom function for finding CRLF.
(my_strstr): Function deleted.
1994-10-19 22:52:57 +00:00
Richard M. Stallman
1a9654a0c3 Don't declare malloc. 1994-10-19 22:49:37 +00:00