1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00
Commit Graph

60 Commits

Author SHA1 Message Date
Kim F. Storm
bf17c6e67e (scan_c_file): Set defvarperbufferflag to silence compiler. 2004-11-09 11:03:12 +00:00
Thien-Thi Nguyen
65396510c3 Throughout, replace 0 destined for exit' arg with EXIT_SUCCESS'.
Likewise, replace 1 with `EXIT_FAILURE'.
(main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
2004-05-08 15:26:33 +00:00
Eli Zaretskii
b09c560845 (IS_DIRECTORY_SEP): New macro.
(put_filename): Remove unused variable len.  Use IS_DIRECTORY_SEP
instead of a literal '/'.
2004-04-26 10:49:11 +00:00
Stefan Monnier
d5d66b7eda (xmalloc): Fix return type.
(put_filename): New fun.
(scan_file): Use it.
2004-04-07 19:18:42 +00:00
Thien-Thi Nguyen
08a39b8304 (main): For return code, no longer special-case VMS.
Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
2003-12-24 06:49:23 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Dave Love
7a71a86d3d (read_c_string_or_comment): Declare msgno. 2002-11-14 14:09:44 +00:00
Stefan Monnier
56cf516205 (scan_keyword_or_put_char, write_c_args): Use `fn'
for the function name in the usage info.
2002-08-19 21:47:38 +00:00
Stefan Monnier
1e04216025 (scan_c_file): Warn about missing `usage' info. 2002-07-15 20:00:03 +00:00
Pavel Janík
a00e9335a4 Remove unnecessary whitespaces. 2002-01-05 23:37:58 +00:00
Pavel Janík
fb2d3129dc Comment fixes. 2001-11-15 15:50:31 +00:00
Miles Bader
52d8c52976 (struct rcsoc_state): New type.
(read_c_string_or_comment): Use a variable of type `rcsoc_state' to hold
most of our state.
(put_char): Add STATE parameter, and remove all other parameters
except CH.  Use STATE to get access to all needed state.
(scan_keyword_or_put_char): New function.
2001-10-21 13:48:16 +00:00
Miles Bader
d097ad5744 (read_c_string_or_comment): Add SAW_USAGE parameter, and implement
scanning for a `usage:' keyword.
(scan_c_file): Pass SAW_USAGE argument to read_c_string_or_comment.
Don't output a usage-string if there was one in the doc string.
2001-10-21 09:21:46 +00:00
Miles Bader
0c82822ca0 (put_char): New function.
(read_c_string_or_comment): Strip trailing spaces and newlines.
2001-10-17 02:53:57 +00:00
Miles Bader
a5979c0e89 (scan_c_file): Handle new style' doc strings in comments [with doc:'
keyword prefix].
2001-10-16 13:05:28 +00:00
Gerd Moellmann
7dfd439c45 (read_c_string_or_comment): Don't drop a '*'
in a C doc comment.
2001-10-15 10:04:31 +00:00
Gerd Moellmann
74c55c82b6 (read_c_string_or_comment): Renamed from
read_c_string.  Add parameter COMMENT.  Read C-style comments.
(scan_c_file): Handle doc strings in C comments.
2001-10-13 20:41:25 +00:00
Gerd Moellmann
291c7e74d2 (write_c_args): Print newlines as spaces. 2001-01-13 16:49:49 +00:00
Andreas Schwab
34e778a67d (scan_lisp_file): Also look for `defsubst'. 2000-03-29 21:32:12 +00:00
Paul Eggert
4ee9629e2b Add support for large files. Merge glibc 2.1.2.
* b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
movemail.c, pop.c:
Do not include <stdlib.h>, as <config.h> does this now.

* b2m.c, emacsserver.c, etags.c, profile.c:
Include <config.h> before any system include files.

* emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
test-distrib.c:
(read, write, open, close): Do not undef.

* getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
(const): Do not define if HAVE_CONFIG_H; that's config.h's job.

* getopt.h: Adopt glibc 2.1.2.
1999-10-19 07:17:20 +00:00
Dave Love
7e6972e92c (scan_lisp_file): Fix typo causing infloop. 1999-09-27 11:34:27 +00:00
Phillip Rulon
66f54605e1 patched by pjr from diff by rms 1999-09-24 13:52:46 +00:00
Dave Love
b0f08a24a4 Fix comment about conventions for Lisp files. 1999-09-04 11:25:13 +00:00
Richard M. Stallman
433d333d70 Include config.h not ../src/config.h.
(main, fopen, chdir): Add #undef.
(read_c_string, scan_c_file, skip_white, read_lisp_symbol)
(scan_lisp_file): Handle \r like \n.
1999-09-03 23:12:27 +00:00
Andreas Schwab
eed63914b0 Include <stdlib.h> if available. 1999-08-30 15:08:30 +00:00
Andreas Schwab
a0613c61ed Include <unistd.h> for chdir. 1998-04-27 09:22:29 +00:00
Richard M. Stallman
3fe77f98b1 (scan_lisp_file): Handle custom-declare-variable. 1997-08-31 17:05:53 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman
dc61cb9dd8 (scan_file): Make sure it never looks at filename[-1]. 1995-06-21 19:46:58 +00:00
Richard M. Stallman
5281dea442 (main) [MSDOS]: Do set _fmode.
This undoes part of the previous change.
1995-06-21 19:45:27 +00:00
Richard M. Stallman
4e043ed306 (main): On MSDOS, don't change stdout to binary, and insist on an -o option. 1995-06-20 02:52:38 +00:00
Karl Heuer
2d1985a2e1 [MSDOS]: #undef chdir. 1995-06-08 20:13:45 +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
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
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
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
a27897c9ac (main): Don't process one input file twice.
Never use exit code > 1.
1994-10-21 20:31:43 +00:00
David J. MacKenzie
340ff9deae Eliminate some -Wall warnings. 1994-10-12 20:21:51 +00:00
Richard M. Stallman
4607ea99ad (write_c_args): Put `default' in upper case. 1994-05-19 21:05:08 +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
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
7694a0c4c2 (scan_lisp_file): Don't add newline at end of string. 1993-12-24 02:16:49 +00:00
Richard M. Stallman
d48e616eff (read_c_string): For "", concatenate the two strings. 1993-11-12 21:12:35 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Jim Blandy
a706b8084a * make-docfile.c: Doc fix. 1993-05-24 18:05:21 +00:00
Richard M. Stallman
2d6e26196e (scan_lisp_file): Recognize defalias like fset. 1993-05-22 22:07: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
3941a1796f * make-docfile.c (write_c_args): Print an argument named "defalt"
as "default".
1993-04-08 02:06:43 +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