Paul Eggert
d5cad867ec
[ChangeLog]
...
fakemail: Remove dependency on ignore-value.
* Makefile.in (GNULIB_MODULES): Add stdio.
* lib/stdio.in.h, m4/stdio_h.m4: New files, automatically
imported from gnulib.
[lib-src/ChangeLog]
fakemail: Remove dependency on ignore-value.
This undoes some of the recent fakemail-related changes.
It is made possible due to recent changes to gnulib's stdio module.
* Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h.
* fakemail.c: Do not include ignore-value.h.
(put_line): Do not use ignore_value.
2011-03-20 22:04:41 -07:00
Paul Eggert
a4fe4e890a
* fakemail.c: Include <ignore-value.h>.
...
(put_line): Explicitly ignore fwrite return value, for benefit of
recent glibc + gcc.
(close_the_streams): Diagnose output errors instead of merely
exiting with nonzero status.
(my_fclose, main): Diagnose input errors, and exit with nonzero status.
Formerly, input errors were silently ignored.
2011-02-25 21:36:51 -08:00
Paul Eggert
b23b5a5b7d
Declare file-scope functions and variables static if not exported.
...
This is more consistent, and is nicer with gcc -Wstrict-prototypes.
* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
* profile.c, test-distrib.c, update-game-score.c:
Declare non-'main' functions and variables to be static.
* ebrowse.c: Omit redundant function prototypes.
2011-02-21 10:06:25 -08:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Paul Eggert
a3e44e7937
Merge from mainline.
2011-01-17 11:01:01 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Paul Eggert
8a1f4a98c1
Merge from mainline.
2011-01-14 10:14:17 -08:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Paul Eggert
4004364e67
Include <unistd.h> unilaterally.
2011-01-09 00:12:35 -08:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Jan D
5e3b9a89ad
Fix -Wwrite-strings warnings in fakemail.c.
...
* fakemail.c: Include stdlib.h for getenv. Remove declaration of
popen, fclose and pclose.
(my_name, fatal, error, put_line): Use const char*
(main): Remove extern getenv, mail_program_name is const char*.
2010-08-11 11:16:35 +02:00
Jan D
988e88ab11
Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *).
...
* b2m.c (concat, fatal): Use const char*.
(main): Don't assign labels a string literal.
* ebrowse.c (struct member): filename, def_filename is const.
(struct sym): filename, sfilename is const.
(struct kw): name is const.
(add_sym, yyerror, token_string, insert_keyword, main): Use const char*.
* emacsclient.c (message, sock_err_message, send_to_emacs)
(quote_argument, set_local_socket)
(start_daemon_and_retry_set_socket): Use const char*.
* etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
(Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
(Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
(Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
(Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
(Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
(Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
(Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
(Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
(PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
(Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
(Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
(no_lang_help, print_language_names)
(get_language_from_interpreter, get_language_from_filename)
(init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
(TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
(concat): Use const char*.
* make-docfile.c (error, fatal, scan_c_file, scan_lisp_file): Use
const char *.
* movemail.c (fatal, error, concat): Use const char *.
* pop.c (pop_multi_first, socket_connection, sendline): Use conat char*.
* pop.h (pop_multi_first): Use const char *.
(_ARGS): Remove.
* sorted-doc.c (error, fatal, states): Use const char *.
* update-game-score.c (get_prefix, write_scores, main): Use const char*.
2010-08-11 10:20:34 +02:00
Dan Nicolaescu
68441b90e9
Add NO_RETURN specifiers to functions in lib-src.
...
* lib-src/update-game-score.c (usage): Add NO_RETURN specifier.
* lib-src/movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
* lib-src/make-docfile.c (fatal):
* lib-src/hexl.c (usage):
* lib-src/fakemail.c (fatal):
* lib-src/etags.c (fatal, suggest_asking_for_help, pfatal):
* lib-src/emacsclient.c (fatal):
* lib-src/b2m.c (fatal): Likewise.
2010-07-24 10:18:18 -07:00
Dan Nicolaescu
b8463cbfbe
* lib-src/fakemail.c (action): Convert function definitions to standard C.
...
(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.
2010-07-03 23:05:43 -07:00
Dan Nicolaescu
873fbd0b84
Convert function definitions to standard C.
...
* lib-src/update-game-score.c: Convert function definitions to standard C.
* lib-src/sorted-doc.c:
* lib-src/profile.c:
* lib-src/pop.c:
* lib-src/movemail.c:
* lib-src/make-docfile.c:
* lib-src/hexl.c:
* lib-src/fakemail.c:
* lib-src/etags.c:
* lib-src/ebrowse.c:
* lib-src/digest-doc.c:
* lib-src/b2m.c: Likewise.
2010-07-02 17:50:23 -07:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Glenn Morris
c3fba29dba
Comment (add an author based on ack.texi).
2009-01-10 21:56:18 +00:00
Glenn Morris
f5d0ac07d6
Add 2009 to copyright years.
2009-01-08 03:38:51 +00:00
Dan Nicolaescu
f2a77c3a41
* unexnext.c:
...
* m/ews4800.h:
* m/hp9000s300.h:
* m/ibm370aix.h:
* m/mips-siemens.h:
* m/ncr386.h:
* m/next.h:
* m/pmax.h:
* m/powerpcle.h:
* m/tandem-s2.h:
* s/386bsd.h:
* s/bsd386.h:
* s/bsd4-1.h:
* s/bsd4-2.h:
* s/bsdos2-1.h:
* s/bsdos2.h:
* s/bsdos3.h:
* s/bsdos4.h:
* s/nextstep.h:
* s/ultrix4-3.h:
* s/usg5-0.h:
* s/usg5-2-2.h:
* s/usg5-2.h:
* s/usg5-4-3.h:
* s/ux4800.h:
* s/uxpds.h:
* s/uxpv.h: Remove support for obsolete systems.
* s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
Remove, insert contents in s/hpux-10.20.h
* s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
Remove, insert contents in s/aix-4.2.h
* s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
* s/bsd4-3.h: Rename to ..
* s/bsd-common.h: ... this.
* src/data.c:
* src/doc.c:
* src/ecrt0.c:
* src/emacs.c:
* src/fileio.c:
* src/floatfns.c:
* src/keyboard.c:
* src/mem-limits.h:
* src/print.c:
* src/process.c:
* src/sysdep.c:
* src/syssignal.h:
* src/systty.h:
* src/syswait.h:
* src/term.c:
* src/unexec.c:
* src/unexelf.c:
* src/unexhp9k800.c:
* src/m/hp800.h:
* src/m/ibmrs6000.h:
* src/m/mips.h:
* src/m/vax.h:
* src/s/darwin.h:
* src/s/freebsd.h:
* src/s/gnu.h:
* src/s/ms-w32.h:
* src/s/msdos.h:
* src/s/netbsd.h:
* src/s/template.h: Remove references to obsolete variables.
* Makefile.in: Add dependencies for all unexec files.
(admindir): Remove unused variable.
(UNEXEC_SRC): Remove references.
* config.nt: Remove reference to UNEXEC_SRC.
* lwlib.c: Remove references to obsolete variables.
* fakemail.c: Remove references to obsolete variables.
* os.texi: Remove references to obsolete systems.
* configure.in:
* configure: Remove references to obsolete systems.
2008-06-26 04:24:54 +00:00
Glenn Morris
294981c77c
Switch to recommended form of GPLv3 permissions notice.
2008-05-09 23:19:13 +00:00
Dan Nicolaescu
9d2818d676
* configure.in: Remove references to obsolete variables and
...
systems.
* configure: Regenerate.
* Makefile.in (NO_SHORTNAMES):
* emacsclient.c (NO_SHORTNAMES):
* fakemail.c (NO_SHORTNAMES):
* make-docfile.c (NO_SHORTNAMES):
* movemail.c (NO_SHORTNAMES):
* pop.c (NO_SHORTNAMES): Remove references to obsolete variable.
* config.nt (SHORTNAMES): Remove reference to obsolete variable.
* s/vms4-0.h:
* s/vms4-2.h:
* s/vms4-4.h:
* s/vms5-5.h: Remove, unused.
* s/irix5-2.h:
* s/irix6-0.h:
* s/riscos5.h:
* s/mach-bsd4-3.h:
* m/mips4.h: Remove files for obsolete systems
* Makefile.in:
* filelock.c:
* unexmips.c:
* m/hp9000s300.h:
* m/iris4d.h:
* s/aix3-1.h:
* s/hpux.h:
* s/msdos.h:
* s/usg5-0.h:
* s/usg5-2-2.h:
* s/usg5-2.h:
* s/usg5-3.h: Remove references to obsolete variables.
* s/irix5-0.h: Remove, move all the contents ...
* s/irix6-5.h: ... here. Simplify.
* config.in: Regenerate.
2008-02-24 18:53:07 +00:00
Dan Nicolaescu
45c1955de8
Undo previous change.
2008-02-10 19:24:48 +00:00
Dan Nicolaescu
4624371d9a
* configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
...
dealing with obsolete variables.
* fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
(main): Replace MAIL_PROGRAM_NAME with its value.
* src/Makefile.in:
* src/emacs.c:
* src/gmalloc.c:
* src/keyboard.c:
* src/lisp.h:
* src/m/ibm370aix.h:
* src/process.c:
* src/regex.c:
* src/s/hpux.h:
* src/sysdep.c:
* src/sysselect.h:
* src/systty.h:
* src/unexec.c:
* src/w32term.c:
* src/xsmfns.c:
* src/xterm.c: Remove code that deals with obsolete variables.
* s/msdos.h (DONT_NEED_ENVIRON): Don't define.
* ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
nothing else needs it anymore.
2008-02-09 18:03:10 +00:00
Glenn Morris
a5b68355b3
Add 2008 to copyright years.
2008-01-07 08:42:46 +00:00
Glenn Morris
4a9f99bdfb
Switch license to GPLv3 or later.
2007-07-25 05:08:27 +00:00
Glenn Morris
b3d90e4611
Update copyright for years from Emacs 21 to present (mainly adding
...
2001).
2007-01-16 03:47:24 +00:00
Andreas Schwab
5a84ed337a
(fatal): Drop second parameter and treat first
...
parameter as a plain string. Callers changed.
2006-07-20 13:33:48 +00:00
Richard M. Stallman
2ef88a94ea
(read_header): Give fatal error if input has no header.
2006-04-29 18:52:23 +00:00
Paul Eggert
d65b42351f
* lib-src/b2m.c (main): Don't include <limits.h>.
...
(TM_YEAR_BASE): New macro.
(TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
that s/ files can override this. Use the more-conservative range
1000-9999.
(main): Check for asctime returning NULL.
* lib-src/fakemail.c: Likewise.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
../lib-src/b2m.c and ../lib-src/editfns.c.
(Fcurrent_time_string): Use it.
Document that the year might not consume 4 columns if it's outside
the range 1000-9999.
Check for asctime failure.
Don't assume that the output string length is always exactly 24.
2006-04-04 04:13:02 +00:00
Paul Eggert
f55658040d
* b2m.c: Include <limits.h>.
...
(TM_YEAR_IN_ASCTIME_RANGE): New macro.
(main): Check for out-of-range time stamps.
* fakemail.c: Likewise.
2006-03-27 20:40:05 +00:00
Thien-Thi Nguyen
273dc16aaf
Update years in copyright notice; nfc.
2006-02-06 11:28:28 +00:00
Thien-Thi Nguyen
92b47a4a99
Update years in copyright notice; nfc.
2005-08-07 10:56:27 +00:00
Lute Kamstra
364c38d3af
Update FSF's address.
2005-07-04 15:47:28 +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
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Pavel Janík
4838e624ad
Include <config.h>.
2002-01-01 19:15:26 +00:00
Pavel Janík
594aa06631
Conditionally include config.h.
...
Clean-up whitespaces.
2001-12-19 07:26:31 +00:00
Dave Love
a33c19b172
Include "config.h", not <../src/config.h>.
...
(_XOPEN_SOURCE): Define as 500.
2001-12-18 16:01:11 +00:00
Eli Zaretskii
26df3bb0b9
(readline): Cast buffer to "long *" to pacify
...
over-zealous compilers.
2001-01-02 13:51:07 +00:00
Gerd Moellmann
859cbb401c
(get_keyword): Make sure that isspace and
...
similar aren't called with a negative argument.
2000-12-15 14:33:25 +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
Andreas Schwab
eed63914b0
Include <stdlib.h> if available.
1999-08-30 15:08:30 +00:00
Andreas Schwab
cb58ebb0cb
(_XOPEN_SOURCE): Define for declaration of cuserid.
...
(parse_header): Explicitly declare return type.
1998-04-06 10:15:16 +00:00
Richard M. Stallman
7543028ea0
[HAVE_UNISTD_H]: Include unistd.h.
1997-07-17 23:49:47 +00:00
Karl Heuer
e397a0172f
Replaced all BSD with BSD_SYSTEM.
1996-09-17 02:37:17 +00:00
Richard M. Stallman
0d1841a634
Whitespace fix.
1996-09-04 15:17:16 +00:00
Karl Heuer
d0dff6e505
Declare main as int, not void.
1996-07-15 21:27:49 +00:00
Richard M. Stallman
7c54442039
[WINDOWSNT]: Include ntlib.h.
1996-04-28 19:06:01 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Karl Heuer
5391a863dc
(xrealloc): Change cast to match return type.
1995-08-12 18:15:28 +00:00