Commit graph

1735 commits

Author SHA1 Message Date
Francesco Potortì
0ff74d81c3 * etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
compatibility problems.
1995-05-29 16:49:24 +00:00
Francesco Potortì
915e30c809 * etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
compatibility problems.
1995-05-29 12:40:25 +00:00
Karl Heuer
153e4de000 (etags_getcwd): Don't use #elif.
Have just one function body.
1995-05-27 00:26:00 +00:00
Geoff Voelker
85212e6740 Use BASE_LIBS.
(make-docfile.exe,hexl.exe,wakeup.exe,etags.exe): Don't depend upon LIBS.
(DOC): Use del instead of rm.
(DOC) [WINDOWS95]: Use DOC.
(clean): Handle MSVC aux files.
(config.h,paths.h): Use $(CP) instead of cp.
(config.h): Use $(CONFIG_H)
(make-docfile.obj): Depend upon config.h.
Clean up comments.
1995-05-26 05:19:55 +00:00
Francesco Potortì
0f39406594 * etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
former gives the true path even in the presence of simlinks.
1995-05-23 15:40:31 +00:00
Richard M. Stallman
66a8ad0fd4 (main): Increase lock timeout to five minutes. 1995-05-07 22:36:27 +00:00
Richard M. Stallman
45fad0f1d7 (obj): Use .c files. 1995-05-07 20:17:48 +00:00
Richard M. Stallman
34b4ece5fe Include config.h.
(NO_SHORTNAMES): New definition.
(xmalloc): Return long *.
1995-05-04 21:57:30 +00:00
Richard M. Stallman
2583d6d741 (xmalloc): Declare it to return long *. 1995-05-04 06:46:51 +00:00
Richard M. Stallman
0404b62c85 (xmalloc, xrealloc): Declare them long *. 1995-05-04 06:46:37 +00:00
Richard M. Stallman
03cdafdfe5 (C_entries): Cast result of xrealloc.
(xmalloc, xrealloc): Declare them to return long *.
1995-05-04 06:46:14 +00:00
Paul Eggert
64736f55e1 (datearg): If rlog options are specified explicitly,
omit the implicit '-d>DATE' option.
(repository, rlog): Allow absolute paths to CVS repositories.
Look only at the first line of CVS/Repository.
1995-04-30 15:34:52 +00:00
Karl Heuer
a01c76d72b (extraclean): Depend on maintainer-clean, not
realclean.
1995-04-26 21:00:55 +00:00
Richard M. Stallman
e63ceebf0d [REGEXP_IN_LIBC] (REGEXPOBJ, REGEXPDEPS):
Alternative (empty) definitions.
1995-04-25 02:30:06 +00:00
Richard M. Stallman
26396b1bda (main): Add argv[0] to an error message. 1995-04-18 20:50:19 +00:00
Karl Heuer
18a2fa9174 (main): Improve error handling. 1995-04-14 02:10:52 +00:00
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