aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/b2m.c
Commit message (Collapse)AuthorAgeFilesLines
* * lib-src/b2m.c (main): Don't include <limits.h>.Paul Eggert2006-04-041-11/+8
| | | | | | | | | | | | | | | | (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.
* * b2m.c: Include <limits.h>.Paul Eggert2006-03-271-1/+20
| | | | | | (TM_YEAR_IN_ASCTIME_RANGE): New macro. (main): Check for out-of-range time stamps. * fakemail.c: Likewise.
* (GOOD, BAD): Delete macros. Throughout,Thien-Thi Nguyen2004-05-071-14/+7
| | | | | replace w/ `EXIT_SUCCESS' and `EXIT_FAILURE', respectively. (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
* Add arch taglinesMiles Bader2003-09-011-0/+2
|
* (main): Parenthesize assignment when used as truth value to prevent gccPavel Janík2002-01-011-1/+1
| | | | warnings.
* Comment change.Richard M. Stallman2001-12-221-0/+1
|
* Properly spell the name of Emacs.Pavel Janík2001-10-191-2/+2
|
* (main): Always return a value.Gerd Moellmann2001-04-031-0/+2
|
* Add support for large files. Merge glibc 2.1.2.Paul Eggert1999-10-191-10/+6
| | | | | | | | | | | | | | | | | | * 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.
* Include <stdlib.h> if available.Andreas Schwab1998-04-061-0/+5
| | | | (main): Explicitly declare return type.
* (fatal): Declare the arg.Richard M. Stallman1998-04-041-0/+1
|
* Include getopt.h.Karl Heuer1997-11-231-1/+31
| | | | (main): Use getopt_long to handle --version and --help.
* (readline): Terminate buffer properly when EOF seen.Karl Heuer1997-06-141-1/+2
| | | | Test for valid pointer before dereferencing it.
* (main) [MSDOS]: Handle DJGPP version 2.Richard M. Stallman1996-04-101-0/+7
|
* (main): Initialize progname variable before using it.Richard M. Stallman1996-03-201-2/+3
| | | | Quote `username' in From_ header.
* (xmalloc, xrealloc): Declare them long *.Richard M. Stallman1995-05-041-5/+5
|
* (main): Check for trailing ", " before trying to delete it.Karl Heuer1995-04-131-1/+3
|
* (concat, xmalloc, xrealloc, readline, xnew): Four newRichard M. Stallman1995-01-091-59/+194
| | | | | | | | 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.
* Eliminate some -Wall warnings.David J. MacKenzie1994-10-121-0/+2
|
* (from, labels, data): Use MAX_DATA_LEN as length.Richard M. Stallman1994-09-211-8/+6
| | | | (main): Use fgets, not gets.
* (main): Avoid crash if argc is 1.Richard M. Stallman1994-05-171-1/+1
|
* Don't include string.h or strings.h.Richard M. Stallman1994-04-281-6/+0
|
* Clean up indentation and whitespace.Richard M. Stallman1994-03-051-44/+56
|
* (main): Change delimiter from "^L" to "^_^L".Richard M. Stallman1994-03-051-5/+1
| | | | | Allow for text following "BABYL OPTIONS:". Add --help option. Use argv[0] in error messages.
* (main): Change delimiter from "^L" to "^_^L".Karl Heuer1994-03-031-9/+19
| | | | | Allow for text following "BABYL OPTIONS:". Add --help option. Use argv[0] in error messages.
* (main) [MSDOS]: Open all files as binary.Richard M. Stallman1994-01-061-0/+8
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (TRUE, FALSE): Don't define if already defined.Richard M. Stallman1993-08-111-0/+4
|
* * b2m.c: #include <sys/types.h>.Jim Blandy1993-07-061-1/+2
| | | | (ltoday): Declare this to be time_t.
* * b2m.c (main): Don't exit upon reading a blank line.Jim Blandy1993-03-111-2/+8
|
* entered into RCSJim Blandy1992-08-191-0/+7
|
* Initial revisionJim Blandy1991-12-041-0/+84