1. 09 Jul, 2011 1 commit
  2. 21 Mar, 2011 1 commit
    • Paul Eggert's avatar
      update-game-score: fix bug with -r · f0d80d43
      Paul Eggert authored
      * update-game-score.c (main): Don't set 'scores' to garbage when
      -r is specified and scorecount != MAX_SCORES.  This bug was
      introduced in the 2002-04-10 change, and was found with gcc
      -Wstrict-overflow (GCC 4.5.2, x86-64).
      f0d80d43
  3. 21 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Declare file-scope functions and variables static if not exported. · b23b5a5b
      Paul Eggert authored
      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.
      b23b5a5b
  4. 26 Jan, 2011 1 commit
  5. 25 Jan, 2011 1 commit
  6. 15 Jan, 2011 1 commit
  7. 09 Jan, 2011 1 commit
  8. 02 Jan, 2011 1 commit
  9. 11 Aug, 2010 1 commit
    • Jan D's avatar
      Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *). · 988e88ab
      Jan D authored
      * 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*.
      988e88ab
  10. 24 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Add NO_RETURN specifiers to functions in lib-src. · 68441b90
      Dan Nicolaescu authored
      * 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.
      68441b90
  11. 08 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove leftover P_ macros. · 0216627e
      Dan Nicolaescu authored
      * lib-src/update-game-score.c (P_): Remove macro.
      * lib-src/ebrowse.c: Remove include guards.
      (P_): Remove macro.
      0216627e
  12. 03 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 873fbd0b
      Dan Nicolaescu authored
      * 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.
      873fbd0b
  13. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  14. 13 Jan, 2010 1 commit
  15. 24 Sep, 2009 1 commit
  16. 11 Sep, 2009 1 commit
  17. 08 Jan, 2009 1 commit
  18. 09 May, 2008 1 commit
  19. 07 Jan, 2008 1 commit
  20. 25 Jul, 2007 1 commit
  21. 21 Jan, 2007 1 commit
  22. 06 Feb, 2006 1 commit
  23. 07 Aug, 2005 1 commit
  24. 04 Jul, 2005 1 commit
  25. 08 May, 2004 1 commit
  26. 16 Apr, 2004 1 commit
  27. 08 Sep, 2003 1 commit
  28. 01 Sep, 2003 1 commit
  29. 22 May, 2003 1 commit
  30. 27 Apr, 2003 1 commit
  31. 04 Feb, 2003 3 commits
  32. 18 Nov, 2002 1 commit
    • Dave Love's avatar
      Include unistd.h, string.h, stdlib.h, · 5b400482
      Dave Love authored
      fcntl.h, stdarg.h conditionally.
      (_GNU_SOURCE, __attribute__): Don't define.
      (optarg, optind, opterr): Declare.
      (lose, lose_syserr): Use NO_RETURN.
      (get_user_id): Use P_.
      5b400482
  33. 01 Aug, 2002 1 commit
  34. 29 Apr, 2002 1 commit
    • Colin Walters's avatar
      (SCORE_FILE_PREFIX): Delete. · d99fabf0
      Colin Walters authored
      (main): New argument -d, for specifying directory.
      (usage): Document.
      (get_user_id): Compute
      (get_home_dir): Deleted.
      (get_prefix): New function, taken from main.
      (main): Check whether or not we are running setuid.  Move prefix
      computation to get_prefix.  Don't call getpwent; we don't need to
      any more.  Instead, move it to get_user_id().
      d99fabf0
  35. 23 Apr, 2002 1 commit
  36. 16 Apr, 2002 1 commit
  37. 14 Apr, 2002 2 commits