Commit graph

676 commits

Author SHA1 Message Date
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
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
David J. MacKenzie ca452d5f79 Use test -r instead of < to check readability, to avoid syntax error. 1994-10-19 21:27:58 +00:00
Richard M. Stallman 625ad89f2a Fix mismatch in conditionals. 1994-10-18 23:50:10 +00:00
Richard M. Stallman 6d68310438 (open, close, read, write): Add #undefs. 1994-10-18 19:09:07 +00:00
Richard M. Stallman b8a0f2d8ab [SYSV_IPC] (main): Catch SIGHUP as well. Don't
call kill with pid 0.  Handle EINTR when receiving messages.
1994-10-18 11:23:18 +00:00
Richard M. Stallman c9c3d8f648 Include ../src/config.h. 1994-10-18 07:36:39 +00:00
Richard M. Stallman 7a481e50f6 Don't declare malloc, realloc, free.
Don't include string.h or strings.h.
Include des.h before krb.h.
Do declare my_strstr.
(getline): Really use my_strstr.
Leave one empty place in server->buffer,
and put a null at the end of the data in it.
1994-10-18 07:34:59 +00:00
Karl Heuer 3412f30312 (regex.o): Use full path to find regex.c. 1994-10-17 20:56:18 +00:00
Karl Heuer 66ab94d9bb (etags): add dependency on regex.o, link with it.
(REGEXPOBJ, REGEXPDEPS, regex.o): target and macros added.
1994-10-17 20:26:22 +00:00
David J. MacKenzie 2d521ee66b remove make-path 1994-10-12 23:28:43 +00:00
David J. MacKenzie 340ff9deae Eliminate some -Wall warnings. 1994-10-12 20:21:51 +00:00
David J. MacKenzie e2f9d9afab Make functions that return nothing void, not implicitly int.
(main): Improve usage message.
(error): Write to stderr, not stdout.
1994-10-12 19:20:24 +00:00
Richard M. Stallman 424b6d2bf8 (libexecdir): Renamed from libdir. 1994-10-11 21:38:59 +00:00
Richard M. Stallman 1e8259bb0b (clean): rm DOC/* and *.tab.[ch].
(distclean): Not here.
1994-10-11 21:22:28 +00:00
Francesco Potortì 7e5c230dc5 * etags.c (C_entries): Name the #define's that are macros. 1994-10-11 13:04:30 +00:00
Roland McGrath 86af296ba1 [! SYSVIPC] (main): Fix uses of FD_* macros: fd_set arg is a pointer,
descriptor arg comes first.
1994-10-10 04:55:59 +00:00
Francesco Potortì ee70dba589 * etags.c (C_entries): Recognise typedef of ANSI style functions.
(C_entries): Recognise #define inside a struct.
	(C_entries): ANSI tells that preprocessor commands do not have to
	start on the first column.
	(print_help): Documentation corrected for -d and -D.
	(white, endtk): ANSI tells the vertical tab is a separator.
1994-09-30 17:18:24 +00:00
Richard M. Stallman 9c0f2dac9b Initial revision 1994-09-27 19:49:25 +00:00
Richard M. Stallman 2e82e3c30a Improve POP code, move most of it into a separate file.
(mbx_delimit_end, mbx_delimit_begin): Check for errors.
(mbx_write): Check for errors and for From line.
(pop_retr, popmail): Use subroutines in pop.c to do the real work.
(get_errmsg, multiline, getline, putline, pop_stat, pop_command)
(pop_init): Functions deleted.
1994-09-27 19:45:00 +00:00
Richard M. Stallman 81f940520e (MOVE_FLAGS, MOVE_LIBS): New variables.
(pop.o, movemail.o): New targets.
(movemail): Link in pop.o and movemail.o.  Use MOVE_LIBS, MOVE_FLAGS.
1994-09-27 19:43:07 +00:00
Richard M. Stallman cc162c5306 (touchy_mkdir): Make dir ugo+re even if it isn't new.
Rename path to dirname.
1994-09-24 01:48:04 +00:00
Richard M. Stallman 5aae660113 (UTILITIES): Remove test-distrib, make-docfile, make-path.
(DONT_INSTALL): New variable--list those files here.
(clean): Delete the files in DONT_INSTALL.
1994-09-23 05:42:40 +00:00
Richard M. Stallman 128ba46c13 (from, labels, data): Use MAX_DATA_LEN as length.
(main): Use fgets, not gets.
1994-09-21 03:23:32 +00:00
Richard M. Stallman 5afc7fb0ba Don't declare malloc. 1994-09-17 05:50:17 +00:00
Karl Heuer b38bab94e5 (FD_*) [HAVE_SOCKETS & !HAVE_SYSVIPC]: If not already defined, use simple
32-bit versions of these macros.
(main) [HAVE_SOCKETS & !HAVE_SYSVIPC]: Use these macros.
1994-09-17 00:02:50 +00:00
Karl Heuer 5e9c82960a (etags_getcwd): Use getcwd if available. 1994-09-16 21:16:20 +00:00
Paul Eggert 7a833f0baf Add support for CVS.
Work with `rlog's that output ISO 8601 dates.
1994-08-15 22:44:10 +00:00
Richard M. Stallman 9fa6ed8fd4 Use <> to delimit email address. 1994-08-09 20:43:48 +00:00
Richard M. Stallman 2f3179987f [SYSV_IPC] (main): Make a separate process
so we can listen for multiple requests.
1994-08-08 07:08:17 +00:00
Richard M. Stallman 3b9ee81953 Include config.h first thing. 1994-08-04 23:15:35 +00:00
Richard M. Stallman ae24c599eb (main): Add casts to avoid warnings. 1994-08-01 07:43:30 +00:00
Richard M. Stallman ad600343fb (${archlibdir}): Compare the proper dir
before installing the scripts.
1994-07-29 20:33:17 +00:00
Richard M. Stallman defb80d7ad (main): New local var progname saves argv[0]. 1994-07-27 17:59:03 +00:00
Richard M. Stallman cd33a5a086 (main): Don't actually modify argv[0]. Modify a copy instead. 1994-07-26 19:56:03 +00:00
Richard M. Stallman 89b3f89419 Add #undef alloca. 1994-07-25 23:26:23 +00:00
Richard M. Stallman 72ddb82c49 (reset_watch, get_time): Use EMACS_GET_TIME.
(tzp): Var deleted.
1994-07-25 23:21:24 +00:00
Richard M. Stallman 20e15dfd12 (xmalloc): New function. 1994-07-13 19:10:27 +00:00
Richard M. Stallman 20cda85bbe (ALLOCA_CFLAGS): New variable.
(alloca.o): New target.
1994-07-12 01:18:53 +00:00
Francesco Potortì 0c1fd2e389 * etags.c (main): Don't barf on obsolete -t and -T switches.
(main): Print an explicative message when a switch is not known.
	(takeprec): recognise the `character*(*) function' syntax.
1994-07-08 10:31:16 +00:00
Richard M. Stallman 3dc64903b8 Don't declare exit or perror. 1994-06-23 19:27:56 +00:00
Richard M. Stallman f662f9b05b (main): Don't declare geteuid.
Don't declare getenv if convex.
1994-06-23 19:26:02 +00:00
Richard M. Stallman 35ebc5cf90 (rootrelativepath) [MSDOS]: Define, expanding to dynamic
location of data directory.
1994-06-07 15:19:33 +00:00
Richard M. Stallman c88a7f88e3 (test-distrib): Use ALL_CFLAGS. 1994-06-07 07:30:58 +00:00
Francesco Potortì e9b2b94cd6 * etags.c (absolute_filename): Remove infinite loop bug when
accessing files in directories whose name begins with a dot.
1994-06-03 17:10:42 +00:00
Francesco Potortì ddebf5f606 * etags.c (etags_getcwd): Delete the trailing newline from cwd. 1994-06-03 11:30:57 +00:00
Richard M. Stallman 348c8c1b75 (distclean): Delete Makefile, Makefile.in, blessmail. 1994-05-28 04:55:23 +00:00
Richard M. Stallman f675ecb5d2 (blessmail): Don't depend on ../src/emacs. 1994-05-27 07:19:06 +00:00
Richard M. Stallman 4607ea99ad (write_c_args): Put `default' in upper case. 1994-05-19 21:05:08 +00:00
Richard M. Stallman 9fab67cb3e (etags_getcwd): Cast result of popen.
(popen): Declaration deleted.
1994-05-18 01:16:16 +00:00
Karl Heuer f1812d0ae6 [!MSDOS]: Declare popen. 1994-05-17 23:43:15 +00:00
Richard M. Stallman d410d33931 (main): Avoid crash if argc is 1. 1994-05-17 19:12:55 +00:00
Richard M. Stallman 2b243866ab (blessmail): Specify directory for blessmail.el. 1994-05-16 22:02:48 +00:00
Richard M. Stallman fed76e7839 (maybe-blessmail): Mention bless-mail is in lib-src. 1994-05-12 10:52:49 +00:00
David J. MacKenzie 1858a20639 Fix out of date comment. 1994-05-05 19:06:48 +00:00
Richard M. Stallman eb4252f765 Put in a separator for where to start cpp procssing.
Move all autoconf substitutions above that point.
Above that point, use Make-style comments.
This goes with changes in ../configure.in.
1994-05-05 04:11:17 +00:00
Richard M. Stallman d19f95fe16 (maybe-blessmail): New target to print the blessmail warning message.
(${archlibdir}): Don't do it here.  Don't depend on blessmail.
1994-05-04 05:15:00 +00:00
Karl Heuer 3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Karl Heuer d38bb695cc (${archlibdir}): Be lenient about wc output format. 1994-05-02 20:56:25 +00:00
Richard M. Stallman cf770692be (${archlibdir}): Don't run blessmail; instead
print advice to run it, if it has anything significant to do.
And only if MOVEMAIL_NEEDS_BLESSING.
(blessmail): Use emacs, not temacs.
(configuration): Renamed from configname.
1994-05-01 06:43:34 +00:00
Richard M. Stallman 024a380b5d (find_entries): Treat `*.cpp' as C++ files. 1994-04-30 20:30:48 +00:00
Richard M. Stallman 88f125fc73 [MSDOS]: #include <sys/param.h> for the following.
[MSDOS] (etags_getcwd): Define simple MSDOS version without spawning a shell.
1994-04-30 19:34:26 +00:00
Richard M. Stallman d1a880cd30 [MSDOS]: Don't define proto type for exit. 1994-04-29 19:35:46 +00:00
Richard M. Stallman 1e7e7d6eca Don't include string.h or strings.h. 1994-04-28 04:44:54 +00:00
Karl Heuer 82a635f377 C_SWITCH_SYSTEM and C_SWITCH_MACHINE are now cpp symbols, not make variables. 1994-04-27 20:20:31 +00:00
Richard M. Stallman 9076a6fce1 (etags, ctags): Make VERSION a string constant. 1994-04-23 07:19:07 +00:00
Richard M. Stallman cc58274337 (print_version): Print VERSION as a string. 1994-04-23 07:08:49 +00:00
Richard M. Stallman f3309b68f7 (readline): Fix updating of p when buffer grows. 1994-04-20 20:04:20 +00:00
Karl Heuer c6207d0d29 (blessmail): New target.
${archlibdir}: Use blessmail when installing movemail.
1994-04-20 05:32:33 +00:00
Richard M. Stallman 1ddb69784b (readline): When extending the buffer,
calculate end afresh using the new size.
1994-04-19 00:17:46 +00:00
Francesco Potortì 3ad2882cd3 * etags.c (main, print_help): eliminate the -F option. 1994-04-18 17:07:19 +00:00
Francesco Potortì 1875d99443 * etags.c (absolute_filename): compare against '\0' instead of NULL. 1994-04-18 10:54:42 +00:00
Richard M. Stallman 29ed054212 Renamed from Makefile.in.
Makefile.in is now generated from it, and then preprocessed.
Change comments to C syntax.
Include config.h.
(LIBS_SYSTEM, LIBS_MACHINE): Define as empty if not defined.
(LOADLIBES): Define from LIBS_SYSTEM and LIBS_MACHINE.
1994-04-16 04:46:43 +00:00
Richard M. Stallman c01fd07719 (gettimeofday): If system doesn't have this, define it to give a fatal error. 1994-04-14 12:01:31 +00:00
Richard M. Stallman 29beb080a9 [HAVE_UNISTD_H]: Include unistd.h. 1994-04-13 22:23:24 +00:00
Richard M. Stallman 1ddff51c65 #undef static.
(etags_getcwd): Initialize bufsize.
1994-04-12 15:21:25 +00:00
Karl Heuer d5216c2003 (main): Use setuid, not seteuid. 1994-04-12 01:28:10 +00:00
Francesco Potortì 6dd5561c8a * etags.c (outf, outfiledir): renamed to tagf, tagfiledir.
(PF_funcs, Asm_funcs, L_funcs, PAS_funcs, TEX_funcs,
	Scheme_funcs, prolog_funcs): renamed to Fortran_functions,
	Asm_labels, Lisp_functions, Pascal_functions, Scheme_functions,
	TeX_functions, Prolog_functions.
	(inf): no more a global variable.
	(C_entries): take 2nd parameter `inf' instead of using the global one.
	(find_entries): added the cp1 var for optimisation.
	(find_entries): added more suffixes for assembler files.
	(Asm_funcs): Now finds labels even without an ending colon.
1994-04-08 14:36:25 +00:00
Richard M. Stallman 63cf923df4 (main): Fix up MAIL_USE_MMDF conditional where
the indesc open was moved inside a fork.
Handle MAIL_USE_LOCKF.
(MAIL_USE_SYSTEM_LOCK): New conditional macro.
Define it if either MAIL_USE_FLOCK or MAIL_USE_LOCKF.
1994-04-05 23:04:36 +00:00
Francesco Potortì b02c5fea90 * etags.c (main): use etags_getcwd for compatibility.
(etags_getcwd): new function.
1994-03-30 12:04:41 +00:00
Richard M. Stallman 6f5e9c436c (etags, ctags): Pass -D for VERSION. 1994-03-25 18:34:05 +00:00
Francesco Potortì 32daa21619 * etags.c (emacs_tags_format, ETAGS): removed. Use CTAGS instead.
(main): don't allow the use of -t and -T in etags mode.
	(print_help): don't show options enabled by default.
	(print_version): show the emacs version number if VERSION is #defined.
	(find_entries): add "ss" as suffix for Chez Scheme.
1994-03-25 14:31:24 +00:00
Francesco Potortì 46c145db6c * etags.c (cwd, outfiledir): vars added.
(relative_filename, absolute_filename, absolute_dirname):
	functions added to compute filenames in tags files.
	(process_file): filenames in tags file are relative to the
	directory where the tags file is (useful with the -o option).
	(main): initialise the outfiledir var.
	(TYPEDST): added the `tignore' value.
	(C_entries): corrected various small bugs.
1994-03-23 18:27:19 +00:00
Richard M. Stallman 62039e5ab3 (UTILITIES): `env' deleted.
(env): Target deleted.
1994-03-20 02:05:29 +00:00
Richard M. Stallman 4ef7b41316 (install, ${archlibdir}): Switch back to .. before running INSTALL_PROGRAM. 1994-03-14 22:10:04 +00:00
Richard M. Stallman e3515d10e7 Clean up indentation and whitespace. 1994-03-05 21:53:42 +00:00
Richard M. Stallman 902a54b2c7 (main): Change delimiter from "^L" to "^_^L".
Allow for text following "BABYL OPTIONS:".
Add --help option.  Use argv[0] in error messages.
1994-03-05 21:49:26 +00:00
Richard M. Stallman 1518a9eb45 (main) [HAVE_SYSVIPC]: Make msgp->mtext longer if necessary.
On HPUX, error if it's more than 512 chars.
1994-03-05 21:42:57 +00:00
Karl Heuer 88d00c7e26 (main): Change delimiter from "^L" to "^_^L".
Allow for text following "BABYL OPTIONS:".
Add --help option.  Use argv[0] in error messages.
1994-03-03 18:11:32 +00:00
David J. MacKenzie aceb65a6b9 Use GPL. 1994-02-27 03:53:03 +00:00
David J. MacKenzie 3b48c1f4b7 *** empty log message *** 1994-02-27 03:51:02 +00:00
David J. MacKenzie 91264a4aa5 Use GPL. 1994-02-27 03:49:57 +00:00
David J. MacKenzie 2b24132f97 Initial revision 1994-02-27 03:45:52 +00:00
David J. MacKenzie 530715fea1 Update GPL. 1994-02-27 03:39:25 +00:00
David J. MacKenzie 566c662e1c * make-path.c (main): Return 1 on error, not -1. Update GPL. 1994-02-27 03:38:56 +00:00
David J. MacKenzie 0034580904 * cvtmail.c: Declare malloc, realloc, xmalloc, xrealloc.
(xmalloc, xrealloc): Return char *, not int.
	(error): Write to stderr, not stdout.
1994-02-27 03:35:26 +00:00
Karl Heuer 1c1fce3feb (main, get_time): Don't crash on invalid input. 1994-02-23 17:43:05 +00:00
Karl Heuer bae98299b4 (get_time): Simplify; avoid calling index.
(main): exit on EOF.
1994-02-22 19:22:11 +00:00
Francesco Potortì 14c90d01c5 * etags.c (--absolute-pathnames): this option removed. 1994-02-17 18:01:38 +00:00
Richard M. Stallman fbffe7d987 (put_line): Don't break the line if it all fits. 1994-02-16 20:53:00 +00:00
Francesco Potortì 1a0d8c8069 * etags.c (absolute_pathnames, cwd): added global vars.
(longopts, print_help, main, process_file): put absolute filenames
	in the tag file if the -A --absolute-pathnames option is used.
	(print_help): alfabetically order the options.
	(malloc, realloc, strcpy, strncpy, strcmp): remove extern declar.
1994-02-14 14:28:22 +00:00
Richard M. Stallman 07ff9ea94b (C_SWITCH_MACHINE): Get this from autoconf.
(ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use C_SWITCH_MACHINE.
1994-02-09 09:13:05 +00:00
Richard M. Stallman 9e3891de7c (main) [HAVE_SYSVIPC]: Reverse test of fork value. 1994-02-08 23:57:30 +00:00
Richard M. Stallman f9356baa5d Initial revision 1994-02-07 01:05:54 +00:00
Richard M. Stallman 379fb9c8bb (profile): New target.
(UTILITIES): Mention profile.
1994-02-05 04:58:38 +00:00
Richard M. Stallman f8998fa90c Include errno.h; don't include fasync.h.
(schedule): Don't return a value.
(sigcatch): Reestablish the handler first.
(getevent): Always call notify at the end.
(notify): Defer alarms around the whole body of function.

(main): Don't request SIGIO, and don't handle it.
Loop calling getevent.
(sigcatch): Delete code to handle SIGIO.
If defer_alarms is set, don't call notify, just set alarm_deferred.
(getevent): Use read, not getchar.  Handle EINTR and EAGAIN.
Set defer_alarms around realloc and schedule.
If alarm_deferred gets set, call notify.
Likewise if this event is the only pending event.
Make buf and buf_size global variables.
Don't malloc buf if it is already non-zero.
(schedule): Just exit if run out of memory.
Return the number of events.
(signal) [_CX_UX]: Add #undef.
1994-01-19 15:12:34 +00:00
Roland McGrath 069ad9ead4 Make the argument list output look more like the Lisp docstrings do.
(write_c_args): Take new arg FUNC.  Make output look like lisp call
prototypes: (function ARG1 ARG2), upcasing arg names.
(scan_c_file): Pass BUF to write_c_args for FUNC arg.
1994-01-16 08:35:01 +00:00
Francesco Potortì 42680d3c7c * etags.c (stab_entry, stab_create, stab_find, stab_search,
stab_type, add_keyword, C_reate_stab, C_create_stabs): deleted.
	Use gperf generated hash table instead of linked list.
	(C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): added.
	Mostly code generated by gperf.
	(consider_token): removed unused parameter `lp'.
	(PF_funcs, getit): allow subroutine and similar declarations
	to span multiple lines.
	(C_entries): check for newline if inchar to avoid bus errors.
	(process_file, find_entries): distinguish among nonexistent
	and not regular file.
1994-01-14 17:02:11 +00:00
Richard M. Stallman 817b371ce0 [USG] (SIGIO): Define as SIGPOLL.
(main) [USG]: Do ioctl to enable SIGPOLL.
1994-01-12 04:48:56 +00:00
Roland McGrath e5f7ea6858 [! HAVE_STRERROR] (strerror): Define the function. 1994-01-09 01:00:04 +00:00
Roland McGrath 03c71d897f Declare strerror. 1994-01-08 22:28:39 +00:00
Roland McGrath 2771160004 [! HAVE_STRERROR] (strerror): Define the function. 1994-01-08 22:27:30 +00:00
Roland McGrath dbc52c10f4 Don't declare sys_errlist; declare strerror instead.
(schedule, main): Call strerror instead of using sys_errlist.
1994-01-08 21:52:28 +00:00
Roland McGrath 3935665143 (get_errmsg, pfatal_with_name, pfatal_and_delete): Call strerror instead of
using sys_errlist.
1994-01-08 21:50:14 +00:00
Roland McGrath be06db9a3e (main): Call strerror instead of using sys_errlist. 1994-01-08 21:47:36 +00:00
Roland McGrath 92af894ffd Don't declare sys_errlist; declare strerror instead.
(main): Call strerror instead of using sys_errlist.
1994-01-08 21:43:57 +00:00
Richard M. Stallman e3938952c8 [MSDOS]: Use text/binary mode as appropriate.
(scan_c_file, scan_lisp_file): Extra parameter for the mode to open with.
1994-01-06 03:59:30 +00:00
Richard M. Stallman c6880c90ff (main) [MSDOS]: Open all files as binary. 1994-01-06 03:58:35 +00:00
Richard M. Stallman 26528bbc92 (main) [MSDOS]: Dummy stub just to make the file compile. 1994-01-06 03:57:48 +00:00
Richard M. Stallman 91cf09ac12 (malloc): Don't declare it.
(xmalloc): Cast result of malloc.
(strcpy): Don't declare it.

[MSDOS]: #undef `access'.
1994-01-06 03:57:28 +00:00
Richard M. Stallman 2033356144 Fix up whitespace. Get rid of spurious casts to void.
[MSDOS]: Use binary file modes for non-text side of pipe.
(main): Use fclose to close file opened by fopen.
1994-01-06 03:56:59 +00:00
Richard M. Stallman 8ca83cfd88 Include syswait.h.
Fork a subprocess and use it to copy the mail file.
1994-01-04 06:46:12 +00:00
Richard M. Stallman 3e883207fd (ALL_CFLAGS): Include LDFLAGS.
Use ALL_CFLAGS in all the rules that compile and link with one cmd.
(LINK_CFLAGS): New variable.
(timer): Use LINK_CFLAGS.
1994-01-02 18:41:29 +00:00
Richard M. Stallman 80fce26856 (${archlibdir}, install): Use $(INSTALL_PROGRAM)
for all executables and scripts.
1993-12-24 02:18:42 +00:00
Richard M. Stallman 3f628ebde4 (main): When making tempname, cast result of xmalloc.
Include room for EXXXXXX in the size.
Don't use result of strcpy.
1993-12-24 02:17:52 +00:00
Richard M. Stallman 7694a0c4c2 (scan_lisp_file): Don't add newline at end of string. 1993-12-24 02:16:49 +00:00
Paul Eggert 0fd6b1770a Add --brief option. 1993-12-03 09:29:18 +00:00
Richard M. Stallman a17d2c253b (mostlyclean): Make it distinct from clean. 1993-11-26 11:08:58 +00:00
Richard M. Stallman 3c8393fdba (${archlibdir}): Don't do chown or chgrp. 1993-11-24 12:25:49 +00:00
Richard M. Stallman 96e19e26f5 (install): Don't change mode or group when installing. 1993-11-16 09:22:47 +00:00
Richard M. Stallman 46e4cb7685 (FUNCST, TYPEDST, STRUCTST, DEFINEST): Delete excess commas. 1993-11-16 08:24:30 +00:00
Richard M. Stallman d48e616eff (read_c_string): For "", concatenate the two strings. 1993-11-12 21:12:35 +00:00
Richard M. Stallman 85ada1b986 (main): Fix error message text. 1993-11-12 06:25:16 +00:00
Francesco Potortì b12756c81e Mon Nov 8 19:56:20 MET 1993 Tom Hageman (tom@basil.icce.rug.nl)
* etags.c: (C_entries): Keep track of ()-parenthesis level so that
	functions returning a pointer to a function, a la `signal', can be
	parsed.  This also required new state `fstartlist' to `FUNCST'.
	(SAVE_TOKEN, RESTORE_TOKEN, TOKEN_SAVED_P): 1-deep token save stack.
	(C_entries, CNL): use it to isolate preprocessor directive processing
	from the other state engines.
	(begtk): add '~', for C++ class destructors.
1993-11-08 18:52:56 +00:00
Francesco Potortì bff8edcc17 Tue Nov 2 19:46:52 1993 Francesco Potorti` (pot@cnuce.cnr.it)
* etags.c (consider_token): removed unused variable firsttok.
	(prolog_getit): call pfnote with the right number of arguments.
1993-11-02 18:55:40 +00:00
Francesco Potortì 0aaf5c4ab9 Declares itself as "etags for emacs 19" instead of "etags for emacs 19.0".
This revision has no ChangeLog entry.
1993-11-02 18:37:02 +00:00
Paul Eggert 1f19b52b5a (printlogline): Don't generate lines containing only white space. 1993-10-19 02:50:31 +00:00
Roland McGrath 8ff3d70355 (${archlibdir}): Install ${SCRIPTS} from ${srcdir}, not cwd. 1993-10-04 04:31:33 +00:00
Roland McGrath 63be7fb7d0 Fixed typos or brainos of whoever though `@' was the comment char. 1993-10-03 19:54:21 +00:00
Francesco Potortì 2b878b4c6b * etags.c (process_file): dead code removed.
(S_ISREG): #define it using S_IFREG if not defined.
	(process_file): regular files have nothing to do with symlinks.
1993-10-01 09:51:07 +00:00
Brian Fox 544d556f9e (${archlibdir}): Install ${SCRIPTS} from ${srcdir}, not from current
directory.  Only chmod and chgrp files that we installed, which
excludes ${INSTALLABLE_SCRIPTS}.  They go in ${bindir}.
(INSTALLFLAGS): Deleted definition, since it is an unused variable now.
1993-09-30 23:25:30 +00:00
Brian Fox b93f24930d (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Let configure figure out the
correct values for these variables.
(archlibdir): Only install execuatables internally used by emacs;
don't install bindir binaries here.
1993-09-28 10:04:53 +00:00
Paul Eggert 31ce77fa0a Add -h, -n, -r options.
By default, look for *,v files as well as RCS/*,v files.
Use $TMPDIR (default /tmp) instead of /tmp.
1993-09-24 01:03:32 +00:00
Francesco Potortì fe0b3356d9 Mon Sep 20 18:06:12 1993 Francesco Potorti` (pot at fly)
* etags.c (C_entries): is_func is initialised here instead of in
	consider_token for the sake of the yacc rules section.
	(C_entries): Now class, struct, enum, union and typedef produce
	named tags.
1993-09-20 16:08:50 +00:00
Roland McGrath 21af68b674 Include <src/paths.h>, instead "src/paths.h". 1993-09-12 01:35:44 +00:00
Roland McGrath 18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Roland McGrath eab5f4fd96 (b2m, movemail, fakemail, env, emacsserver, emacsclient, getdate.o,
timer.o, timer): Remove `-I${srcdir}/../src', since it is already in
CPP_FLAGS.
1993-09-10 05:40:51 +00:00
Roland McGrath b2d7a9c720 (ALL_CFLAGS, CPP_CFLAGS): Put -I. -I../src before -I${srcdir}
-I${srcdir}/../src.
1993-09-10 04:47:05 +00:00
Francesco Potortì 31d4b31480 * etags.c (L_isdef, L_isquote, L_getit): small optimisations.
(L_funcs): the (foo::defmumble stuff now should work.
	(consider_token): function returned random value--corrected.
	(C_entries): corrected == versus = typo.
	* etags.c (FINCST): added the fignore status. Means we are
	after the parameter list and before the open curly brace.
	Allows correct parsing of C++ constructors.
	(C_entries, consider_token): make use of fignore.
	(consider_token): reset funcdef when next_token_is_func: when in
	ctags mode makes DEFVAR and others work better.
	(L_isquote): function that recognises the "(quote" string.
	(L_getit): ignore quoting via "'" or "(quote".  Useful for defalias.
1993-09-06 11:39:39 +00:00
Paul Eggert 85acbe0ab8 Change /{/ to /\{/ for Posix compatibility; otherwise, HP awk complains. 1993-08-25 19:33:07 +00:00
Paul Eggert cbf35b9407 Append /usr/ccs/bin and /usr/sccs to PATH. 1993-08-25 08:18:56 +00:00
Richard M. Stallman a069743544 (make-path): Dep on config.h. 1993-08-12 22:23:59 +00:00
Richard M. Stallman cbc61077f3 (TRUE, FALSE): Don't define if already defined. 1993-08-11 20:55:04 +00:00
Paul Eggert 194bf419bb (awkscript): Some sites put comma-separated junk after the fullname.
Remove it, but leave "Bill Gates, Jr" alone.
Remove the junk from fullnames like "0000-Admin(0000)".
1993-08-09 22:06:00 +00:00
Roland McGrath cc6d6e586d (put_entries): For NODE->rewritten, put pattern before \177 and name after,
not vice versa.
1993-08-01 22:13:54 +00:00
Richard M. Stallman 4d09905307 (main): Generate a SIGIO as soon as we've initialized. 1993-08-01 07:45:35 +00:00
Paul Eggert 3b31174ce5 Don't check whether file is readable until we have decided not to ignore it. 1993-07-29 19:56:38 +00:00
Richard M. Stallman 755f5c8707 (etags): Depend on ../src/config.h. 1993-07-21 03:29:43 +00:00
Richard M. Stallman 908d6b8719 Include types.h before file.h. 1993-07-20 05:16:51 +00:00
Richard M. Stallman 103d21491f (install): Use .n, not .new, for temporary filenames. 1993-07-19 19:11:09 +00:00
Jim Blandy af40bbfa99 * wakeup.c: Use CPP tangle from autoconf manual to #include the
correct combination of <time.h> and <sys/time.h>.
1993-07-18 06:13:07 +00:00
Jim Blandy 52cc7c59b5 * etags.c (print_help): Break up the very long strings containing
the help message into shorter strings, to placate chintzy C
	compilers which can't handle strings that long.
1993-07-18 06:12:49 +00:00
Jim Blandy 72a339d7e3 * etags.c (alloca): removed all references to it.
(main): now calls xnew instead of alloca for portability.
	(../src/config.h): included only if HAVE_CONFIG_H.
	(const): void definition removed--config.h takes care of it.
1993-07-09 19:44:58 +00:00
Richard M. Stallman 591fa824dd (consider_token): was ==', now is ='.
(consider_token): DEFUNs now treated like funcs in ctags mode.

(LEVEL_OK_FOR_FUNCDEF): removed.
(C_entries): optimized the test that used LEVEL_OK_FOR_FUNCDEF.
(C_entries): removed a piece of useless code.
(C_entries): making typedef tags is delayed until a semicolon
is met.  This handles "typedef int X, Y, Z;" correctly.
1993-07-09 18:56:47 +00:00
Jim Blandy 312752df3f * b2m.c: #include <sys/types.h>.
(ltoday): Declare this to be time_t.
1993-07-06 16:07:30 +00:00
Paul Eggert 1294647644 Add -q option. 1993-06-30 18:54:08 +00:00
Jim Blandy 918f9ad18d * etags.c: #include "config.h" and the alloca CPP tangle before
#including the system headers and getopt.h.  AIX requires the
	#pragma to come before any actual C code.
1993-06-29 22:58:40 +00:00
Jim Blandy 4348b379b1 * Makefile.in (ctags): Depend on etags, so that parallel makes
don't write etags.o files on top of each other.
1993-06-22 03:58:05 +00:00
Richard M. Stallman 8f53e1ee6e (add_node): Move var last_node to file scope. 1993-06-19 20:35:26 +00:00
Jim Blandy 0268f19b00 * Makefile.in: Remember, spaces are not tabs. 1993-06-17 02:59:21 +00:00
Jim Blandy 39b649dd44 Bring mumbleclean targets into conformance with GNU coding standards.
* Makefile.in (distclean): Call clean to do most of the work.
	Delete aixcc.c and TAGS.
	(realclean): Just call distclean.
1993-06-16 23:49:07 +00:00
Richard M. Stallman 5293b43278 (CPP_CFLAGS): New variable.
Use it instead of ALL_CFLAGS when compiling a .c file.
(getopt.o, getopt1.o): Add explicit compilation commands.
1993-06-13 18:14:04 +00:00
Richard M. Stallman 3ed7931961 Reinstate old -f option as an alias for -o for installed base uses. 1993-06-11 18:32:55 +00:00
Jim Blandy 4e23f2ba8b * emacsserver.c (main): When we're passing a `struct sockaddr_un'
to bind or accept, cast the pointer, to avoid warnings on systems
	which declare prototypes for this.
	* emacsclient.c (main): Same.
1993-06-09 12:45:26 +00:00
Jim Blandy 2fdfe0796e * emacsserver.c (main): When we're passing a `struct sockaddr_un'
to bind or accept, cast the pointer, to avoid warnings on systems
	which declare prototypes for this.
1993-06-09 12:41:31 +00:00
Jim Blandy eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Jim Blandy 4b5a51c1fe * configure.in: Test for bison.
* Makefile.in (YACC): New variable.
	(lib-src/Makefile.in): Edit YACC into the makefile.

	* Makefile.in (YACC): New variable, to be set by top-level Makefile.
1993-06-09 04:06:57 +00:00
Jim Blandy 11e5be7d85 * wakeup.c: Include sys/types.h, too; I think that's where time_t
comes from, not sys/time.h.
1993-06-08 07:15:01 +00:00
Richard M. Stallman 8e9b75edd9 #undef static. 1993-06-08 06:20:56 +00:00
Richard M. Stallman 2198e8fe65 Include sys/time.h. 1993-06-03 03:28:21 +00:00
Richard M. Stallman 4eda59a90d (all): Exclude INSTALLABLE_SCRIPTS and SCRIPTS from deps. 1993-06-02 06:52:09 +00:00
Richard M. Stallman 5ed8e09c1d #undef signal. 1993-06-01 08:08:38 +00:00
Richard M. Stallman 2c02935314 [LINUX]: #undef signal. 1993-06-01 08:08:11 +00:00
Richard M. Stallman 1da14ffda1 (main): Make when a time_t. 1993-05-31 01:39:40 +00:00
Jim Blandy f7d3e7d055 * Makefile.in: (${archlibdir}): Use (cd foo && pwd) instead of
`(cd foo ; pwd)` to get the canonical name of a directory; cd
	might fail, and have pwd print out the current directory.
1993-05-30 19:40:39 +00:00
Jim Blandy 12a0565a22 * movemail.c [MAIL_USE_POP] (main): Don't use non-portable
string-handling functions.
1993-05-30 19:26:11 +00:00
Richard M. Stallman 148d61aa7f When given no file arguments, inspect RCS/.* as well
as RCS/*.  Don't report an error if RCS is empty or nonexistent.
1993-05-29 06:22:48 +00:00
Richard M. Stallman a210860236 (timer): Link with $(LOADLIBES). 1993-05-29 05:00:58 +00:00
Richard M. Stallman c1380f31bf (put_line): Don't output \n\t unless more text follows. 1993-05-28 21:22:17 +00:00
Jim Blandy 5c851ea7d3 * etags.c: Replace the CPP tangle for alloca with the one from the
autoconf documentation, since that's working elsewhere.
1993-05-28 08:28:20 +00:00
Jim Blandy 4fa84f6b74 * Makefile.in (ALL_CFLAGS): Add "-I.", so the system and machine
description files can find their ancestors.
1993-05-28 03:33:15 +00:00
Richard M. Stallman c93341d541 (ALL_CFLAGS): Add -I../src 1993-05-28 01:19:17 +00:00
Richard M. Stallman b70cff717b (install): Get the scripts from ${srcdir}, unlike the executables. 1993-05-28 00:55:10 +00:00
Jim Blandy b90589d8fd * Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
(getopt.o, getopt1.c): Use ${srcdir} as appropriate.
1993-05-27 02:54:03 +00:00
Jim Blandy 5e231e7058 * Makefile.in (install): Do install the programs listed in
INSTALLABLE_SCRIPTS.  Make the renaming loop use INSTALLABLES and
	INSTALLABLE_SCRIPTS, instead of writing the programs out.
1993-05-27 02:46:57 +00:00
Richard M. Stallman b827c6c13d Include ../src/config.h. 1993-05-25 21:03:28 +00:00
Richard M. Stallman 3d3bd05268 (install): Don't handle INSTALLABLE_SCRIPTS
in first loop.  Delete files from bindir before installing new ones.
(ALL_CFLAGS): Use ${srcdir} to find .../src dir.
1993-05-25 20:11:39 +00:00
Jim Blandy a706b8084a * make-docfile.c: Doc fix. 1993-05-24 18:05:21 +00:00
Jim Blandy 1e3255d849 * Makefile.in (timer.o, sorted-doc.c): Link with alloca.o, if it's
appropriate.
1993-05-24 15:59:44 +00:00
Jim Blandy 9ff5de0791 * timer.c (xmalloc): Include definition for this, to placate the C
version of alloca.
	* Makefile.in (timer.o): Link with alloca.o, if it's appropriate.
1993-05-24 15:39:31 +00:00
Jim Blandy 261518d9ce * Makefile.in (install): Refer to the variables INSTALLABLES and
INSTALLABLE_SCRIPTS, instead of writing them out.
1993-05-24 05:54:23 +00:00
Richard M. Stallman ef7054f542 (main): Return 0. 1993-05-23 18:52:53 +00:00
Richard M. Stallman 2d6e26196e (scan_lisp_file): Recognize defalias like fset. 1993-05-22 22:07:57 +00:00
Richard M. Stallman ea6cd314ce Change permission notice (not "part of Emacs"). 1993-05-21 04:12:28 +00:00
Richard M. Stallman 46b16ef098 Update GPL version. 1993-05-19 21:19:08 +00:00
Jim Blandy 51facdef2e * Makefile.in (.c.o): Make the rule start with a tab, not spaces. 1993-05-18 20:35:35 +00:00
Jim Blandy 9b5283804a * timer.c (notify): Don't call sighold or sigrelse; they're USG
only.  We should really fix this later, but let's just make it
	compile for now.
1993-05-16 00:53:57 +00:00
Jim Blandy d2d92f7a66 Install patches from David J. Mackenzie to make the srcdir option
work.
	* Makefile.in (srcdir, VPATH): Get this value from the top-level
	Makefile.
	(INSTALLABLES): Split this into two lists - INSTALLABLES and
	INSTALLABLE_SCRIPTS.
	(INSTALLABLE_SCRIPTS): New list.
	(EXECUTABLES): Include INSTALLABLE_SCRIPTS.
	(${archlibdir}): The scripts to be installed live in the source
	tree, not in the object tree.
	(test-distrib): Note that the data file lives in the source tree,
	not the object tree.
	(GETOPTDEPS): Note that getopt.h lives in the source tree.
	(all other targets): Change references to source files to use
	${srcdir}, except for config.h, which lives in the object dir.
	(timer.o): Note that this depends on ../src/config.h.
	* make-docfile.c (main): Add a -d option, to tell it where to find
	the source files.
	* test-distrib.c (main): Take the name of the distribution file to
	test from the command line.
1993-05-15 23:06:16 +00:00
Jim Blandy ad2e78fb7c * timer.c: Fix mispellings of get_date function's name. 1993-05-15 23:05:46 +00:00
Jim Blandy c38a040d4a The GNU coding standards specify that CFLAGS should be left for
users to set.
	* Makefile.in (CFLAGS): Put this in the "things configure might
	edit" section, and have it default to -g.
	(ALL_CFLAGS): New variable, set to all the flags which should be
	passed to compilations.  Replace all other uses of CFLAGS with
	ALL_CFLAGS.
	(.c.o): New rule, to pass ALL_CFLAGS to compilations.

	* Makefile.in (DEFS): Remove this; it's always just going to be
	"-DHAVE_CONFIG_H -Demacs".

	* Makefile.in (ALLOCA): New variable, whose value we should
	inherit from the top-level makefile.
	(etags, ctags): Include ALLOCA in the list of object files that
	these executables depend on and link.
1993-05-15 22:25:51 +00:00
Jim Blandy 0d73e8e39c Install patches from David J. Mackenzie to make the srcdir option
work.
	* Makefile.in (srcdir): Get this value from the top-level
	Makefile.
	(INSTALLABLES): Split this into two lists - INSTALLABLES and
	INSTALLABLE_SCRIPTS.
	(INSTALLABLE_SCRIPTS): New list.
	(EXECUTABLES): Include INSTALLABLE_SCRIPTS.
	(${archlibdir}): The scripts to be installed live in the source
	tree, not in the object tree.
	(test-distrib): Note that the data file lives in the source tree,
	not the object tree.
	(GETOPTDEPS): Note that getopt.h lives in the source tree.
	(all other targets): Change references to source files to use
	${srcdir}, except for config.h, which lives in the object dir.
	(timer.o): Note that this depends on ../src/config.h.
1993-05-15 22:20:34 +00:00
Roland McGrath 0e5ad25f6b (main): Don't require that there be input files if -i switches were given. 1993-05-13 03:00:51 +00:00
Eric S. Raymond d2b641800e *** empty log message *** 1993-05-08 09:25:11 +00:00
Paul Eggert 566dd94e41 mawk, SunOS 4.1.3 nawk, and Ultrix/MKS nawk all barf on /[/]/, so change
it to /[\/]/.  This should work on all Posix-compliant awks.
It's slightly wrong with traditional (Unix version 7) awk, since it
also allows \, but that's a minor problem compared to awk syntax errors.
1993-05-03 17:55:22 +00:00
Eric S. Raymond ee6b9d1928 (notify): Bug fix. Treat the body of this function as a critical region. 1993-04-27 21:59:39 +00:00
Jim Blandy 51509df90c * Makefile.in (DEFS): Renamed from CONFIG_CFLAGS. 1993-04-10 06:16:34 +00:00
Jim Blandy 3941a1796f * make-docfile.c (write_c_args): Print an argument named "defalt"
as "default".
1993-04-08 02:06:43 +00:00
Jim Blandy c6b81ef2ee * Makefile.in (C_SWITCH_SYSTEM): New variable.
(CFLAGS): Include C_SWITCH_SYSTEM in the flags to pass to the
	compiler.
1993-03-25 03:51:38 +00:00
Richard M. Stallman 13fde0cd78 (YACC): flag added to c_ext.
(c_ext): no more a synonim for c_ext&C_PLPL because of YACC.
(find_entries): consistently use streq when reasonable.
(find_entries): a .y file is a yacc file.
(get_C_stab): c_ext becomes c_ext&C_PLPL.
(C_entries): logical cplpl means c_ext&C_PLPL.
(C_entries): logical yacc_rules means we are after the first %%.
(C_entries): added logic for yacc files.

(C_entries): ':' case moved to the second switch.
(C_entries): do not examine token if structdef==scolonseen.
(consider_token): structtag set to null string for enum.

(GET_COOKIE): and related macros removed.
(logical): is now int, no more a char.
(reg): define deleted.
(isgood, _gd, notgd): deleted.
(gotone): deleted.
(TOKEN): member linestart removed.
(linepos, prev_linepos, lb1): deleted.
(main): call initbuffer on lbs array instead of lb1.
(init): removed the initialisation of the logical _gd array;
(find_entries): a .sa suffix means assembler file.
(C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
All C state machines rewritten.
(C_entries): complete rewrite.
(condider_token): complete rewrite.
(getline): deleted.

(C_entries): Added the quotednl logical variable.
Used for parsing of #define's spanning multiple lines.

(C_entries): Save the definedef status even when a
newline is met inside a string.
1993-03-22 23:13:10 +00:00
Eric S. Raymond 5e15f62581 Added documentation, made the change comment for old versions more
useful.
1993-03-19 23:40:27 +00:00
Eric S. Raymond 8554321b66 Teach it about the new user-runnable command rcs-checkin. 1993-03-19 23:04:44 +00:00
Eric S. Raymond 17457b8df3 Initial revision 1993-03-19 23:01:33 +00:00
Eric S. Raymond 41f86d5a05 Added unlock and relock. 1993-03-19 07:49:20 +00:00
Paul Eggert f9155ea03e Some awks don't understand "\r". Code around this.
Unfortunately this requires putting a carriage return in the source code.
Don't assume that rlog will tolerate times like `10:10:60';
RCS 5.7 won't allow this.
1993-03-16 22:49:00 +00:00
Jim Blandy b183949171 * timer.c (main): Set the ownership of the stdin file descriptor
to the current process.  Print error messages if either of the
	fcntl's fails.

	* timer.c (sigcatch): Declare this to return SIGTYPE (defined in
	../src/config.h), not void.
1993-03-11 07:00:12 +00:00
Jim Blandy 5d13f393f9 * b2m.c (main): Don't exit upon reading a blank line. 1993-03-11 06:59:53 +00:00
Richard M. Stallman 99e0a2e032 (C_entries): New local variable quotednl. Used for
parsing of #define's spanning multiple lines.

(C_entries): Save the definedef status
even when a newline is met inside a string.
1993-03-03 06:20:12 +00:00
Jim Blandy ca5b61ea67 * timer.c (notify): Initialize waitfor properly. 1993-03-02 08:25:47 +00:00
Richard M. Stallman 57e83cfeff (C_entries): Don't reset definedef when a newline inside a comment is met. 1993-02-23 07:27:39 +00:00
Paul Eggert 0b67eabf74 Add copyright and authorship notices. 1993-01-15 05:33:29 +00:00
Richard M. Stallman 1e8e116226 (find_entries): If filename ends in .f or .for, don't try anything but Fortran. 1993-01-14 20:09:22 +00:00
Michael I. Bushnell c193197b50 Also, write a newline after the token. 1993-01-08 21:12:58 +00:00
Michael I. Bushnell 07941899b3 Also, write a newline after the token. 1993-01-08 20:36:35 +00:00
Michael I. Bushnell 5319c7c1b9 timer.c (notify): Flush stdout after writing message to avoid lossage
on terminals.
1993-01-08 20:36:14 +00:00
Michael I. Bushnell 507876f3c7 timer.c (notify): Flush stdout after writing message to avoid lossage
on terminals.
1993-01-08 20:26:54 +00:00
Jim Blandy 84128dee7b * make-docfile.c (scan_c_file): Since DEFVAR_PER_BUFFER now takes
a different number of arguments than other DEFVARs, recognize it
	specially, and expect the right number of commas.
1992-12-12 15:25:18 +00:00
Jim Blandy c71beb7551 * Makefile.in (exec_prefix): New variable.
(bindir, libdir): Use it instead of `prefix'.

	* Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.

	* Makefile.in (libdir): Default to ${prefix}/lib.
	(archlibdir): Adjusted to match.

	* Makefile.in (distclean): Don't delete backup or autosave files.
	(extraclean): Like realclean, but does delete backup and autosave
	files.

	* Makefile.in (realclean): Ignore errors from rm.

	* Makefile.in (distclean): Don't bother to delete ../arch-lib;
	that doesn't exist anymore.

	* Makefile.in (prefix, bindir, libdir, srcdir): New variables, as
	described in the top-level Makefile.
	(UTILITIES): Add make-path to the list of utility programs.
	(../arch-lib): Replaced by the ${archlibdir} target, which places
	the executables in their permanent home.
	(install, install.sysv, install.xenix): Consolidated into one
	target which should work under all circumstances, modulo a few
	ignored error messages.
1992-12-12 15:24:50 +00:00
Jim Blandy 4aa1632a5f * make-path.c (touchy_mkdir): Remove debugging output. 1992-12-06 22:27:37 +00:00
Jim Blandy ecc798b0dc * Makefile.in (make-path): New target. 1992-12-06 22:25:31 +00:00
Jim Blandy d95ba5f0be Initial revision 1992-12-04 19:59:59 +00:00
Jim Blandy 43bf8b0ee3 * Makefile.in (getdate.o): Added explicit target for this, so we
can indicate that it depends on ../src/config.h.

	* Makefile.in (CONFIG_CFLAGS): Let the configure script edit this
	instead of CFLAGS.
	(CFLAGS): Add -Demacs and -I../src to CONFIG_CFLAGS to produce this.
1992-11-07 07:39:11 +00:00
Jim Blandy 9e7cd9225e entered into RCS 1992-09-30 21:44:26 +00:00
Jim Blandy 30e4c427e1 entered into RCS 1992-09-29 03:14:35 +00:00
Roland McGrath 1d30b62aa7 %.2d -> %02d 1992-09-27 01:55:21 +00:00
Jim Blandy f125a9e8b5 *** empty log message *** 1992-09-23 10:33:26 +00:00
Richard M. Stallman 4dcb1d2681 entered into RCS 1992-09-20 00:41:38 +00:00
Jim Blandy b7cceaf12a *** empty log message *** 1992-09-13 10:54:38 +00:00
Jim Blandy d2729198c6 entered into RCS 1992-08-29 02:15:08 +00:00
Richard M. Stallman 61a93162c6 entered into RCS 1992-08-22 07:10:23 +00:00
Richard M. Stallman 8a6c8bcf0b *** empty log message *** 1992-08-20 05:09:30 +00:00
Jim Blandy ef15f270db *** empty log message *** 1992-08-19 03:54:51 +00:00
Jim Blandy fbfed6f05f entered into RCS 1992-08-19 03:54:46 +00:00
Eric S. Raymond 6edec2ddbc *** empty log message *** 1992-08-14 16:02:12 +00:00
Jim Blandy 9e2b097b26 *** empty log message *** 1992-08-12 12:57:12 +00:00
Eric S. Raymond ae94cd0c12 entered into RCS 1992-08-04 16:08:22 +00:00
Jim Blandy c0acc3e1cd *** empty log message *** 1992-07-17 21:04:37 +00:00
Jim Blandy 9d7ad1b359 *** empty log message *** 1992-07-14 20:54:57 +00:00
Jim Blandy 23d6b5a6ee *** empty log message *** 1992-07-08 22:47:39 +00:00
Jim Blandy d8cafeb502 entered into RCS 1992-06-30 13:55:35 +00:00
Jim Blandy daa3760289 *** empty log message *** 1992-06-24 05:09:26 +00:00
Jim Blandy f76475ad8a *** empty log message *** 1992-05-19 05:22:52 +00:00
Paul Eggert 2af0612162 Call ypmatch at most once. 1992-05-11 19:59:33 +00:00
Jim Blandy e065a56e2d *** empty log message *** 1992-05-10 18:15:10 +00:00
Paul Eggert 19ed208b56 Ignore log messages that start with `#'. 1992-05-08 21:45:00 +00:00
Richard M. Stallman cecf0f21e1 *** empty log message *** 1992-05-07 20:13:17 +00:00
Jim Blandy 4746118aca *** empty log message *** 1992-04-24 08:11:54 +00:00
Jim Blandy d4327fecc1 entered into RCS 1992-04-24 08:11:28 +00:00
Jim Blandy f7dbcf3cf8 Initial revision 1992-04-19 08:53:10 +00:00
Jim Blandy d1c5af3e40 entered into RCS 1992-04-19 08:53:01 +00:00
Jim Blandy 0856496329 *** empty log message *** 1992-04-01 11:14:15 +00:00
Paul Eggert 23a227f717 Don't duplicate most recent logs. Fix bug in dates after Feb 29 in leap year. 1992-04-01 08:57:55 +00:00
Richard M. Stallman 906ad89def *** empty log message *** 1992-03-28 21:00:42 +00:00
Paul Eggert b19075d18e Add clumpname support. 1992-03-21 05:58:05 +00:00
Jim Blandy 9fd54390a8 *** empty log message *** 1992-03-15 03:47:41 +00:00
David J. MacKenzie e97dd18354 *** empty log message *** 1992-03-09 17:40:11 +00:00
Paul Eggert ff17867bb6 Don't munge $* when getting date from ChangeLog. 1992-02-05 17:25:10 +00:00
Paul Eggert 4ca2c4b44e Add -i, -l, -t. 1992-02-05 04:31:18 +00:00
Paul Eggert b86e861595 Initial revision 1992-02-03 03:20:43 +00:00
Richard M. Stallman 08d0752fde *** empty log message *** 1992-01-18 22:46:00 +00:00
Jim Blandy efb859b44a *** empty log message *** 1992-01-14 08:05:08 +00:00
Michael I. Bushnell bdd512ede4 *** empty log message *** 1992-01-09 06:37:22 +00:00
Jim Blandy 1464f5d50e *** empty log message *** 1991-12-21 07:03:14 +00:00
Jim Blandy 3f1f436615 entered into RCS 1991-12-21 06:36:41 +00:00
Richard M. Stallman e5f7865902 Initial revision 1991-12-21 05:04:13 +00:00
Jim Blandy b960e00991 *** empty log message *** 1991-12-19 05:21:52 +00:00
Richard M. Stallman cfa191ff73 *** empty log message *** 1991-12-07 22:01:44 +00:00
Jim Blandy 4bcffd8e3c entered into RCS 1991-12-04 22:51:54 +00:00
Jim Blandy 92c30eb0b7 *** empty log message *** 1991-12-04 20:24:50 +00:00
Jim Blandy cc9940c72c Initial revision 1991-12-04 20:23:21 +00:00
Richard M. Stallman 46cec291bb Initial revision 1991-09-02 20:23:32 +00:00
Roland McGrath 1e134a5fd8 *** empty log message *** 1991-08-18 01:37:14 +00:00
Jim Blandy 7fb0d26fff entered into RCS 1991-07-30 21:04:22 +00:00
Richard M. Stallman 06000e3c72 *** empty log message *** 1991-07-25 05:31:52 +00:00
Jim Blandy 2cd8c160ea entered into RCS 1991-06-03 23:20:54 +00:00
Jim Blandy b92a743788 entered into RCS 1991-05-31 00:27:05 +00:00