1. 15 Feb, 2017 1 commit
    • Michal Nazarewicz's avatar
      oldXMenu: add missing #include <string.h> · aeeb86c9
      Michal Nazarewicz authored
      Some of the files in oldXMenu use functions from string.h without
      including that header which results in compile warnings:
      
      	ChgPane.c:46:5: warning: implicit declaration of function ‘strlen’
      	ChgPane.c:46:20: warning: incompatible implicit declaration of
      		built-in function ‘strlen’
      	ChgSel.c:62:2: warning: implicit declaration of function ‘strlen’
      	ChgSel.c:62:17: warning: incompatible implicit declaration of built-in
      		function ‘strlen’
      	Create.c:220:5: warning: implicit declaration of function ‘strcmp’
      	InsPane.c:65:5: warning: implicit declaration of function ‘strlen’
      	InsPane.c:65:20: warning: incompatible implicit declaration of
      		built-in function ‘strlen’
      	InsSel.c:68:5: warning: implicit declaration of function ‘strlen’
      	InsSel.c:68:20: warning: incompatible implicit declaration of built-in
      		function ‘strlen’
      	InsSel.c:75:5: warning: implicit declaration of function ‘strcmp’
      
      Add the necessary ‘#include <string.h>’.
      
      oldXMenu/ChgPane.c, oldXMenu/ChgSel.c, oldXMenu/Create.c, oldXMenu/InsPane.c,
      oldXMenu/InsSel.c: add missing #include <string.h>
      aeeb86c9
  2. 04 Dec, 2012 1 commit
  3. 16 Apr, 2011 1 commit
    • Paul Eggert's avatar
      Modernize to C89, for better static checking. · 55660072
      Paul Eggert authored
      * Activate.c (XMenuActivate): Callback's first arg is readonly.
      * AddPane.c (XMenuAddPane): Label is readonly.  Rename local
      to avoid shadowing.
      * AddSel.c (XMenuAddSelection): Help arg is readonly.  Rename local.
      * Create.c (atoi, atof): Remove decls; include <stdlib.h>.
      (MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
      (x_get_resource_string): Args are readonly.
      (XAllocDisplayColor): colorName is readonly.
      (XMenuCreate): def_env is readonly.  Remove unused locals.  Avoid
      "else;".
      * Destroy.c (XMenuDestroy): Return void.
      * Error.c (XMenuError): Remove const pointer.
      * EvHand.c (XMenuEventHandler): Return void.
      * FindPane.c, FindSel.c: Include <string.h>.
      * InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
      * InsSel.c (XMenuInsertSelection): Likewise.
      * Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
      (_XMErrorList): Now const.
      (_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
      (_XMRefreshSelection): Return void.
      (_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
      shadowing.
      (_XMWinQueFlush): Use stack, not heap.  Don't use uninitialized var.
      * SetAEQ.c (XMenuSetAEQ): Now returns void.
      * SetFrz.c (XMenuSetFreeze): Likewise.
      * X10.h (XAssoc): Use void * for generic pointer.
      * XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
      * XDestAssoc.c, XMakeAssoc.c: Likewise.
      * XDestAssoc.c (XDestroyAssocTable): Return void.
      * XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
      * XMenu.h, XMenuInt.h: Adjust to signature changes.  Use const
      for pointers to readonly storage.
      * insque.c: Include XMenuInt.h, to check our own signature.
      (emacs_insque, emacs_remque): Use void * for generic pointers.
      55660072
  4. 15 Jan, 2011 1 commit
  5. 04 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert function definitions in oldXMenu to standard C. · b782e2d7
      Dan Nicolaescu authored
      * oldXMenu/Activate.c: Convert function definitions to standard C.
      * oldXMenu/AddPane.c:
      * oldXMenu/AddSel.c:
      * oldXMenu/ChgPane.c:
      * oldXMenu/ChgSel.c:
      * oldXMenu/Create.c:
      * oldXMenu/DelPane.c:
      * oldXMenu/DelSel.c:
      * oldXMenu/Destroy.c:
      * oldXMenu/Error.c:
      * oldXMenu/EvHand.c:
      * oldXMenu/FindPane.c:
      * oldXMenu/FindSel.c:
      * oldXMenu/InsPane.c:
      * oldXMenu/InsSel.c:
      * oldXMenu/Internal.c:
      * oldXMenu/Locate.c:
      * oldXMenu/Post.c:
      * oldXMenu/Recomp.c:
      * oldXMenu/SetAEQ.c:
      * oldXMenu/SetFrz.c:
      * oldXMenu/SetPane.c:
      * oldXMenu/SetSel.c:
      * oldXMenu/X10.h:
      * oldXMenu/XCrAssoc.c:
      * oldXMenu/XDelAssoc.c:
      * oldXMenu/XDestAssoc.c:
      * oldXMenu/XLookAssoc.c:
      * oldXMenu/XMakeAssoc.c:
      * oldXMenu/XMenu.h:
      * oldXMenu/XMenuInt.h:
      * oldXMenu/insque.c: Likewise.
      b782e2d7
  6. 27 Feb, 2007 1 commit
  7. 21 Jan, 2007 1 commit
  8. 10 Dec, 2006 1 commit
  9. 05 Feb, 2006 1 commit
  10. 16 Aug, 2005 1 commit
  11. 16 Apr, 2004 1 commit
  12. 10 Apr, 2004 1 commit
    • Miles Bader's avatar
      Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196 · 1f3ddf11
      Miles Bader authored
      Remove RCS keywords
      
      2004-04-10  Miles Bader  <miles@gnu.org>
      
         RCS keyword removal (only non-comment changes are enumerated here):
      
         * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
         (byte-compile-insert-header): Don't use `byte-compile-version'.
         * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
         instead of calculating something from the RCS `State' keyword
         [the latter is almost entirely useless anyway].
         * lisp/forms.el (forms-version): Variable removed.
         (forms-mode): Don't use `forms-version'.
         * lisp/recentf.el (recentf-version): Variable removed.
         * lisp/progmodes/delphi.el (delphi-version): Variable removed.
         * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
      1f3ddf11
  13. 24 Dec, 2003 1 commit
  14. 08 Sep, 2003 1 commit
  15. 01 Sep, 2003 1 commit
  16. 04 Feb, 2003 1 commit
  17. 03 Oct, 1999 1 commit
    • Dave Love's avatar
      # · e745ede7
      Dave Love authored
      e745ede7