aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/b2m.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove lib-src/b2m.c and b2m.pl.Glenn Morris2010-10-081-318/+0
| | | | | | | | | | | | | | | | | | | Emacs does not use Babyl files since 23.1, and you can use M-x unrmail. * msdos/mainmake.v2 (install): Remove b2m. * lisp/emacs-lisp/authors.el (authors-valid-file-names): Add b2m.c. * lib-src/b2m.c, lib-src/b2m.pl: Remove files. * lib-src/Makefile.in (INSTALLABLES): Remove b2m. * lib-src/makefile.w32-in ($(BLD)/b2m.$(O)): Remove. * doc/emacs/ack.texi (Acknowledgments): No more b2m.c. * admin/quick-install-emacs (PUBLIC_LIBSRC_BINARIES): Remove b2m. * INSTALL, make-dist: Remove references to b2m. * Makefile.in (MAN_PAGES): Remove b2m.1.
* Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *).Jan D2010-08-111-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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*.
* Add NO_RETURN specifiers to functions in lib-src.Dan Nicolaescu2010-07-241-1/+1
| | | | | | | | | | | * 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.
* Convert function definitions to standard C.Dan Nicolaescu2010-07-021-16/+7
| | | | | | | | | | | | | | | * 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.
* Convert some prototypes to standard C.Dan Nicolaescu2010-07-021-4/+5
| | | | | | | | | | | | | * lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal): * lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to standard C prototypes. * src/term.c (term_clear_mouse_face, Fidentity): * src/syssignal.h (signal_handler_t): * src/lisp.h (memory_warnings): * src/coding.h (preferred_coding_system): * src/cm.h (evalcost): * src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
* * b2m.c (main): Ensure that each message ends in two newlines.Chong Yidong2009-07-081-3/+14
|
* * 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