Commit graph

295 commits

Author SHA1 Message Date
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