Commit graph

1735 commits

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