home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / sources / 2609 < prev    next >
Encoding:
Text File  |  1992-11-23  |  66.7 KB  |  3,181 lines

  1. Newsgroups: alt.sources
  2. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!csc.canberra.edu.au!pandonia!jan
  3. From: jan@pandonia.canberra.edu.au (Jan Newmarch)
  4. Subject: X11/Motif file manager - patch 01
  5. Message-ID: <jan.722564710@pandonia>
  6. Keywords: xmfm patch X11 Motif
  7. Sender: news@csc.canberra.edu.au
  8. Organization: Info Sci & Eng, University of Canberra, AUSTRALIA
  9. Date: 24 Nov 92 00:25:10 GMT
  10. Lines: 3169
  11.  
  12.  
  13. This posting contains the first patch to the X11/Motif file manager
  14. that I posted to this newsgroup last week. It takes xmfm from version
  15. 1.6 to version 1.7. It does the following:
  16.  
  17. Bugs Fixed:
  18. -    reading xmfmrc crashed on some machines.
  19. -    cancelling a filter dialog crashed.
  20. -    refreshing directory contents on some machines crashed.
  21. -    varargs interface for ANSI illegal.
  22. -    incorrect attribution of copyright for bitmaps.
  23. -    spelling/syntax errors in help messages.
  24. -    "vi" doesn't run in its own xterm.
  25. -    "pauseme" program omitted from distribution, so e.g. "more" doesn't
  26.     seem to work.
  27. -    in bitmaps Imakefile, /usr/lib/X11 changed to $(LIBDIR)
  28. -    more robust handling of errors in xmfmrc.
  29. -    crashed if failed to chdir on Change Directory after first pane closed.
  30. -    may crash on changing to home dir.
  31.  
  32. Enhancements:
  33. -    command line argument added to allow specification of xmfmrc file.
  34. -    icon added.
  35.  
  36. The bitmaps included in that distribution are in fact subject to a
  37. copyright notice. That notice is as follows:
  38.  
  39. "Copyright (c) 1992 Edward Groenendaal, Ramon Santiago
  40. Copyright (c) 1991 Edward Groenendaal.
  41.  
  42. Permission is granted to anyone to use this software for any
  43. purpose on any computer system, and to redistribute it freely,
  44. subject to the following restrictions:
  45.  
  46. 1. The author is not responsible for the consequences of use of
  47.    this software, no matter how awful, even if they arise
  48.    from defects in it.
  49.  
  50. 2. The origin of this software must not be misrepresented, either
  51.    by explicit claim or by omission.
  52.  
  53. 3. Altered versions must be plainly marked as such, and must not
  54.    be misrepresented as being the original software."
  55.  
  56. Apologies to Eddy and Ramon over this.
  57.  
  58. To apply this patch, change to the directory in which you have installed
  59. xmfm and type
  60.  
  61.     patch < this-patch-file
  62.  
  63. If you have a newsreader such as nn, you shuld be able to say
  64.  
  65.     | patch -d directory-where-you-installed xmfm
  66.  
  67. Please note that I cannot get the last patch to take no matter what I do :-(
  68. It is *not* important: it patches the last line of bitmaps/Imakefile to use
  69. $(LIBDIR) instead of /usr/lib/X11. This only affects you if you want to have
  70. the bitmaps installed elsewhere.
  71.  
  72. ------------ CUT HERE -------------------------
  73. diff -c -r ./CHANGES ../new/CHANGES
  74. *** ./CHANGES    Tue Nov 24 10:54:43 1992
  75. --- ../new/CHANGES    Tue Nov 24 10:27:22 1992
  76. ***************
  77. *** 0 ****
  78. --- 1,34 ----
  79. + These are the major changes and fixes between versions:
  80. + **********************************************************************
  81. + * Version 1.6 to 1.7
  82. + **********************************************************************
  83. + Bugs Fixed:
  84. + -    reading xmfmrc crashed on some machines.
  85. + -    cancelling a filter dialog crashed.
  86. + -    refreshing directory contents on some machines crashed.
  87. + -    varargs interface for ANSI illegal.
  88. + -    incorrect attribution of copyright for bitmaps.
  89. + -    spelling/syntax errors in help messages.
  90. + -    "vi" doesn't run in its own xterm.
  91. + -    "pauseme" program omitted from distribution, so e.g. "more" doesn't
  92. +     seem to work.
  93. + -    in bitmaps Imakefile, /usr/lib/X11 changed to $(LIBDIR)
  94. + -    more robust handling of errors in xmfmrc.
  95. + -    crashed if failed to chdir on Change Directory after first pane closed.
  96. + -    may crash on changing to home dir.
  97. + Enhancements:
  98. + -    command line argument added to allow specification of xmfmrc file.
  99. + -    icon added.
  100. + Thanks to:
  101. + Brian Eck eck@saul.cis.upenn.edu
  102. + Richard Weidner richard@elroy.jpl.nasa.gov
  103. + Chung Tin Kwok ctkwok@cs.washington.edu
  104. + Marty Leisner leisner@eso.mc.xerox.com 
  105. + DaviD W. Sanderson dws@ssec.wisc.edu
  106. + Tom Horsley tom@amber.ssd.csd.harris.com
  107. + Ramon Santiago santiago@fgssu1.fgs.slb.com
  108. + Volker Grupe grupe@informatik.uni-hamburg.de
  109. diff -c -r ./Imakefile ../new/Imakefile
  110. *** ./Imakefile    Tue Nov 17 16:40:54 1992
  111. --- ../new/Imakefile    Fri Nov 20 16:04:21 1992
  112. ***************
  113. *** 5,11 ****
  114.   
  115.   MINCLUDESRC=.
  116.   
  117. ! DEFINES =  -g -DALLOW_ROWCOL_RESIZE -DRDD -DALLOW_EDITRES -DUseFunctionPrototypes
  118.   INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC) 
  119.   DEPLIBS = XmClientDepLibs
  120.   LOCAL_LIBRARIES = $(AUTOUTILLIB) XmClientLibs 
  121. --- 5,11 ----
  122.   
  123.   MINCLUDESRC=.
  124.   
  125. ! DEFINES =  -g -DALLOW_ROWCOL_RESIZE -DRDD -DALLOW_EDITRES
  126.   INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC) 
  127.   DEPLIBS = XmClientDepLibs
  128.   LOCAL_LIBRARIES = $(AUTOUTILLIB) XmClientLibs 
  129. ***************
  130. *** 67,72 ****
  131. --- 67,73 ----
  132.   
  133.   MSimpleProgramTarget(xmfm,$(LOCAL_LIBRARIES),NullParameter)
  134.   
  135. + InstallProgram(pauseme)
  136.   InstallAppDefaults(XmFm)
  137.   InstallNonExecFile(xmfmrc,$(XAPPLOADDIR))
  138.   InstallManPage(xmfm,$(ManDir))
  139. diff -c -r ./Makefile ../new/Makefile
  140. *** ./Makefile    Tue Nov 17 16:41:07 1992
  141. --- ../new/Makefile    Mon Nov 23 11:23:02 1992
  142. ***************
  143. *** 272,278 ****
  144.   
  145.   MINCLUDESRC=.
  146.   
  147. ! DEFINES =  -g -DALLOW_ROWCOL_RESIZE -DRDD -DALLOW_EDITRES -DUseFunctionPrototypes
  148.   INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC)
  149.   DEPLIBS = $(USRLIBDIR)/libXm.a
  150.   LOCAL_LIBRARIES = $(AUTOUTILLIB) -lXm -lXmu -lXext -lXt -lX11
  151. --- 272,278 ----
  152.   
  153.   MINCLUDESRC=.
  154.   
  155. ! DEFINES =  -g -DALLOW_ROWCOL_RESIZE -DRDD -DALLOW_EDITRES
  156.   INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC)
  157.   DEPLIBS = $(USRLIBDIR)/libXm.a
  158.   LOCAL_LIBRARIES = $(AUTOUTILLIB) -lXm -lXmu -lXext -lXt -lX11
  159. ***************
  160. *** 363,368 ****
  161. --- 363,373 ----
  162.   
  163.   clean::
  164.       $(RM) $(PROGRAMS)
  165. + install:: pauseme
  166. +     @if [ -d $(DESTDIR) ]; then set +x; \
  167. +     else (set -x; $(MKDIRHIER) $(DESTDIR)); fi
  168. +     $(INSTALL) -c $(INSTPGMFLAGS)  pauseme $(DESTDIR)
  169.   
  170.   install:: XmFm.ad
  171.       @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  172. diff -c -r ./README ../new/README
  173. *** ./README    Thu Nov 19 16:17:27 1992
  174. --- ../new/README    Sat Nov 21 13:09:10 1992
  175. ***************
  176. *** 17,35 ****
  177.       University of Canberra. email: jan@ise.canberra.edu.au
  178.   
  179.   Availability
  180. !     Posted to alt.sources 19 Nov 92 as 17 shar files.
  181. !     To retrieve it save all 17 parts and edit out any
  182. !     news headers. Then for each part in turn run a shell e.g.:
  183. !         sh part.01
  184. !         sh part.02
  185. !         ...    
  186. !     If you are using a newsreader such as nn, select all the files
  187. !     and type
  188. !         :unshar
  189.   
  190. -     The latest version is available for anonymous ftp from
  191. -     csc.canberra.edu.au (137.92.1.1) as /pub/motif/xmfm.tar.*.Z
  192.   Platforms
  193.       This has only been tested on a Sun Sparcstation. It compiles
  194.       under gcc and cc.  It requires Motif 1.1 or Motif 1.2.
  195. --- 17,26 ----
  196.       University of Canberra. email: jan@ise.canberra.edu.au
  197.   
  198.   Availability
  199. !     Posted to alt.sources 19 Nov 92. The latest version is available
  200. !     for anonymous ftp from csc.canberra.edu.au (137.92.1.1) as
  201. !     /pub/motif/xmfm.tar.*.Z
  202.   
  203.   Platforms
  204.       This has only been tested on a Sun Sparcstation. It compiles
  205.       under gcc and cc.  It requires Motif 1.1 or Motif 1.2.
  206. ***************
  207. *** 58,62 ****
  208.       The files are DirMgr.[ch], Directory.[ch], RegExp.[ch]. I
  209.       cannot find a statement of conditions.
  210.   
  211. !     The bitmaps are from Edward Groenendaal's xdtm. I cannot find
  212. !     a statement of conditions.
  213. --- 49,70 ----
  214.       The files are DirMgr.[ch], Directory.[ch], RegExp.[ch]. I
  215.       cannot find a statement of conditions.
  216.   
  217. !     The bitmaps are from xdtm.
  218. !     The statement of conditions there is:
  219. !     
  220. !     "Copyright (c) 1992 Edward Groenendaal, Ramon Santiago
  221. !     Copyright (c) 1991 Edward Groenendaal.
  222. !     
  223. !     Permission is granted to anyone to use this software for any
  224. !     purpose on any computer system, and to redistribute it freely,
  225. !     subject to the following restrictions:
  226. !     
  227. !     1. The author is not responsible for the consequences of use of
  228. !        this software, no matter how awful, even if they arise
  229. !        from defects in it.
  230. !     
  231. !     2. The origin of this software must not be misrepresented, either
  232. !        by explicit claim or by omission.
  233. !     
  234. !     3. Altered versions must be plainly marked as such, and must not
  235. !        be misrepresented as being the original software.  "
  236. diff -c -r ./applicat.c ../new/applicat.c
  237. *** ./applicat.c    Wed Nov 18 19:06:11 1992
  238. --- ../new/applicat.c    Tue Nov 24 10:44:45 1992
  239. ***************
  240. *** 1153,1159 ****
  241.       XmStringFree (xmstr);
  242.   
  243.       /* reset the name in the button info */
  244. !     XtVaGetValues (w, XmNuserData, &pbi);
  245.       pbi -> name = label;
  246.   
  247.       set_pixmap (w, label, file_type);
  248. --- 1153,1159 ----
  249.       XmStringFree (xmstr);
  250.   
  251.       /* reset the name in the button info */
  252. !     XtVaGetValues (w, XmNuserData, &pbi, NULL);
  253.       pbi -> name = label;
  254.   
  255.       set_pixmap (w, label, file_type);
  256. Common subdirectories: ./bitmaps and ../new/bitmaps
  257. diff -c -r ./copyright.h ../new/copyright.h
  258. *** ./copyright.h    Tue Nov 24 10:54:43 1992
  259. --- ../new/copyright.h    Tue Nov 17 13:08:00 1992
  260. ***************
  261. *** 0 ****
  262. --- 1,30 ----
  263. + #ifndef _XMFM_COPYRIGHT
  264. + #define _XMFM_COPYRIGHT
  265. + /*********************************************************************
  266. + Copyright (C) 1992 Jan Newmarch
  267. + Faculty of Information Sciences and Engineering
  268. + University of Canberra
  269. + PO Box 1, Belconnen 2614
  270. + ACT, Australia
  271. + email: jan@ise.canberra.edu.au
  272. +     This program is free software; you can redistribute it and/or modify
  273. +     it under the terms of the GNU General Public License as published by
  274. +     the Free Software Foundation; either version 2 of the License, or
  275. +     (at your option) any later version.
  276. +     This program is distributed in the hope that it will be useful,
  277. +     but WITHOUT ANY WARRANTY; without even the implied warranty of
  278. +     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  279. +     GNU General Public License for more details.
  280. +     You should have received a copy of the GNU General Public License
  281. +     along with this program; if not, write to the Free Software
  282. +     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  283. + *********************************************************************/
  284. + #endif /* _XMFM_COPYRIGHT */
  285. diff -c -r ./file_act.c ../new/file_act.c
  286. *** ./file_act.c    Wed Nov 18 19:06:08 1992
  287. --- ../new/file_act.c    Tue Nov 24 10:44:42 1992
  288. ***************
  289. *** 12,17 ****
  290. --- 12,21 ----
  291.    *    11 Aug 92    added description field to xmfmrc
  292.    *       Oct        input file format revised
  293.    *       3 Nov 92       lint-ed
  294. +  *    15 Nov 92    used XtResolvePathname to find app-defaults
  295. +  *    20 Nov 92    changed char ch to int ch
  296. +  *    21 Nov 92    better handling of incomplete files
  297. +  *    21 Nov 92    can get xmfmrc from resource file
  298.    ************************************************************************/ 
  299.   
  300.   #include "copyright.h"
  301. ***************
  302. *** 47,52 ****
  303. --- 51,57 ----
  304.   /*************************************************************************
  305.    * Extern variables
  306.    ************************************************************************/ 
  307. + Widget app_shell;
  308.   
  309.   /*************************************************************************
  310.    * Extern functions
  311. ***************
  312. *** 70,75 ****
  313. --- 75,83 ----
  314.   
  315.   static int line_number = 1;
  316.   
  317. + #define NOT_NULL(s)    ((s) == NULL ? \
  318. +                 syntax_error ("unexpected end of file") : True)
  319.   #define IS_TYPE(s)    (strcmp ((s), "type") == 0)
  320.   #define IS_PATTERN(s)    (strcmp ((s), "pattern") == 0)
  321.   #define IS_PIXMAP(s)    (strcmp ((s), "pixmap") == 0)
  322. ***************
  323. *** 93,120 ****
  324.   #define DEFAULT_DIR_FILTER         "*"
  325.   #define DEFAULT_EXECUTABLE_FILTER  "*"
  326.   
  327.   static Bool token_put_back = False;
  328.   
  329.   /*************************************************************************
  330.    * Function: syntax_error ()
  331.    * Purpose: complain about input errors
  332. !  * In parameters: 
  333. !  * Function returns: 
  334.    * Side effects: 
  335.    * Precondition: 
  336.    * Postcondition: false 
  337.    ************************************************************************/ 
  338. ! static void
  339.   syntax_error 
  340.   #ifdef UseFunctionPrototypes
  341. !     (void)
  342.   #else
  343. !     ()
  344.   
  345.   #endif
  346.   {
  347. !     fprintf (stderr, "syntax error in xmfmrc near line %d\n",
  348. !              line_number);
  349.   }
  350.   
  351.   /*************************************************************************
  352. --- 101,149 ----
  353.   #define DEFAULT_DIR_FILTER         "*"
  354.   #define DEFAULT_EXECUTABLE_FILTER  "*"
  355.   
  356. + /* stuff needed to extract configFile from the resource database */
  357. + typedef struct
  358. +     {String configFile;}
  359. + MyResourceType, *MyResourceTypePtr;
  360. + static    XtResource resources [] =
  361. + {    
  362. +     {    "configFile",    /* instance name */
  363. +         "ConfigFile",    /* class name */
  364. +         XmRString,    /* type */
  365. +         sizeof(String),    /* type size */
  366. +         XtOffset (MyResourceTypePtr, configFile),  /* where it is */
  367. +         XmRImmediate,    /* default follows */
  368. +         NULL        /* default value */
  369. +     }
  370. + };
  371.   static Bool token_put_back = False;
  372.   
  373.   /*************************************************************************
  374.    * Function: syntax_error ()
  375.    * Purpose: complain about input errors
  376. !  * In parameters: err_msg
  377. !  * Function returns: False
  378.    * Side effects: 
  379.    * Precondition: 
  380.    * Postcondition: false 
  381.    ************************************************************************/ 
  382. ! static Bool
  383.   syntax_error 
  384.   #ifdef UseFunctionPrototypes
  385. !     (char *err_msg)
  386.   #else
  387. !     (err_msg)
  388. !     char *err_msg;
  389.   
  390.   #endif
  391.   {
  392. !     fprintf (stderr, "syntax error in xmfmrc near line %d\n\t%s\n",
  393. !              line_number, err_msg);
  394. !     exit (1);
  395. !     /* NOTREACHED */
  396. !     return False;
  397.   }
  398.   
  399.   /*************************************************************************
  400. ***************
  401. *** 126,132 ****
  402.    * Precondition: 
  403.    * Postcondition: 
  404.    ************************************************************************/ 
  405. ! static char
  406.   GetC 
  407.   #ifdef UseFunctionPrototypes
  408.       (FILE *fp)
  409. --- 155,161 ----
  410.    * Precondition: 
  411.    * Postcondition: 
  412.    ************************************************************************/ 
  413. ! static int
  414.   GetC 
  415.   #ifdef UseFunctionPrototypes
  416.       (FILE *fp)
  417. ***************
  418. *** 135,141 ****
  419.       FILE *fp;
  420.   
  421.   #endif
  422. ! {    char ch;
  423.   
  424.       ch = getc (fp);
  425.       if (ch == '\n')
  426. --- 164,170 ----
  427.       FILE *fp;
  428.   
  429.   #endif
  430. ! {    int ch;
  431.   
  432.       ch = getc (fp);
  433.       if (ch == '\n')
  434. ***************
  435. *** 183,189 ****
  436.       FILE *fp;
  437.   
  438.   #endif
  439. ! {    char ch;
  440.       char *p = buf;
  441.   
  442.       if (token_put_back)
  443. --- 212,218 ----
  444.       FILE *fp;
  445.   
  446.   #endif
  447. ! {    int ch;
  448.       char *p = buf;
  449.   
  450.       if (token_put_back)
  451. ***************
  452. *** 246,260 ****
  453.       pfa -> pixmap = "xlogo32";  /* reasonable default */
  454.       pfa -> description = "";
  455.   
  456. !     while ( ! IS_L_BRACE(token = next_token (fp)))
  457.       {    
  458.           if (IS_TYPE (token))
  459.           {    token2 = next_token (fp);
  460.               pfa -> file_type = *token2;
  461.               continue;
  462.           }
  463.           if (IS_PATTERN (token))
  464.           {    token2 = next_token (fp);
  465.                pfa -> name_pattern =
  466.                   (char *) XtMalloc (strlen (token2) + 1);
  467.               strcpy (pfa -> name_pattern, token2);
  468. --- 275,291 ----
  469.       pfa -> pixmap = "xlogo32";  /* reasonable default */
  470.       pfa -> description = "";
  471.   
  472. !     while ( NOT_NULL (token = next_token (fp)) && ! IS_L_BRACE(token))
  473.       {    
  474.           if (IS_TYPE (token))
  475.           {    token2 = next_token (fp);
  476. +             NOT_NULL (token2);
  477.               pfa -> file_type = *token2;
  478.               continue;
  479.           }
  480.           if (IS_PATTERN (token))
  481.           {    token2 = next_token (fp);
  482. +             NOT_NULL (token2);
  483.                pfa -> name_pattern =
  484.                   (char *) XtMalloc (strlen (token2) + 1);
  485.               strcpy (pfa -> name_pattern, token2);
  486. ***************
  487. *** 262,267 ****
  488. --- 293,299 ----
  489.           }
  490.           if (IS_PIXMAP (token))
  491.           {    token2 = next_token (fp);
  492. +             NOT_NULL (token2);
  493.               pfa -> pixmap = (char *) XtMalloc (strlen (token2) + 1);
  494.               strcpy (pfa -> pixmap, token2);
  495.               continue;
  496. ***************
  497. *** 268,278 ****
  498.           }
  499.           if (IS_DESCRIPTION (token))
  500.           {    token2 = next_token (fp);
  501.               pfa -> description = (char *) XtMalloc (strlen (token2) + 1);
  502.               strcpy (pfa -> description, token2);
  503.               continue;
  504.           }
  505. !         syntax_error ();
  506.       }
  507.       /* this will have swallowed up the left brace for the first file
  508.          action. put it back for later use */
  509. --- 300,311 ----
  510.           }
  511.           if (IS_DESCRIPTION (token))
  512.           {    token2 = next_token (fp);
  513. +             NOT_NULL (token2);
  514.               pfa -> description = (char *) XtMalloc (strlen (token2) + 1);
  515.               strcpy (pfa -> description, token2);
  516.               continue;
  517.           }
  518. !         syntax_error ("illegal token in file description");
  519.       }
  520.       /* this will have swallowed up the left brace for the first file
  521.          action. put it back for later use */
  522. ***************
  523. *** 279,286 ****
  524.       unget_next_token ();
  525.   
  526.       /* each action is { ... } delimited */
  527. !     while (IS_L_BRACE (next_token (fp)))   /* stops on closing R_BRACE */
  528.       {    
  529.           if (pfa -> actions == NULL)
  530.               pfa -> actions = 
  531.               pap = (action_pair *) XtMalloc (sizeof (action_pair));
  532. --- 312,321 ----
  533.       unget_next_token ();
  534.   
  535.       /* each action is { ... } delimited */
  536. !     while (NOT_NULL (token = next_token (fp)) && IS_L_BRACE (token))
  537. !     /* stops on closing R_BRACE */
  538.       {    
  539. +         /* add action to linked list */
  540.           if (pfa -> actions == NULL)
  541.               pfa -> actions = 
  542.               pap = (action_pair *) XtMalloc (sizeof (action_pair));
  543. ***************
  544. *** 298,303 ****
  545. --- 333,339 ----
  546.                   !IS_R_BRACE (token))
  547.           {    if (IS_LABEL (token))
  548.               {    token2 = next_token (fp);
  549. +                 NOT_NULL (token2);
  550.                   pap -> action_label = 
  551.                       (char *) XtMalloc (strlen (token2) + 1);
  552.                   strcpy (pap -> action_label, token2);
  553. ***************
  554. *** 313,318 ****
  555. --- 349,355 ----
  556.               }
  557.               if (IS_ACTION (token))
  558.               {    token2 = next_token (fp);
  559. +                 NOT_NULL (token2);
  560.                    pap -> action =
  561.                       (char *) XtMalloc (strlen (token2) + 1);
  562.                   strcpy (pap -> action, token2);
  563. ***************
  564. *** 320,325 ****
  565. --- 357,363 ----
  566.               }
  567.               if (IS_PROMPT (token))
  568.               {    token2 = next_token (fp);
  569. +                 NOT_NULL (token2);
  570.                    pap -> prompt =
  571.                       (char *) XtMalloc (strlen (token2) + 1);
  572.                   strcpy (pap -> prompt, token2);
  573. ***************
  574. *** 326,332 ****
  575.                   pap -> has_prompt = True;
  576.                   continue;
  577.               }
  578. !             syntax_error ();
  579.           }
  580.       }
  581.       pap -> next = NULL;
  582. --- 364,370 ----
  583.                   pap -> has_prompt = True;
  584.                   continue;
  585.               }
  586. !             syntax_error ("illegal token in file action");
  587.           }
  588.       }
  589.       pap -> next = NULL;
  590. ***************
  591. *** 379,388 ****
  592.   
  593.   /*************************************************************************
  594.    * Function: OpenXmfmrc ()
  595. !  * Purpose: open the xmfmrc file from HOME or app-defaults
  596.    * In parameters:
  597.    * Function returns: file pointer to xmfmrc file
  598. !  * Precondition: $HOME/.xmfmrc or app-defaults/xmfmrc exist
  599.    * Postcondition: file is parsed and files + actions lists built
  600.    ************************************************************************/ 
  601.   FILE *
  602. --- 417,426 ----
  603.   
  604.   /*************************************************************************
  605.    * Function: OpenXmfmrc ()
  606. !  * Purpose: open the xmfmrc file from configFile HOME or app-defaults
  607.    * In parameters:
  608.    * Function returns: file pointer to xmfmrc file
  609. !  * Precondition: configFile or $HOME/.xmfmrc or app-defaults/xmfmrc exist
  610.    * Postcondition: file is parsed and files + actions lists built
  611.    ************************************************************************/ 
  612.   FILE *
  613. ***************
  614. *** 396,405 ****
  615. --- 434,461 ----
  616.   #endif
  617.   {    FILE *fp;
  618.       char *path;
  619. +     MyResourceType myresources;
  620.   
  621.       char *home_dir;
  622.       char xmfmrc[MAXPATHLEN];
  623.   
  624. +     /* look for the file first in the resource database */
  625. +     XtGetApplicationResources (app_shell,
  626. +             &myresources,
  627. +             resources,
  628. +             XtNumber (resources),
  629. +             NULL,
  630. +             0);
  631. +     if (myresources.configFile != NULL)
  632. +     {    if ((fp = fopen (myresources.configFile, "r")) != NULL)
  633. +             return fp;
  634. +         /* complain if not found */
  635. +         else
  636. +             fprintf (stderr, "can't open configuration file %s\n",
  637. +                 myresources.configFile);
  638. +     }
  639. +     /* try $HOME/.xmfmrc */
  640.       if ((home_dir = getenv ("HOME")) != NULL)
  641.       {    strcpy (xmfmrc, home_dir);
  642.           strcat (xmfmrc, "/.xmfmrc");
  643. ***************
  644. *** 459,465 ****
  645.       dpi -> dir_filter = DEFAULT_DIR_FILTER;
  646.       dpi -> executable_filter = DEFAULT_EXECUTABLE_FILTER;
  647.   
  648. !     while ( ! IS_L_BRACE(token = next_token (fp)))
  649.       {    if (IS_FILE_FILTER (token))
  650.           {    token = next_token (fp);
  651.               dpi -> file_filter = XtMalloc (strlen (token) + 1);
  652. --- 515,521 ----
  653.       dpi -> dir_filter = DEFAULT_DIR_FILTER;
  654.       dpi -> executable_filter = DEFAULT_EXECUTABLE_FILTER;
  655.   
  656. !     while ( NOT_NULL (token = next_token (fp)) && ! IS_L_BRACE(token))
  657.       {    if (IS_FILE_FILTER (token))
  658.           {    token = next_token (fp);
  659.               dpi -> file_filter = XtMalloc (strlen (token) + 1);
  660. ***************
  661. *** 478,484 ****
  662.               strcpy (dpi -> executable_filter, token);
  663.               continue;
  664.           }
  665. !         syntax_error ();
  666.       }
  667.   
  668.       /* this will have swallowed up the left brace for the first file
  669. --- 534,540 ----
  670.               strcpy (dpi -> executable_filter, token);
  671.               continue;
  672.           }
  673. !         syntax_error ("illegal token in preamble");
  674.       }
  675.   
  676.       /* this will have swallowed up the left brace for the first file
  677. diff -c -r ./filtercb.c ../new/filtercb.c
  678. *** ./filtercb.c    Wed Nov 18 19:06:08 1992
  679. --- ../new/filtercb.c    Tue Nov 24 10:44:42 1992
  680. ***************
  681. *** 9,14 ****
  682. --- 9,15 ----
  683.    * Revision history:
  684.    *    16 Oct 92    caddr_t changed to XtPointer
  685.    *       3 Nov 92       lint-ed
  686. +  *    21 Nov 92    fixed crash on cancelling filter dialog
  687.    ************************************************************************/ 
  688.   
  689.   #include "copyright.h"
  690. ***************
  691. *** 168,173 ****
  692. --- 169,175 ----
  693.   #endif
  694.   {    dir_pane_info *dpi;
  695.           char regexp[FSM_LENGTH]; 
  696. +     char *filter;
  697.   
  698.       XtVaGetValues (w, XmNuserData, &dpi, NULL);
  699.   
  700. ***************
  701. *** 176,182 ****
  702.       XtFree (dpi -> file_filter_regexp);
  703.   */
  704.   
  705. !     PromptDialog (w, "File filter", True, &(dpi -> file_filter));
  706.   
  707.       RegExpPatternToRegExp (dpi -> file_filter, regexp);
  708.       RegExpCompile (regexp, dpi -> file_filter_regexp, FSM_LENGTH);
  709. --- 178,187 ----
  710.       XtFree (dpi -> file_filter_regexp);
  711.   */
  712.   
  713. !     PromptDialog (w, "File filter", True, &filter);
  714. !     if (filter == NULL)
  715. !         return;        /* dialog cancelled */
  716. !     dpi -> file_filter = filter;
  717.   
  718.       RegExpPatternToRegExp (dpi -> file_filter, regexp);
  719.       RegExpCompile (regexp, dpi -> file_filter_regexp, FSM_LENGTH);
  720. ***************
  721. *** 214,221 ****
  722.   #endif
  723.   {    dir_pane_info *dpi;
  724.           char regexp[FSM_LENGTH]; 
  725.   
  726.       XtVaGetValues (w, XmNuserData, &dpi, NULL);
  727.   
  728.   /*
  729. --- 219,226 ----
  730.   #endif
  731.   {    dir_pane_info *dpi;
  732.           char regexp[FSM_LENGTH]; 
  733. +     char *filter;
  734.   
  735.       XtVaGetValues (w, XmNuserData, &dpi, NULL);
  736.   
  737.   /*
  738. ***************
  739. *** 223,229 ****
  740.       XtFree (dpi -> dir_filter_regexp);
  741.   */
  742.   
  743. !     PromptDialog (w, "Directory filter", True, &(dpi -> dir_filter));
  744.   
  745.       RegExpPatternToRegExp (dpi -> dir_filter, regexp);
  746.       RegExpCompile (regexp, dpi -> dir_filter_regexp, FSM_LENGTH);
  747. --- 228,237 ----
  748.       XtFree (dpi -> dir_filter_regexp);
  749.   */
  750.   
  751. !     PromptDialog (w, "Directory filter", True, &filter);
  752. !     if (filter == NULL)
  753. !         return;        /* dialog cancelled */
  754. !     dpi -> dir_filter = filter;
  755.   
  756.       RegExpPatternToRegExp (dpi -> dir_filter, regexp);
  757.       RegExpCompile (regexp, dpi -> dir_filter_regexp, FSM_LENGTH);
  758. ***************
  759. *** 263,268 ****
  760. --- 271,277 ----
  761.   #endif
  762.   {    dir_pane_info *dpi;
  763.           char regexp[FSM_LENGTH]; 
  764. +     char *filter;
  765.   
  766.       XtVaGetValues (w, XmNuserData, &dpi, NULL);
  767.   
  768. ***************
  769. *** 272,278 ****
  770.           */
  771.   
  772.       PromptDialog (w, "Executable filter", True,
  773. !             &(dpi -> executable_filter));
  774.   
  775.       RegExpPatternToRegExp (dpi -> executable_filter, regexp);
  776.       RegExpCompile (regexp, dpi -> executable_filter_regexp, FSM_LENGTH);
  777. --- 281,290 ----
  778.           */
  779.   
  780.       PromptDialog (w, "Executable filter", True,
  781. !             &filter);
  782. !     if (filter == NULL)
  783. !         return;        /* dialog cancelled */
  784. !     dpi -> executable_filter = filter;
  785.   
  786.       RegExpPatternToRegExp (dpi -> executable_filter, regexp);
  787.       RegExpCompile (regexp, dpi -> executable_filter_regexp, FSM_LENGTH);
  788. diff -c -r ./gotocb.c ../new/gotocb.c
  789. *** ./gotocb.c    Wed Nov 18 19:06:06 1992
  790. --- ../new/gotocb.c    Tue Nov 24 10:44:40 1992
  791. ***************
  792. *** 9,14 ****
  793. --- 9,15 ----
  794.    * Revision history:
  795.    *    16 Oct 92    caddr_t changed to XtPointer
  796.    *       3 Nov 92       lint-ed
  797. +  *    24 Nov 92    removed core-dumping XtFree (home_dir)
  798.    ************************************************************************/ 
  799.   
  800.   #include "copyright.h"
  801. ***************
  802. *** 121,127 ****
  803.               XmNuserData, (XtArgVal) &dpi,
  804.               NULL);
  805.       builtin_chdir (home_dir, dpi);
  806. -     XtFree (home_dir);
  807.   }
  808.    
  809.   /*************************************************************************
  810. --- 122,127 ----
  811. ***************
  812. *** 191,197 ****
  813.               XmNuserData, (XtArgVal) &dpi,
  814.               NULL);
  815.       builtin_opendir (home_dir, dpi);
  816. -     XtFree (home_dir);
  817.   }
  818.    
  819.   /*************************************************************************
  820. --- 191,196 ----
  821. diff -c -r ./help_mes.c ../new/help_mes.c
  822. *** ./help_mes.c    Wed Nov 18 19:02:07 1992
  823. --- ../new/help_mes.c    Mon Nov 23 09:11:07 1992
  824. ***************
  825. *** 51,57 ****
  826.   /*    This is the text for the application help button in the main menu
  827.   */
  828.   char help_applic_text[] = 
  829. ! "xmfm is a file manager, that displays files in a directory.\n\
  830.   The screen is divided into buttons on the left signalling\n\
  831.   actions that you can perform on files, and three panes on\n\
  832.   the right containing executable files, ordinary files and\n\
  833. --- 51,57 ----
  834.   /*    This is the text for the application help button in the main menu
  835.   */
  836.   char help_applic_text[] = 
  837. ! "xmfm is a file manager that displays files in a directory.\n\
  838.   The screen is divided into buttons on the left signalling\n\
  839.   actions that you can perform on files, and three panes on\n\
  840.   the right containing executable files, ordinary files and\n\
  841. ***************
  842. *** 81,87 ****
  843.   /*    This is the text for the mouse help button in the main menu
  844.   */
  845.   char help_mouse_text[] =  
  846. ! "Select a file by clickin on it.\n\
  847.   Select an action by clicking on it.\n\
  848.   Double click on a file to get the\n\
  849.   default action (the first one).\n\
  850. --- 81,87 ----
  851.   /*    This is the text for the mouse help button in the main menu
  852.   */
  853.   char help_mouse_text[] =  
  854. ! "Select a file by clicking on it.\n\
  855.   Select an action by clicking on it.\n\
  856.   Double click on a file to get the\n\
  857.   default action (the first one).\n\
  858. ***************
  859. *** 111,117 ****
  860.   "The Meta key is the `diamond' key either\n\
  861.   side of the space bar. Press this in conjunction\n\
  862.   with ordinary keys to get hot-key menu actions.\n\
  863. ! For example, Meta+H move to you Home directory.\n\
  864.   \n\
  865.   Press F1 to get context sensitive help\n\
  866.   on any part of xmfm (not implemented)\n\
  867. --- 111,117 ----
  868.   "The Meta key is the `diamond' key either\n\
  869.   side of the space bar. Press this in conjunction\n\
  870.   with ordinary keys to get hot-key menu actions.\n\
  871. ! For example, Meta+H moves to you Home directory.\n\
  872.   \n\
  873.   Press F1 to get context sensitive help\n\
  874.   on any part of xmfm (not implemented)\n\
  875. ***************
  876. *** 119,125 ****
  877.   
  878.   char help_about_text[] = "\
  879.     xmfm (X/Motif file manager)\n\
  880. !          Version 1.6\n\
  881.    Copyright 1992 J.D. Newmarch\n\
  882.   email: jan@ise.canberra.edu.au";
  883.   
  884. --- 119,125 ----
  885.   
  886.   char help_about_text[] = "\
  887.     xmfm (X/Motif file manager)\n\
  888. !          Version 1.7\n\
  889.    Copyright 1992 J.D. Newmarch\n\
  890.   email: jan@ise.canberra.edu.au";
  891.   
  892. diff -c -r ./main.c ../new/main.c
  893. *** ./main.c    Wed Nov 18 19:06:14 1992
  894. --- ../new/main.c    Tue Nov 24 10:44:56 1992
  895. ***************
  896. *** 9,14 ****
  897. --- 9,15 ----
  898.    * Revision history:
  899.    *    16 Oct 92    caddr_t changed to XtPointer
  900.    *       3 Nov 92       lint-ed
  901. +  *    21 Nov 92    added icon pixmap
  902.    ************************************************************************/ 
  903.   
  904.   #include "copyright.h"
  905. ***************
  906. *** 28,33 ****
  907. --- 29,35 ----
  908.    ************************************************************************/ 
  909.   #include "const.h"
  910.   #include "types.h"
  911. + #include "xmfm_icon.h"
  912.   
  913.   #ifdef RDD
  914.   #include "rdd.h"
  915. ***************
  916. *** 124,131 ****
  917.    
  918.   #define Class_name "XmFm" 
  919.    
  920. ! static Widget    app_shell;    /*  ApplicationShell    */ 
  921.   
  922.   /*************************************************************************
  923.    * Function: fatal()
  924.    * Purpose: report a fatal error and giveup
  925. --- 126,138 ----
  926.    
  927.   #define Class_name "XmFm" 
  928.    
  929. ! Widget    app_shell;    /*  ApplicationShell    */ 
  930.   
  931. + static XrmOptionDescRec myoptions[] =
  932. +     {
  933. +         {"-configFile", "configFile", XrmoptionSepArg, NULL}
  934. +     };
  935.   /*************************************************************************
  936.    * Function: fatal()
  937.    * Purpose: report a fatal error and giveup
  938. ***************
  939. *** 329,334 ****
  940. --- 336,343 ----
  941.   {     
  942.       Widget        applic_widget;
  943.       dir_pane_info *dpi;
  944. +     Pixmap        icon_pixmap; 
  945.   #ifdef RDD
  946.   /*
  947.    * RDD
  948. ***************
  949. *** 353,362 ****
  950.        app_shell = XtInitialize(
  951.                NULL,         /* application name */    
  952.                  Class_name,     /* class name */    
  953. !                NULL,         /* options */    
  954. !                0,        /* number of options */    
  955.                  &argc, argv);
  956.       app_context = XtWidgetToApplicationContext (app_shell);
  957.         
  958.   #    ifdef DEBUG_MAIN
  959.           fprintf(stderr, "Initialised toolkit\n");
  960. --- 362,377 ----
  961.        app_shell = XtInitialize(
  962.                NULL,         /* application name */    
  963.                  Class_name,     /* class name */    
  964. !                myoptions,         /* options */    
  965. !                XtNumber (myoptions),    /* number of options */    
  966.                  &argc, argv);
  967.       app_context = XtWidgetToApplicationContext (app_shell);
  968. +     /* set the icon pixmap */
  969. +     icon_pixmap = XCreateBitmapFromData(XtDisplay(app_shell),
  970. +             RootWindowOfScreen(XtScreen(app_shell)),
  971. +             xmfm_bits, xmfm_width, xmfm_height);
  972. +     XtVaSetValues(app_shell, XmNiconPixmap, icon_pixmap, NULL);
  973.         
  974.   #    ifdef DEBUG_MAIN
  975.           fprintf(stderr, "Initialised toolkit\n");
  976. diff -c -r ./patchlevel.h ../new/patchlevel.h
  977. *** ./patchlevel.h    Tue Nov 24 10:54:44 1992
  978. --- ../new/patchlevel.h    Mon Nov 23 09:10:39 1992
  979. ***************
  980. *** 0 ****
  981. --- 1 ----
  982. + 1.7
  983. diff -c -r ./pauseme ../new/pauseme
  984. *** ./pauseme    Tue Nov 24 10:54:43 1992
  985. --- ../new/pauseme    Sat Nov 21 13:23:24 1992
  986. ***************
  987. *** 0 ****
  988. --- 1,5 ----
  989. + #!/bin/sh
  990. + # execute a command and pause afterwards
  991. + command="$*; echo 'Press <return> to continue'"
  992. + eval $command
  993. + read x
  994. Only in ../new: testdir.c
  995. diff -c -r ./utils.c ../new/utils.c
  996. *** ./utils.c    Wed Nov 18 19:06:04 1992
  997. --- ../new/utils.c    Tue Nov 24 10:44:39 1992
  998. ***************
  999. *** 235,241 ****
  1000. --- 235,244 ----
  1001.       {
  1002.           strcpy (warning, "cannot chdir to ");
  1003.           strcat (warning, dir);
  1004. + /*
  1005.           ErrorDialog (warning);
  1006. + */
  1007. +         fprintf (stderr, "%s\n", warning);
  1008.           return False;
  1009.       }
  1010.       return True;
  1011. diff -c -r ./xmfm.man ../new/xmfm.man
  1012. *** ./xmfm.man    Fri Oct 16 16:29:47 1992
  1013. --- ../new/xmfm.man    Mon Nov 23 12:30:27 1992
  1014. ***************
  1015. *** 11,16 ****
  1016. --- 11,19 ----
  1017.   .in +8n
  1018.   .ti -8n
  1019.   .I xmfm
  1020. + [-configFile
  1021. + .I configFile
  1022. + ]
  1023.   [X\ Toolkit\ options]
  1024.   .in -8n
  1025.   .ad
  1026. ***************
  1027. *** 61,66 ****
  1028. --- 64,78 ----
  1029.   Set the foreground colour.
  1030.   .IP "\fB-background\fP colour"
  1031.   Set the background colour.
  1032. + .PP
  1033. + In addition the
  1034. + .I configFile
  1035. + option allows the user to choose a configuration file to replace the
  1036. + .I .xmfmrc
  1037. + file.
  1038. + This can be used (for example) to test local changes to 
  1039. + .I .xmfmrc
  1040. + before installing it.
  1041.   .SH "CUSTOMIZING XMFM"
  1042.   .PP
  1043.   .I Xmfm
  1044. ***************
  1045. *** 86,93 ****
  1046.   These icons must be in directories accessible from the
  1047.   .I XmGetPixmap()
  1048.   function call.
  1049. ! See the
  1050. ! .I "Motif Programmers Reference Manual
  1051.   
  1052.   .SH "Widget Hierarchy"
  1053.   .PP
  1054. --- 98,165 ----
  1055.   These icons must be in directories accessible from the
  1056.   .I XmGetPixmap()
  1057.   function call.
  1058. ! See the next section on bitmaps.
  1059. ! .SH "Bitmaps
  1060. ! .PP
  1061. ! The location of the bitmaps used in 
  1062. ! .I xmfm
  1063. ! is controlled by the environment variables \fBXBMLANGPATH\fP and
  1064. ! \fBXAPPLRESDIR\fP. If the variable \fBXBMLANGPATH\fP is set to a
  1065. ! path-name followed by %B, bitmaps will be searched for in that path.
  1066. ! For example (using the C shell syntax)
  1067. ! .ta 8,12,16,20,24,28,32,36,40
  1068. ! .na
  1069. ! .nf
  1070. !     setenv XBMLANGPATH /usr/usrs/jan/bitmaps/%B
  1071. ! .fi
  1072. ! .ad
  1073. ! If this is not set but the environment variable \fBXAPPLRESDIR\fP is set,
  1074. ! the following paths are searched:
  1075. ! .ta 1i
  1076. ! .na
  1077. ! .nf
  1078. !         $XAPPLRESDIR/%L/bitmaps/XmFm
  1079. !         $XAPPLRESDIR/%l/bitmaps/XmFm
  1080. !         $XAPPLRESDIR/bitmaps/XmFm
  1081. !         $XAPPLRESDIR/%L/bitmaps
  1082. !         $XAPPLRESDIR/%l/bitmaps
  1083. !         $XAPPLRESDIR/bitmaps
  1084. !         $HOME/bitmaps
  1085. !         $HOME
  1086. !         /usr/lib/X11/%L/bitmaps/XmFm
  1087. !         /usr/lib/X11/%l/bitmaps/XmFm
  1088. !         /usr/lib/X11/bitmaps/XmFm
  1089. !         /usr/lib/X11/%L/bitmaps
  1090. !         /usr/lib/X11/%l/bitmaps
  1091. !         /usr/lib/X11/bitmaps
  1092. ! .fi
  1093. ! .ad
  1094. ! If neither is set, the following paths are searched
  1095. ! .ta 1i
  1096. ! .na
  1097. ! .nf
  1098. !         $HOME/%L/bitmaps/XmFm
  1099. !         $HOME/%l/bitmaps/XmFm
  1100. !         $HOME/bitmaps/XmFm
  1101. !         $HOME/%L/bitmaps
  1102. !         $HOME/%l/bitmaps
  1103. !         $HOME/bitmaps
  1104. !         $HOME
  1105. !         /usr/lib/X11/%L/bitmaps/XmFm
  1106. !         /usr/lib/X11/%l/bitmaps/XmFm
  1107. !         /usr/lib/X11/bitmaps/XmFm
  1108. !         /usr/lib/X11/%L/bitmaps
  1109. !         /usr/lib/X11/%l/bitmaps
  1110. !         /usr/lib/X11/bitmaps
  1111. !         /usr/include/X11/bitmaps
  1112. ! .fi
  1113. ! .ad
  1114. ! These paths are defaults that a vendor may have changed.
  1115. ! Here %L is the display's language string, and %l is the language
  1116. ! component of the display's language string.
  1117.   
  1118.   .SH "Widget Hierarchy"
  1119.   .PP
  1120. diff -c -r ./xmfm_icon.h ../new/xmfm_icon.h
  1121. *** ./xmfm_icon.h    Tue Nov 24 10:54:43 1992
  1122. --- ../new/xmfm_icon.h    Mon Nov 23 09:30:49 1992
  1123. ***************
  1124. *** 0 ****
  1125. --- 1,14 ----
  1126. + #define xmfm_width 32
  1127. + #define xmfm_height 32
  1128. + static char xmfm_bits[] = {
  1129. +    0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x00, 0x00, 0x20, 0x00, 0x01,
  1130. +    0x00, 0x00, 0x00, 0x02, 0x00, 0xfc, 0x1f, 0x04, 0x00, 0x04, 0x20, 0x08,
  1131. +    0x00, 0x00, 0x40, 0x08, 0x80, 0xff, 0x83, 0x08, 0x80, 0x00, 0x04, 0x09,
  1132. +    0x00, 0x00, 0x08, 0x09, 0xf0, 0x7f, 0x10, 0x09, 0x10, 0x80, 0x20, 0x09,
  1133. +    0x10, 0x00, 0x21, 0x09, 0x10, 0x00, 0x22, 0x09, 0x10, 0x00, 0x24, 0x09,
  1134. +    0x10, 0x00, 0x24, 0x09, 0x10, 0x00, 0x24, 0x09, 0x10, 0x00, 0x24, 0x09,
  1135. +    0x10, 0x00, 0x24, 0x09, 0x10, 0x00, 0x24, 0x09, 0x10, 0x00, 0x24, 0x09,
  1136. +    0x10, 0x00, 0x24, 0x0d, 0x10, 0x00, 0x24, 0x01, 0x10, 0x00, 0x24, 0x01,
  1137. +    0x10, 0x00, 0x24, 0x01, 0x10, 0x00, 0xa4, 0x01, 0x10, 0x00, 0x24, 0x00,
  1138. +    0x10, 0x00, 0x24, 0x00, 0x10, 0x00, 0x34, 0x00, 0x10, 0x00, 0x04, 0x00,
  1139. +    0x10, 0x00, 0x04, 0x00, 0xf0, 0xff, 0x07, 0x00};
  1140. diff -c -r ./xmfmrc ../new/xmfmrc
  1141. *** ./xmfmrc    Tue Nov 17 17:22:38 1992
  1142. --- ../new/xmfmrc    Mon Nov 23 09:55:01 1992
  1143. ***************
  1144. *** 17,22 ****
  1145. --- 17,23 ----
  1146.       }
  1147.       {
  1148.           label    edit
  1149. +         run_in_xterm
  1150.           action    "vi $0"
  1151.       }
  1152.           {       label    print
  1153. ***************
  1154. *** 30,35 ****
  1155. --- 31,37 ----
  1156.           description "C source code"
  1157.       {
  1158.           label    edit
  1159. +         run_in_xterm
  1160.           action    "vi $0"
  1161.       }
  1162.       {
  1163. ***************
  1164. *** 162,167 ****
  1165. --- 164,170 ----
  1166.       pixmap    file.xbm
  1167.       {
  1168.           label    edit
  1169. +         run_in_xterm
  1170.           action    "vi $0"
  1171.       }
  1172.       {
  1173. diff -c -r ./xmvararg.c ../new/xmvararg.c
  1174. *** ./xmvararg.c    Wed Nov 18 19:06:13 1992
  1175. --- ../new/xmvararg.c    Tue Nov 24 10:44:55 1992
  1176. ***************
  1177. *** 16,22 ****
  1178. --- 16,26 ----
  1179.    * System includes
  1180.    ************************************************************************/ 
  1181.   #include <stdio.h>
  1182. + #ifdef UseFunctionPrototypes
  1183. + #include <stdarg.h>
  1184. + #else
  1185.   #include <varargs.h>
  1186. + #endif
  1187.   #include <X11/StringDefs.h>
  1188.   #include <X11/Intrinsic.h>
  1189.   #include <Xm/Xm.h>
  1190. ***************
  1191. *** 50,55 ****
  1192. --- 54,61 ----
  1193.    * Local includes
  1194.    ************************************************************************/ 
  1195.   
  1196. + #include "xmvararg.h"
  1197.   /*************************************************************************
  1198.    * Functions exported
  1199.    ************************************************************************/ 
  1200. ***************
  1201. *** 169,175 ****
  1202. --- 175,183 ----
  1203.   #endif
  1204.   {    register int n;
  1205.   
  1206. + #ifndef UseFunctionPrototypes
  1207.       parent = va_arg(args, Widget);
  1208. + #endif
  1209.       name = va_arg(args, String);
  1210.   
  1211.       for (n = 0; n < NXARGS; ++n)
  1212. ***************
  1213. *** 212,218 ****
  1214.   
  1215.       register int    n;
  1216.   
  1217. !     va_start(args);
  1218.       name = va_arg(args, String);
  1219.       class = va_arg(args, String);
  1220.       parent = va_arg(args, Widget);
  1221. --- 220,226 ----
  1222.   
  1223.       register int    n;
  1224.   
  1225. !     Va_start (args, parent);
  1226.       name = va_arg(args, String);
  1227.       class = va_arg(args, String);
  1228.       parent = va_arg(args, Widget);
  1229. ***************
  1230. *** 239,245 ****
  1231.       Widget        w;
  1232.       register int    n;
  1233.   
  1234. !     va_start(args);
  1235.       w = va_arg(args, Widget);
  1236.   
  1237.       n = SetArgs();
  1238. --- 247,253 ----
  1239.       Widget        w;
  1240.       register int    n;
  1241.   
  1242. !     Va_start (args, parent);
  1243.       w = va_arg(args, Widget);
  1244.   
  1245.       n = SetArgs();
  1246. ***************
  1247. *** 264,270 ****
  1248.       register int     n;
  1249.       Widget        w;
  1250.   
  1251. !     va_start(args);
  1252.       w = va_arg(args, Widget);
  1253.   
  1254.       n = SetArgs();
  1255. --- 272,278 ----
  1256.       register int     n;
  1257.       Widget        w;
  1258.   
  1259. !     Va_start (args, parent);
  1260.       w = va_arg(args, Widget);
  1261.   
  1262.       n = SetArgs();
  1263. ***************
  1264. *** 294,300 ****
  1265.   Widget
  1266.   XmVaCreateArrowButton
  1267.   #ifdef UseFunctionPrototypes
  1268. !     (int __builtin_va_alist)
  1269.   #else
  1270.       (va_alist)
  1271.   va_dcl
  1272. --- 302,308 ----
  1273.   Widget
  1274.   XmVaCreateArrowButton
  1275.   #ifdef UseFunctionPrototypes
  1276. !     (Widget parent, ...)
  1277.   #else
  1278.       (va_alist)
  1279.   va_dcl
  1280. ***************
  1281. *** 303,309 ****
  1282.   {
  1283.       register int    n;
  1284.   
  1285. !     va_start(args);
  1286.   
  1287.       n = SetNameArgs();
  1288.   
  1289. --- 311,317 ----
  1290.   {
  1291.       register int    n;
  1292.   
  1293. !     Va_start (args, parent);
  1294.   
  1295.       n = SetNameArgs();
  1296.   
  1297. ***************
  1298. *** 327,333 ****
  1299.   Widget
  1300.   XmVaCreateBulletinBoard
  1301.   #ifdef UseFunctionPrototypes
  1302. !     (int __builtin_va_alist)
  1303.   #else
  1304.       (va_alist)
  1305.   va_dcl
  1306. --- 335,341 ----
  1307.   Widget
  1308.   XmVaCreateBulletinBoard
  1309.   #ifdef UseFunctionPrototypes
  1310. !     (Widget parent, ...)
  1311.   #else
  1312.       (va_alist)
  1313.   va_dcl
  1314. ***************
  1315. *** 336,342 ****
  1316.   {
  1317.       register int    n;
  1318.   
  1319. !     va_start(args);
  1320.   
  1321.       n = SetNameArgs();
  1322.   
  1323. --- 344,350 ----
  1324.   {
  1325.       register int    n;
  1326.   
  1327. !     Va_start (args, parent);
  1328.   
  1329.       n = SetNameArgs();
  1330.   
  1331. ***************
  1332. *** 360,366 ****
  1333.   Widget
  1334.   XmVaCreateCascadeButton
  1335.   #ifdef UseFunctionPrototypes
  1336. !     (int __builtin_va_alist)
  1337.   #else
  1338.       (va_alist)
  1339.   va_dcl
  1340. --- 368,374 ----
  1341.   Widget
  1342.   XmVaCreateCascadeButton
  1343.   #ifdef UseFunctionPrototypes
  1344. !     (Widget parent, ...)
  1345.   #else
  1346.       (va_alist)
  1347.   va_dcl
  1348. ***************
  1349. *** 369,375 ****
  1350.   {
  1351.       register int    n;
  1352.   
  1353. !     va_start(args);
  1354.   
  1355.       n = SetNameArgs();
  1356.   
  1357. --- 377,383 ----
  1358.   {
  1359.       register int    n;
  1360.   
  1361. !     Va_start (args, parent);
  1362.   
  1363.       n = SetNameArgs();
  1364.   
  1365. ***************
  1366. *** 393,399 ****
  1367.   Widget
  1368.   XmVaCreateCommand
  1369.   #ifdef UseFunctionPrototypes
  1370. !     (int __builtin_va_alist)
  1371.   #else
  1372.       (va_alist)
  1373.   va_dcl
  1374. --- 401,407 ----
  1375.   Widget
  1376.   XmVaCreateCommand
  1377.   #ifdef UseFunctionPrototypes
  1378. !     (Widget parent, ...)
  1379.   #else
  1380.       (va_alist)
  1381.   va_dcl
  1382. ***************
  1383. *** 402,408 ****
  1384.   {
  1385.       register int    n;
  1386.   
  1387. !     va_start(args);
  1388.   
  1389.       n = SetNameArgs();
  1390.   
  1391. --- 410,416 ----
  1392.   {
  1393.       register int    n;
  1394.   
  1395. !     Va_start (args, parent);
  1396.   
  1397.       n = SetNameArgs();
  1398.   
  1399. ***************
  1400. *** 426,432 ****
  1401.   Widget
  1402.   XmVaCreateDialogShell
  1403.   #ifdef UseFunctionPrototypes
  1404. !     (int __builtin_va_alist)
  1405.   #else
  1406.       (va_alist)
  1407.   va_dcl
  1408. --- 434,440 ----
  1409.   Widget
  1410.   XmVaCreateDialogShell
  1411.   #ifdef UseFunctionPrototypes
  1412. !     (Widget parent, ...)
  1413.   #else
  1414.       (va_alist)
  1415.   va_dcl
  1416. ***************
  1417. *** 435,441 ****
  1418.   {
  1419.       register int    n;
  1420.   
  1421. !     va_start(args);
  1422.   
  1423.       n = SetNameArgs();
  1424.   
  1425. --- 443,449 ----
  1426.   {
  1427.       register int    n;
  1428.   
  1429. !     Va_start (args, parent);
  1430.   
  1431.       n = SetNameArgs();
  1432.   
  1433. ***************
  1434. *** 459,465 ****
  1435.   Widget
  1436.   XmVaCreateDrawingArea
  1437.   #ifdef UseFunctionPrototypes
  1438. !     (int __builtin_va_alist)
  1439.   #else
  1440.       (va_alist)
  1441.   va_dcl
  1442. --- 467,473 ----
  1443.   Widget
  1444.   XmVaCreateDrawingArea
  1445.   #ifdef UseFunctionPrototypes
  1446. !     (Widget parent, ...)
  1447.   #else
  1448.       (va_alist)
  1449.   va_dcl
  1450. ***************
  1451. *** 468,474 ****
  1452.   {
  1453.       register int    n;
  1454.   
  1455. !     va_start(args);
  1456.   
  1457.       n = SetNameArgs();
  1458.   
  1459. --- 476,482 ----
  1460.   {
  1461.       register int    n;
  1462.   
  1463. !     Va_start (args, parent);
  1464.   
  1465.       n = SetNameArgs();
  1466.   
  1467. ***************
  1468. *** 492,498 ****
  1469.   Widget
  1470.   XmVaCreateDrawnButton
  1471.   #ifdef UseFunctionPrototypes
  1472. !     (int __builtin_va_alist)
  1473.   #else
  1474.       (va_alist)
  1475.   va_dcl
  1476. --- 500,506 ----
  1477.   Widget
  1478.   XmVaCreateDrawnButton
  1479.   #ifdef UseFunctionPrototypes
  1480. !     (Widget parent, ...)
  1481.   #else
  1482.       (va_alist)
  1483.   va_dcl
  1484. ***************
  1485. *** 501,507 ****
  1486.   {
  1487.       register int    n;
  1488.   
  1489. !     va_start(args);
  1490.   
  1491.       n = SetNameArgs();
  1492.   
  1493. --- 509,515 ----
  1494.   {
  1495.       register int    n;
  1496.   
  1497. !     Va_start (args, parent);
  1498.   
  1499.       n = SetNameArgs();
  1500.   
  1501. ***************
  1502. *** 517,523 ****
  1503.   Widget
  1504.   XmVaCreateFileSelectionBox
  1505.   #ifdef UseFunctionPrototypes
  1506. !     (int __builtin_va_alist)
  1507.   #else
  1508.       (va_alist)
  1509.   va_dcl
  1510. --- 525,531 ----
  1511.   Widget
  1512.   XmVaCreateFileSelectionBox
  1513.   #ifdef UseFunctionPrototypes
  1514. !     (Widget parent, ...)
  1515.   #else
  1516.       (va_alist)
  1517.   va_dcl
  1518. ***************
  1519. *** 526,532 ****
  1520.   {
  1521.       register int    n;
  1522.   
  1523. !     va_start(args);
  1524.   
  1525.       n = SetNameArgs();
  1526.   
  1527. --- 534,540 ----
  1528.   {
  1529.       register int    n;
  1530.   
  1531. !     Va_start (args, parent);
  1532.   
  1533.       n = SetNameArgs();
  1534.   
  1535. ***************
  1536. *** 550,556 ****
  1537.   Widget
  1538.   XmVaCreateForm
  1539.   #ifdef UseFunctionPrototypes
  1540. !     (int __builtin_va_alist)
  1541.   #else
  1542.       (va_alist)
  1543.   va_dcl
  1544. --- 558,564 ----
  1545.   Widget
  1546.   XmVaCreateForm
  1547.   #ifdef UseFunctionPrototypes
  1548. !     (Widget parent, ...)
  1549.   #else
  1550.       (va_alist)
  1551.   va_dcl
  1552. ***************
  1553. *** 559,565 ****
  1554.   {
  1555.       register int    n;
  1556.   
  1557. !     va_start(args);
  1558.   
  1559.       n = SetNameArgs();
  1560.   
  1561. --- 567,573 ----
  1562.   {
  1563.       register int    n;
  1564.   
  1565. !     Va_start (args, parent);
  1566.   
  1567.       n = SetNameArgs();
  1568.   
  1569. ***************
  1570. *** 575,581 ****
  1571.   Widget
  1572.   XmVaCreateFrame
  1573.   #ifdef UseFunctionPrototypes
  1574. !     (int __builtin_va_alist)
  1575.   #else
  1576.       (va_alist)
  1577.   va_dcl
  1578. --- 583,589 ----
  1579.   Widget
  1580.   XmVaCreateFrame
  1581.   #ifdef UseFunctionPrototypes
  1582. !     (Widget parent, ...)
  1583.   #else
  1584.       (va_alist)
  1585.   va_dcl
  1586. ***************
  1587. *** 584,590 ****
  1588.   {
  1589.       register int    n;
  1590.   
  1591. !     va_start(args);
  1592.   
  1593.       n = SetNameArgs();
  1594.   
  1595. --- 592,598 ----
  1596.   {
  1597.       register int    n;
  1598.   
  1599. !     Va_start (args, parent);
  1600.   
  1601.       n = SetNameArgs();
  1602.   
  1603. ***************
  1604. *** 608,614 ****
  1605.   Widget
  1606.   XmVaCreateLabel
  1607.   #ifdef UseFunctionPrototypes
  1608. !     (int __builtin_va_alist)
  1609.   #else
  1610.       (va_alist)
  1611.   va_dcl
  1612. --- 616,622 ----
  1613.   Widget
  1614.   XmVaCreateLabel
  1615.   #ifdef UseFunctionPrototypes
  1616. !     (Widget parent, ...)
  1617.   #else
  1618.       (va_alist)
  1619.   va_dcl
  1620. ***************
  1621. *** 617,623 ****
  1622.   {
  1623.       register int    n;
  1624.   
  1625. !     va_start(args);
  1626.   
  1627.       n = SetNameArgs();
  1628.   
  1629. --- 625,631 ----
  1630.   {
  1631.       register int    n;
  1632.   
  1633. !     Va_start (args, parent);
  1634.   
  1635.       n = SetNameArgs();
  1636.   
  1637. ***************
  1638. *** 641,647 ****
  1639.   Widget
  1640.   XmVaCreateList
  1641.   #ifdef UseFunctionPrototypes
  1642. !     (int __builtin_va_alist)
  1643.   #else
  1644.       (va_alist)
  1645.   va_dcl
  1646. --- 649,655 ----
  1647.   Widget
  1648.   XmVaCreateList
  1649.   #ifdef UseFunctionPrototypes
  1650. !     (Widget parent, ...)
  1651.   #else
  1652.       (va_alist)
  1653.   va_dcl
  1654. ***************
  1655. *** 650,656 ****
  1656.   {
  1657.       register int    n;
  1658.   
  1659. !     va_start(args);
  1660.   
  1661.       n = SetNameArgs();
  1662.   
  1663. --- 658,664 ----
  1664.   {
  1665.       register int    n;
  1666.   
  1667. !     Va_start (args, parent);
  1668.   
  1669.       n = SetNameArgs();
  1670.   
  1671. ***************
  1672. *** 674,680 ****
  1673.   Widget
  1674.   XmVaCreateMainWindow
  1675.   #ifdef UseFunctionPrototypes
  1676. !     (int __builtin_va_alist)
  1677.   #else
  1678.       (va_alist)
  1679.   va_dcl
  1680. --- 682,688 ----
  1681.   Widget
  1682.   XmVaCreateMainWindow
  1683.   #ifdef UseFunctionPrototypes
  1684. !     (Widget parent, ...)
  1685.   #else
  1686.       (va_alist)
  1687.   va_dcl
  1688. ***************
  1689. *** 683,689 ****
  1690.   {
  1691.       register int    n;
  1692.   
  1693. !     va_start(args);
  1694.   
  1695.       n = SetNameArgs();
  1696.   
  1697. --- 691,697 ----
  1698.   {
  1699.       register int    n;
  1700.   
  1701. !     Va_start (args, parent);
  1702.   
  1703.       n = SetNameArgs();
  1704.   
  1705. ***************
  1706. *** 707,713 ****
  1707.   Widget
  1708.   XmVaCreateMessageBox
  1709.   #ifdef UseFunctionPrototypes
  1710. !     (int __builtin_va_alist)
  1711.   #else
  1712.       (va_alist)
  1713.   va_dcl
  1714. --- 715,721 ----
  1715.   Widget
  1716.   XmVaCreateMessageBox
  1717.   #ifdef UseFunctionPrototypes
  1718. !     (Widget parent, ...)
  1719.   #else
  1720.       (va_alist)
  1721.   va_dcl
  1722. ***************
  1723. *** 716,722 ****
  1724.   {
  1725.       register int    n;
  1726.   
  1727. !     va_start(args);
  1728.   
  1729.       n = SetNameArgs();
  1730.   
  1731. --- 724,730 ----
  1732.   {
  1733.       register int    n;
  1734.   
  1735. !     Va_start (args, parent);
  1736.   
  1737.       n = SetNameArgs();
  1738.   
  1739. ***************
  1740. *** 740,746 ****
  1741.   Widget
  1742.   XmVaCreatePanedWindow
  1743.   #ifdef UseFunctionPrototypes
  1744. !     (int __builtin_va_alist)
  1745.   #else
  1746.       (va_alist)
  1747.   va_dcl
  1748. --- 748,754 ----
  1749.   Widget
  1750.   XmVaCreatePanedWindow
  1751.   #ifdef UseFunctionPrototypes
  1752. !     (Widget parent, ...)
  1753.   #else
  1754.       (va_alist)
  1755.   va_dcl
  1756. ***************
  1757. *** 749,755 ****
  1758.   {
  1759.       register int    n;
  1760.   
  1761. !     va_start(args);
  1762.   
  1763.       n = SetNameArgs();
  1764.   
  1765. --- 757,763 ----
  1766.   {
  1767.       register int    n;
  1768.   
  1769. !     Va_start (args, parent);
  1770.   
  1771.       n = SetNameArgs();
  1772.   
  1773. ***************
  1774. *** 773,779 ****
  1775.   Widget
  1776.   XmVaCreatePushButton
  1777.   #ifdef UseFunctionPrototypes
  1778. !     (int __builtin_va_alist)
  1779.   #else
  1780.       (va_alist)
  1781.   va_dcl
  1782. --- 781,787 ----
  1783.   Widget
  1784.   XmVaCreatePushButton
  1785.   #ifdef UseFunctionPrototypes
  1786. !     (Widget parent, ...)
  1787.   #else
  1788.       (va_alist)
  1789.   va_dcl
  1790. ***************
  1791. *** 782,788 ****
  1792.   {
  1793.       register int    n;
  1794.   
  1795. !     va_start(args);
  1796.   
  1797.       n = SetNameArgs();
  1798.   
  1799. --- 790,796 ----
  1800.   {
  1801.       register int    n;
  1802.   
  1803. !     Va_start (args, parent);
  1804.   
  1805.       n = SetNameArgs();
  1806.   
  1807. ***************
  1808. *** 806,812 ****
  1809.   Widget
  1810.   XmVaCreateRowColumn
  1811.   #ifdef UseFunctionPrototypes
  1812. !     (int __builtin_va_alist)
  1813.   #else
  1814.       (va_alist)
  1815.   va_dcl
  1816. --- 814,820 ----
  1817.   Widget
  1818.   XmVaCreateRowColumn
  1819.   #ifdef UseFunctionPrototypes
  1820. !     (Widget parent, ...)
  1821.   #else
  1822.       (va_alist)
  1823.   va_dcl
  1824. ***************
  1825. *** 815,821 ****
  1826.   {
  1827.       register int    n;
  1828.   
  1829. !     va_start(args);
  1830.   
  1831.       n = SetNameArgs();
  1832.   
  1833. --- 823,829 ----
  1834.   {
  1835.       register int    n;
  1836.   
  1837. !     Va_start (args, parent);
  1838.   
  1839.       n = SetNameArgs();
  1840.   
  1841. ***************
  1842. *** 839,845 ****
  1843.   Widget
  1844.   XmVaCreateScale
  1845.   #ifdef UseFunctionPrototypes
  1846. !     (int __builtin_va_alist)
  1847.   #else
  1848.       (va_alist)
  1849.   va_dcl
  1850. --- 847,853 ----
  1851.   Widget
  1852.   XmVaCreateScale
  1853.   #ifdef UseFunctionPrototypes
  1854. !     (Widget parent, ...)
  1855.   #else
  1856.       (va_alist)
  1857.   va_dcl
  1858. ***************
  1859. *** 848,854 ****
  1860.   {
  1861.       register int    n;
  1862.   
  1863. !     va_start(args);
  1864.   
  1865.       n = SetNameArgs();
  1866.   
  1867. --- 856,862 ----
  1868.   {
  1869.       register int    n;
  1870.   
  1871. !     Va_start (args, parent);
  1872.   
  1873.       n = SetNameArgs();
  1874.   
  1875. ***************
  1876. *** 872,878 ****
  1877.   Widget
  1878.   XmVaCreateScrollBar
  1879.   #ifdef UseFunctionPrototypes
  1880. !     (int __builtin_va_alist)
  1881.   #else
  1882.       (va_alist)
  1883.   va_dcl
  1884. --- 880,886 ----
  1885.   Widget
  1886.   XmVaCreateScrollBar
  1887.   #ifdef UseFunctionPrototypes
  1888. !     (Widget parent, ...)
  1889.   #else
  1890.       (va_alist)
  1891.   va_dcl
  1892. ***************
  1893. *** 881,887 ****
  1894.   {
  1895.       register int    n;
  1896.   
  1897. !     va_start(args);
  1898.   
  1899.       n = SetNameArgs();
  1900.   
  1901. --- 889,895 ----
  1902.   {
  1903.       register int    n;
  1904.   
  1905. !     Va_start (args, parent);
  1906.   
  1907.       n = SetNameArgs();
  1908.   
  1909. ***************
  1910. *** 905,911 ****
  1911.   Widget
  1912.   XmVaCreateSelectionBox
  1913.   #ifdef UseFunctionPrototypes
  1914. !     (int __builtin_va_alist)
  1915.   #else
  1916.       (va_alist)
  1917.   va_dcl
  1918. --- 913,919 ----
  1919.   Widget
  1920.   XmVaCreateSelectionBox
  1921.   #ifdef UseFunctionPrototypes
  1922. !     (Widget parent, ...)
  1923.   #else
  1924.       (va_alist)
  1925.   va_dcl
  1926. ***************
  1927. *** 914,920 ****
  1928.   {
  1929.       register int    n;
  1930.   
  1931. !     va_start(args);
  1932.   
  1933.       n = SetNameArgs();
  1934.   
  1935. --- 922,928 ----
  1936.   {
  1937.       register int    n;
  1938.   
  1939. !     Va_start (args, parent);
  1940.   
  1941.       n = SetNameArgs();
  1942.   
  1943. ***************
  1944. *** 938,944 ****
  1945.   Widget
  1946.   XmVaCreateSeparator
  1947.   #ifdef UseFunctionPrototypes
  1948. !     (int __builtin_va_alist)
  1949.   #else
  1950.       (va_alist)
  1951.   va_dcl
  1952. --- 946,952 ----
  1953.   Widget
  1954.   XmVaCreateSeparator
  1955.   #ifdef UseFunctionPrototypes
  1956. !     (Widget parent, ...)
  1957.   #else
  1958.       (va_alist)
  1959.   va_dcl
  1960. ***************
  1961. *** 947,953 ****
  1962.   {
  1963.       register int    n;
  1964.   
  1965. !     va_start(args);
  1966.   
  1967.       n = SetNameArgs();
  1968.   
  1969. --- 955,961 ----
  1970.   {
  1971.       register int    n;
  1972.   
  1973. !     Va_start (args, parent);
  1974.   
  1975.       n = SetNameArgs();
  1976.   
  1977. ***************
  1978. *** 971,977 ****
  1979.   Widget
  1980.   XmVaCreateText
  1981.   #ifdef UseFunctionPrototypes
  1982. !     (int __builtin_va_alist)
  1983.   #else
  1984.       (va_alist)
  1985.   va_dcl
  1986. --- 979,985 ----
  1987.   Widget
  1988.   XmVaCreateText
  1989.   #ifdef UseFunctionPrototypes
  1990. !     (Widget parent, ...)
  1991.   #else
  1992.       (va_alist)
  1993.   va_dcl
  1994. ***************
  1995. *** 980,986 ****
  1996.   {
  1997.       register int    n;
  1998.   
  1999. !     va_start(args);
  2000.   
  2001.       n = SetNameArgs();
  2002.   
  2003. --- 988,994 ----
  2004.   {
  2005.       register int    n;
  2006.   
  2007. !     Va_start (args, parent);
  2008.   
  2009.       n = SetNameArgs();
  2010.   
  2011. ***************
  2012. *** 1004,1010 ****
  2013.   Widget
  2014.   XmVaCreateToggleButton
  2015.   #ifdef UseFunctionPrototypes
  2016. !     (int __builtin_va_alist)
  2017.   #else
  2018.       (va_alist)
  2019.   va_dcl
  2020. --- 1012,1018 ----
  2021.   Widget
  2022.   XmVaCreateToggleButton
  2023.   #ifdef UseFunctionPrototypes
  2024. !     (Widget parent, ...)
  2025.   #else
  2026.       (va_alist)
  2027.   va_dcl
  2028. ***************
  2029. *** 1013,1019 ****
  2030.   {
  2031.       register int    n;
  2032.   
  2033. !     va_start(args);
  2034.   
  2035.       n = SetNameArgs();
  2036.   
  2037. --- 1021,1027 ----
  2038.   {
  2039.       register int    n;
  2040.   
  2041. !     Va_start (args, parent);
  2042.   
  2043.       n = SetNameArgs();
  2044.   
  2045. ***************
  2046. *** 1042,1048 ****
  2047.   Widget
  2048.   XmVaCreateErrorDialog
  2049.   #ifdef UseFunctionPrototypes
  2050. !     (int __builtin_va_alist)
  2051.   #else
  2052.       (va_alist)
  2053.   va_dcl
  2054. --- 1050,1056 ----
  2055.   Widget
  2056.   XmVaCreateErrorDialog
  2057.   #ifdef UseFunctionPrototypes
  2058. !     (Widget parent, ...)
  2059.   #else
  2060.       (va_alist)
  2061.   va_dcl
  2062. ***************
  2063. *** 1051,1057 ****
  2064.   {
  2065.           register int    n;
  2066.   
  2067. !         va_start(args);
  2068.   
  2069.           n = SetNameArgs();
  2070.   
  2071. --- 1059,1065 ----
  2072.   {
  2073.           register int    n;
  2074.   
  2075. !         Va_start (args, parent);
  2076.   
  2077.           n = SetNameArgs();
  2078.   
  2079. ***************
  2080. *** 1074,1080 ****
  2081.   Widget
  2082.   XmVaCreateFileSelectionDialog
  2083.   #ifdef UseFunctionPrototypes
  2084. !     (int __builtin_va_alist)
  2085.   #else
  2086.       (va_alist)
  2087.   va_dcl
  2088. --- 1082,1088 ----
  2089.   Widget
  2090.   XmVaCreateFileSelectionDialog
  2091.   #ifdef UseFunctionPrototypes
  2092. !     (Widget parent, ...)
  2093.   #else
  2094.       (va_alist)
  2095.   va_dcl
  2096. ***************
  2097. *** 1083,1089 ****
  2098.   {
  2099.           register int    n;
  2100.   
  2101. !         va_start(args);
  2102.   
  2103.           n = SetNameArgs();
  2104.   
  2105. --- 1091,1097 ----
  2106.   {
  2107.           register int    n;
  2108.   
  2109. !         Va_start (args, parent);
  2110.   
  2111.           n = SetNameArgs();
  2112.   
  2113. ***************
  2114. *** 1106,1112 ****
  2115.   Widget
  2116.   XmVaCreateFormDialog
  2117.   #ifdef UseFunctionPrototypes
  2118. !     (int __builtin_va_alist)
  2119.   #else
  2120.       (va_alist)
  2121.   va_dcl
  2122. --- 1114,1120 ----
  2123.   Widget
  2124.   XmVaCreateFormDialog
  2125.   #ifdef UseFunctionPrototypes
  2126. !     (Widget parent, ...)
  2127.   #else
  2128.       (va_alist)
  2129.   va_dcl
  2130. ***************
  2131. *** 1115,1121 ****
  2132.   {
  2133.           register int    n;
  2134.   
  2135. !         va_start(args);
  2136.   
  2137.           n = SetNameArgs();
  2138.   
  2139. --- 1123,1129 ----
  2140.   {
  2141.           register int    n;
  2142.   
  2143. !         Va_start (args, parent);
  2144.   
  2145.           n = SetNameArgs();
  2146.   
  2147. ***************
  2148. *** 1138,1144 ****
  2149.   Widget
  2150.   XmVaCreateInformationDialog
  2151.   #ifdef UseFunctionPrototypes
  2152. !     (int __builtin_va_alist)
  2153.   #else
  2154.       (va_alist)
  2155.   va_dcl
  2156. --- 1146,1152 ----
  2157.   Widget
  2158.   XmVaCreateInformationDialog
  2159.   #ifdef UseFunctionPrototypes
  2160. !     (Widget parent, ...)
  2161.   #else
  2162.       (va_alist)
  2163.   va_dcl
  2164. ***************
  2165. *** 1147,1153 ****
  2166.   {
  2167.           register int    n;
  2168.   
  2169. !         va_start(args);
  2170.   
  2171.           n = SetNameArgs();
  2172.   
  2173. --- 1155,1161 ----
  2174.   {
  2175.           register int    n;
  2176.   
  2177. !         Va_start (args, parent);
  2178.   
  2179.           n = SetNameArgs();
  2180.   
  2181. ***************
  2182. *** 1170,1176 ****
  2183.   Widget
  2184.   XmVaCreateMessageDialog
  2185.   #ifdef UseFunctionPrototypes
  2186. !     (int __builtin_va_alist)
  2187.   #else
  2188.       (va_alist)
  2189.   va_dcl
  2190. --- 1178,1184 ----
  2191.   Widget
  2192.   XmVaCreateMessageDialog
  2193.   #ifdef UseFunctionPrototypes
  2194. !     (Widget parent, ...)
  2195.   #else
  2196.       (va_alist)
  2197.   va_dcl
  2198. ***************
  2199. *** 1179,1185 ****
  2200.   {
  2201.           register int    n;
  2202.   
  2203. !         va_start(args);
  2204.   
  2205.           n = SetNameArgs();
  2206.   
  2207. --- 1187,1193 ----
  2208.   {
  2209.           register int    n;
  2210.   
  2211. !         Va_start (args, parent);
  2212.   
  2213.           n = SetNameArgs();
  2214.   
  2215. ***************
  2216. *** 1202,1208 ****
  2217.   Widget
  2218.   XmVaCreatePromptDialog
  2219.   #ifdef UseFunctionPrototypes
  2220. !     (int __builtin_va_alist)
  2221.   #else
  2222.       (va_alist)
  2223.   va_dcl
  2224. --- 1210,1216 ----
  2225.   Widget
  2226.   XmVaCreatePromptDialog
  2227.   #ifdef UseFunctionPrototypes
  2228. !     (Widget parent, ...)
  2229.   #else
  2230.       (va_alist)
  2231.   va_dcl
  2232. ***************
  2233. *** 1211,1217 ****
  2234.   {
  2235.           register int    n;
  2236.   
  2237. !         va_start(args);
  2238.   
  2239.           n = SetNameArgs();
  2240.   
  2241. --- 1219,1225 ----
  2242.   {
  2243.           register int    n;
  2244.   
  2245. !         Va_start (args, parent);
  2246.   
  2247.           n = SetNameArgs();
  2248.   
  2249. ***************
  2250. *** 1234,1240 ****
  2251.   Widget
  2252.   XmVaCreateQuestionDialog
  2253.   #ifdef UseFunctionPrototypes
  2254. !     (int __builtin_va_alist)
  2255.   #else
  2256.       (va_alist)
  2257.   va_dcl
  2258. --- 1242,1248 ----
  2259.   Widget
  2260.   XmVaCreateQuestionDialog
  2261.   #ifdef UseFunctionPrototypes
  2262. !     (Widget parent, ...)
  2263.   #else
  2264.       (va_alist)
  2265.   va_dcl
  2266. ***************
  2267. *** 1243,1249 ****
  2268.   {
  2269.           register int    n;
  2270.   
  2271. !         va_start(args);
  2272.   
  2273.           n = SetNameArgs();
  2274.   
  2275. --- 1251,1257 ----
  2276.   {
  2277.           register int    n;
  2278.   
  2279. !         Va_start (args, parent);
  2280.   
  2281.           n = SetNameArgs();
  2282.   
  2283. ***************
  2284. *** 1266,1272 ****
  2285.   Widget
  2286.   XmVaCreateSelectionDialog
  2287.   #ifdef UseFunctionPrototypes
  2288. !     (int __builtin_va_alist)
  2289.   #else
  2290.       (va_alist)
  2291.   va_dcl
  2292. --- 1274,1280 ----
  2293.   Widget
  2294.   XmVaCreateSelectionDialog
  2295.   #ifdef UseFunctionPrototypes
  2296. !     (Widget parent, ...)
  2297.   #else
  2298.       (va_alist)
  2299.   va_dcl
  2300. ***************
  2301. *** 1275,1281 ****
  2302.   {
  2303.           register int    n;
  2304.   
  2305. !         va_start(args);
  2306.   
  2307.           n = SetNameArgs();
  2308.   
  2309. --- 1283,1289 ----
  2310.   {
  2311.           register int    n;
  2312.   
  2313. !         Va_start (args, parent);
  2314.   
  2315.           n = SetNameArgs();
  2316.   
  2317. ***************
  2318. *** 1298,1304 ****
  2319.   Widget
  2320.   XmVaCreateWarningDialog
  2321.   #ifdef UseFunctionPrototypes
  2322. !     (int __builtin_va_alist)
  2323.   #else
  2324.       (va_alist)
  2325.   va_dcl
  2326. --- 1306,1312 ----
  2327.   Widget
  2328.   XmVaCreateWarningDialog
  2329.   #ifdef UseFunctionPrototypes
  2330. !     (Widget parent, ...)
  2331.   #else
  2332.       (va_alist)
  2333.   va_dcl
  2334. ***************
  2335. *** 1307,1313 ****
  2336.   {
  2337.           register int    n;
  2338.   
  2339. !         va_start(args);
  2340.   
  2341.           n = SetNameArgs();
  2342.   
  2343. --- 1315,1321 ----
  2344.   {
  2345.           register int    n;
  2346.   
  2347. !         Va_start (args, parent);
  2348.   
  2349.           n = SetNameArgs();
  2350.   
  2351. ***************
  2352. *** 1330,1336 ****
  2353.   Widget
  2354.   XmVaCreateWorkingDialog
  2355.   #ifdef UseFunctionPrototypes
  2356. !     (int __builtin_va_alist)
  2357.   #else
  2358.       (va_alist)
  2359.   va_dcl
  2360. --- 1338,1344 ----
  2361.   Widget
  2362.   XmVaCreateWorkingDialog
  2363.   #ifdef UseFunctionPrototypes
  2364. !     (Widget parent, ...)
  2365.   #else
  2366.       (va_alist)
  2367.   va_dcl
  2368. ***************
  2369. *** 1339,1345 ****
  2370.   {
  2371.           register int    n;
  2372.   
  2373. !         va_start(args);
  2374.   
  2375.           n = SetNameArgs();
  2376.   
  2377. --- 1347,1353 ----
  2378.   {
  2379.           register int    n;
  2380.   
  2381. !         Va_start (args, parent);
  2382.   
  2383.           n = SetNameArgs();
  2384.   
  2385. ***************
  2386. *** 1367,1373 ****
  2387.   Widget
  2388.   XmVaCreateMenuBar
  2389.   #ifdef UseFunctionPrototypes
  2390. !     (int __builtin_va_alist)
  2391.   #else
  2392.       (va_alist)
  2393.   va_dcl
  2394. --- 1375,1381 ----
  2395.   Widget
  2396.   XmVaCreateMenuBar
  2397.   #ifdef UseFunctionPrototypes
  2398. !     (Widget parent, ...)
  2399.   #else
  2400.       (va_alist)
  2401.   va_dcl
  2402. ***************
  2403. *** 1376,1382 ****
  2404.   {
  2405.       register int    n;
  2406.   
  2407. !     va_start(args);
  2408.   
  2409.       n = SetNameArgs();
  2410.   
  2411. --- 1384,1390 ----
  2412.   {
  2413.       register int    n;
  2414.   
  2415. !     Va_start (args, parent);
  2416.   
  2417.       n = SetNameArgs();
  2418.   
  2419. ***************
  2420. *** 1399,1405 ****
  2421.   Widget
  2422.   XmVaCreateOptionMenu
  2423.   #ifdef UseFunctionPrototypes
  2424. !     (int __builtin_va_alist)
  2425.   #else
  2426.       (va_alist)
  2427.   va_dcl
  2428. --- 1407,1413 ----
  2429.   Widget
  2430.   XmVaCreateOptionMenu
  2431.   #ifdef UseFunctionPrototypes
  2432. !     (Widget parent, ...)
  2433.   #else
  2434.       (va_alist)
  2435.   va_dcl
  2436. ***************
  2437. *** 1408,1414 ****
  2438.   {
  2439.       register int    n;
  2440.   
  2441. !     va_start(args);
  2442.   
  2443.       n = SetNameArgs();
  2444.   
  2445. --- 1416,1422 ----
  2446.   {
  2447.       register int    n;
  2448.   
  2449. !     Va_start (args, parent);
  2450.   
  2451.       n = SetNameArgs();
  2452.   
  2453. ***************
  2454. *** 1431,1437 ****
  2455.   Widget
  2456.   XmVaCreatePopupMenu
  2457.   #ifdef UseFunctionPrototypes
  2458. !     (int __builtin_va_alist)
  2459.   #else
  2460.       (va_alist)
  2461.   va_dcl
  2462. --- 1439,1445 ----
  2463.   Widget
  2464.   XmVaCreatePopupMenu
  2465.   #ifdef UseFunctionPrototypes
  2466. !     (Widget parent, ...)
  2467.   #else
  2468.       (va_alist)
  2469.   va_dcl
  2470. ***************
  2471. *** 1440,1446 ****
  2472.   {
  2473.       register int    n;
  2474.   
  2475. !     va_start(args);
  2476.   
  2477.       n = SetNameArgs();
  2478.   
  2479. --- 1448,1454 ----
  2480.   {
  2481.       register int    n;
  2482.   
  2483. !     Va_start (args, parent);
  2484.   
  2485.       n = SetNameArgs();
  2486.   
  2487. ***************
  2488. *** 1463,1469 ****
  2489.   Widget
  2490.   XmVaCreatePulldownMenu
  2491.   #ifdef UseFunctionPrototypes
  2492. !     (int __builtin_va_alist)
  2493.   #else
  2494.       (va_alist)
  2495.   va_dcl
  2496. --- 1471,1477 ----
  2497.   Widget
  2498.   XmVaCreatePulldownMenu
  2499.   #ifdef UseFunctionPrototypes
  2500. !     (Widget parent, ...)
  2501.   #else
  2502.       (va_alist)
  2503.   va_dcl
  2504. ***************
  2505. *** 1472,1478 ****
  2506.   {
  2507.       register int    n;
  2508.   
  2509. !     va_start(args);
  2510.   
  2511.       n = SetNameArgs();
  2512.   
  2513. --- 1480,1486 ----
  2514.   {
  2515.       register int    n;
  2516.   
  2517. !     Va_start (args, parent);
  2518.   
  2519.       n = SetNameArgs();
  2520.   
  2521. ***************
  2522. *** 1495,1501 ****
  2523.   Widget
  2524.   XmVaCreateRadioBox
  2525.   #ifdef UseFunctionPrototypes
  2526. !     (int __builtin_va_alist)
  2527.   #else
  2528.       (va_alist)
  2529.   va_dcl
  2530. --- 1503,1509 ----
  2531.   Widget
  2532.   XmVaCreateRadioBox
  2533.   #ifdef UseFunctionPrototypes
  2534. !     (Widget parent, ...)
  2535.   #else
  2536.       (va_alist)
  2537.   va_dcl
  2538. ***************
  2539. *** 1504,1510 ****
  2540.   {
  2541.       register int    n;
  2542.   
  2543. !     va_start(args);
  2544.   
  2545.       n = SetNameArgs();
  2546.   
  2547. --- 1512,1518 ----
  2548.   {
  2549.       register int    n;
  2550.   
  2551. !     Va_start (args, parent);
  2552.   
  2553.       n = SetNameArgs();
  2554.   
  2555. ***************
  2556. *** 1533,1539 ****
  2557.   Widget
  2558.   XmVaCreateScrolledList
  2559.   #ifdef UseFunctionPrototypes
  2560. !     (int __builtin_va_alist)
  2561.   #else
  2562.       (va_alist)
  2563.   va_dcl
  2564. --- 1541,1547 ----
  2565.   Widget
  2566.   XmVaCreateScrolledList
  2567.   #ifdef UseFunctionPrototypes
  2568. !     (Widget parent, ...)
  2569.   #else
  2570.       (va_alist)
  2571.   va_dcl
  2572. ***************
  2573. *** 1542,1548 ****
  2574.   {
  2575.       register int    n;
  2576.   
  2577. !     va_start(args);
  2578.   
  2579.       n = SetNameArgs();
  2580.   
  2581. --- 1550,1556 ----
  2582.   {
  2583.       register int    n;
  2584.   
  2585. !     Va_start (args, parent);
  2586.   
  2587.       n = SetNameArgs();
  2588.   
  2589. ***************
  2590. *** 1565,1571 ****
  2591.   Widget
  2592.   XmVaCreateScrolledText
  2593.   #ifdef UseFunctionPrototypes
  2594. !     (int __builtin_va_alist)
  2595.   #else
  2596.       (va_alist)
  2597.   va_dcl
  2598. --- 1573,1579 ----
  2599.   Widget
  2600.   XmVaCreateScrolledText
  2601.   #ifdef UseFunctionPrototypes
  2602. !     (Widget parent, ...)
  2603.   #else
  2604.       (va_alist)
  2605.   va_dcl
  2606. ***************
  2607. *** 1574,1580 ****
  2608.   {
  2609.       register int    n;
  2610.   
  2611. !     va_start(args);
  2612.   
  2613.       n = SetNameArgs();
  2614.   
  2615. --- 1582,1588 ----
  2616.   {
  2617.       register int    n;
  2618.   
  2619. !     Va_start (args, parent);
  2620.   
  2621.       n = SetNameArgs();
  2622.   
  2623. ***************
  2624. *** 1597,1603 ****
  2625.   Widget
  2626.   XmVaCreateScrolledWindow
  2627.   #ifdef UseFunctionPrototypes
  2628. !     (int __builtin_va_alist)
  2629.   #else
  2630.       (va_alist)
  2631.   va_dcl
  2632. --- 1605,1611 ----
  2633.   Widget
  2634.   XmVaCreateScrolledWindow
  2635.   #ifdef UseFunctionPrototypes
  2636. !     (Widget parent, ...)
  2637.   #else
  2638.       (va_alist)
  2639.   va_dcl
  2640. ***************
  2641. *** 1606,1612 ****
  2642.   {
  2643.       register int    n;
  2644.   
  2645. !     va_start(args);
  2646.   
  2647.       n = SetNameArgs();
  2648.   
  2649. --- 1614,1620 ----
  2650.   {
  2651.       register int    n;
  2652.   
  2653. !     Va_start (args, parent);
  2654.   
  2655.       n = SetNameArgs();
  2656.   
  2657. diff -c -r ./xmvararg.h ../new/xmvararg.h
  2658. *** ./xmvararg.h    Wed Nov 18 19:09:28 1992
  2659. --- ../new/xmvararg.h    Tue Nov 24 10:44:55 1992
  2660. ***************
  2661. *** 13,18 ****
  2662. --- 13,25 ----
  2663.   
  2664.   #include <Xm/Xm.h>
  2665.   
  2666. + #ifdef UseFunctionPrototypes
  2667. + #include <stdarg.h>
  2668. + #define Va_start(a, b) va_start (a, b)
  2669. + #else
  2670. + #define Va_start(a, b) va_start (a)
  2671. + #endif
  2672.   /*
  2673.   **    varargs interface for Xt not defined for Motif 1.0
  2674.   **    because it is based on X11 R3. In this case, define
  2675. ***************
  2676. *** 29,145 ****
  2677.   */
  2678.   extern Widget    XmVaCreateArrowButton(
  2679.   #ifdef UseFunctionPrototypes
  2680. !     ...
  2681.   #endif
  2682.   );
  2683.   extern Widget    XmVaCreateBulletinBoard(
  2684.   #ifdef UseFunctionPrototypes
  2685. !     ...
  2686.   #endif
  2687.   );
  2688.   extern Widget    XmVaCreateCascadeButton(
  2689.   #ifdef UseFunctionPrototypes
  2690. !     ...
  2691.   #endif
  2692.   );
  2693.   extern Widget    XmVaCreateCommand(
  2694.   #ifdef UseFunctionPrototypes
  2695. !     ...
  2696.   #endif
  2697.   );
  2698.   extern Widget    XmVaCreateDialogShell(
  2699.   #ifdef UseFunctionPrototypes
  2700. !     ...
  2701.   #endif
  2702.   );
  2703.   extern Widget    XmVaCreateDrawingArea(
  2704.   #ifdef UseFunctionPrototypes
  2705. !     ...
  2706.   #endif
  2707.   );
  2708.   extern Widget    XmVaCreateDrawnButton(
  2709.   #ifdef UseFunctionPrototypes
  2710. !     ...
  2711.   #endif
  2712.   );
  2713.   extern Widget    XmVaCreateFileSelectionBox(
  2714.   #ifdef UseFunctionPrototypes
  2715. !     ...
  2716.   #endif
  2717.   );
  2718.   extern Widget    XmVaCreateForm(
  2719.   #ifdef UseFunctionPrototypes
  2720. !     ...
  2721.   #endif
  2722.   );
  2723.   extern Widget    XmVaCreateFrame(
  2724.   #ifdef UseFunctionPrototypes
  2725. !     ...
  2726.   #endif
  2727.   );
  2728.   extern Widget    XmVaCreateLabel(
  2729.   #ifdef UseFunctionPrototypes
  2730. !     ...
  2731.   #endif
  2732.   );
  2733.   extern Widget    XmVaCreateList(
  2734.   #ifdef UseFunctionPrototypes
  2735. !     ...
  2736.   #endif
  2737.   );
  2738.   extern Widget    XmVaCreateMainWindow(
  2739.   #ifdef UseFunctionPrototypes
  2740. !     ...
  2741.   #endif
  2742.   );
  2743.   extern Widget    XmVaCreateMessageBox(
  2744.   #ifdef UseFunctionPrototypes
  2745. !     ...
  2746.   #endif
  2747.   );
  2748.   extern Widget    XmVaCreatePanedWindow(
  2749.   #ifdef UseFunctionPrototypes
  2750. !     ...
  2751.   #endif
  2752.   );
  2753.   extern Widget    XmVaCreatePushButton(
  2754.   #ifdef UseFunctionPrototypes
  2755. !     ...
  2756.   #endif
  2757.   );
  2758.   extern Widget    XmVaCreateRowColumn(
  2759.   #ifdef UseFunctionPrototypes
  2760. !     ...
  2761.   #endif
  2762.   );
  2763.   extern Widget    XmVaCreateScale(
  2764.   #ifdef UseFunctionPrototypes
  2765. !     ...
  2766.   #endif
  2767.   );
  2768.   extern Widget    XmVaCreateScrollBar(
  2769.   #ifdef UseFunctionPrototypes
  2770. !     ...
  2771.   #endif
  2772.   );
  2773.   extern Widget    XmVaCreateSelectionBox(
  2774.   #ifdef UseFunctionPrototypes
  2775. !     ...
  2776.   #endif
  2777.   );
  2778.   extern Widget    XmVaCreateSeparator(
  2779.   #ifdef UseFunctionPrototypes
  2780. !     ...
  2781.   #endif
  2782.   );
  2783.   extern Widget    XmVaCreateText(
  2784.   #ifdef UseFunctionPrototypes
  2785. !     ...
  2786.   #endif
  2787.   );
  2788.   extern Widget    XmVaCreateToggleButton(
  2789.   #ifdef UseFunctionPrototypes
  2790. !     ...
  2791.   #endif
  2792.   );
  2793.   
  2794. --- 36,152 ----
  2795.   */
  2796.   extern Widget    XmVaCreateArrowButton(
  2797.   #ifdef UseFunctionPrototypes
  2798. !     int __builtin_va_alist
  2799.   #endif
  2800.   );
  2801.   extern Widget    XmVaCreateBulletinBoard(
  2802.   #ifdef UseFunctionPrototypes
  2803. !     int __builtin_va_alist
  2804.   #endif
  2805.   );
  2806.   extern Widget    XmVaCreateCascadeButton(
  2807.   #ifdef UseFunctionPrototypes
  2808. !     int __builtin_va_alist
  2809.   #endif
  2810.   );
  2811.   extern Widget    XmVaCreateCommand(
  2812.   #ifdef UseFunctionPrototypes
  2813. !     int __builtin_va_alist
  2814.   #endif
  2815.   );
  2816.   extern Widget    XmVaCreateDialogShell(
  2817.   #ifdef UseFunctionPrototypes
  2818. !     int __builtin_va_alist
  2819.   #endif
  2820.   );
  2821.   extern Widget    XmVaCreateDrawingArea(
  2822.   #ifdef UseFunctionPrototypes
  2823. !     int __builtin_va_alist
  2824.   #endif
  2825.   );
  2826.   extern Widget    XmVaCreateDrawnButton(
  2827.   #ifdef UseFunctionPrototypes
  2828. !     int __builtin_va_alist
  2829.   #endif
  2830.   );
  2831.   extern Widget    XmVaCreateFileSelectionBox(
  2832.   #ifdef UseFunctionPrototypes
  2833. !     int __builtin_va_alist
  2834.   #endif
  2835.   );
  2836.   extern Widget    XmVaCreateForm(
  2837.   #ifdef UseFunctionPrototypes
  2838. !     int __builtin_va_alist
  2839.   #endif
  2840.   );
  2841.   extern Widget    XmVaCreateFrame(
  2842.   #ifdef UseFunctionPrototypes
  2843. !     int __builtin_va_alist
  2844.   #endif
  2845.   );
  2846.   extern Widget    XmVaCreateLabel(
  2847.   #ifdef UseFunctionPrototypes
  2848. !     int __builtin_va_alist
  2849.   #endif
  2850.   );
  2851.   extern Widget    XmVaCreateList(
  2852.   #ifdef UseFunctionPrototypes
  2853. !     int __builtin_va_alist
  2854.   #endif
  2855.   );
  2856.   extern Widget    XmVaCreateMainWindow(
  2857.   #ifdef UseFunctionPrototypes
  2858. !     int __builtin_va_alist
  2859.   #endif
  2860.   );
  2861.   extern Widget    XmVaCreateMessageBox(
  2862.   #ifdef UseFunctionPrototypes
  2863. !     int __builtin_va_alist
  2864.   #endif
  2865.   );
  2866.   extern Widget    XmVaCreatePanedWindow(
  2867.   #ifdef UseFunctionPrototypes
  2868. !     int __builtin_va_alist
  2869.   #endif
  2870.   );
  2871.   extern Widget    XmVaCreatePushButton(
  2872.   #ifdef UseFunctionPrototypes
  2873. !     int __builtin_va_alist
  2874.   #endif
  2875.   );
  2876.   extern Widget    XmVaCreateRowColumn(
  2877.   #ifdef UseFunctionPrototypes
  2878. !     int __builtin_va_alist
  2879.   #endif
  2880.   );
  2881.   extern Widget    XmVaCreateScale(
  2882.   #ifdef UseFunctionPrototypes
  2883. !     int __builtin_va_alist
  2884.   #endif
  2885.   );
  2886.   extern Widget    XmVaCreateScrollBar(
  2887.   #ifdef UseFunctionPrototypes
  2888. !     int __builtin_va_alist
  2889.   #endif
  2890.   );
  2891.   extern Widget    XmVaCreateSelectionBox(
  2892.   #ifdef UseFunctionPrototypes
  2893. !     int __builtin_va_alist
  2894.   #endif
  2895.   );
  2896.   extern Widget    XmVaCreateSeparator(
  2897.   #ifdef UseFunctionPrototypes
  2898. !     int __builtin_va_alist
  2899.   #endif
  2900.   );
  2901.   extern Widget    XmVaCreateText(
  2902.   #ifdef UseFunctionPrototypes
  2903. !     int __builtin_va_alist
  2904.   #endif
  2905.   );
  2906.   extern Widget    XmVaCreateToggleButton(
  2907.   #ifdef UseFunctionPrototypes
  2908. !     int __builtin_va_alist
  2909.   #endif
  2910.   );
  2911.   
  2912. ***************
  2913. *** 148,199 ****
  2914.   */
  2915.   extern Widget    XmVaCreateErrorDialog(
  2916.   #ifdef UseFunctionPrototypes
  2917. !     ...
  2918.   #endif
  2919.   );
  2920.   extern Widget    XmVaCreateFileSelectionDialog(
  2921.   #ifdef UseFunctionPrototypes
  2922. !     ...
  2923.   #endif
  2924.   );
  2925.   extern Widget    XmVaCreateFormDialog(
  2926.   #ifdef UseFunctionPrototypes
  2927. !     ...
  2928.   #endif
  2929.   );
  2930.   extern Widget    XmVaCreateInformationDialog(
  2931.   #ifdef UseFunctionPrototypes
  2932. !     ...
  2933.   #endif
  2934.   );
  2935.   extern Widget    XmVaCreateMessageDialog(
  2936.   #ifdef UseFunctionPrototypes
  2937. !     ...
  2938.   #endif
  2939.   );
  2940.   extern Widget    XmVaCreatePromptDialog(
  2941.   #ifdef UseFunctionPrototypes
  2942. !     ...
  2943.   #endif
  2944.   );
  2945.   extern Widget    XmVaCreateQuestionDialog(
  2946.   #ifdef UseFunctionPrototypes
  2947. !     ...
  2948.   #endif
  2949.   );
  2950.   extern Widget    XmVaCreateSelectionDialog(
  2951.   #ifdef UseFunctionPrototypes
  2952. !     ...
  2953.   #endif
  2954.   );
  2955.   extern Widget    XmVaCreateWarningDialog(
  2956.   #ifdef UseFunctionPrototypes
  2957. !     ...
  2958.   #endif
  2959.   );
  2960.   extern Widget    XmVaCreateWorkingDialog(
  2961.   #ifdef UseFunctionPrototypes
  2962. !     ...
  2963.   #endif
  2964.   );
  2965.   
  2966. --- 155,206 ----
  2967.   */
  2968.   extern Widget    XmVaCreateErrorDialog(
  2969.   #ifdef UseFunctionPrototypes
  2970. !     int __builtin_va_alist
  2971.   #endif
  2972.   );
  2973.   extern Widget    XmVaCreateFileSelectionDialog(
  2974.   #ifdef UseFunctionPrototypes
  2975. !     int __builtin_va_alist
  2976.   #endif
  2977.   );
  2978.   extern Widget    XmVaCreateFormDialog(
  2979.   #ifdef UseFunctionPrototypes
  2980. !     int __builtin_va_alist
  2981.   #endif
  2982.   );
  2983.   extern Widget    XmVaCreateInformationDialog(
  2984.   #ifdef UseFunctionPrototypes
  2985. !     int __builtin_va_alist
  2986.   #endif
  2987.   );
  2988.   extern Widget    XmVaCreateMessageDialog(
  2989.   #ifdef UseFunctionPrototypes
  2990. !     int __builtin_va_alist
  2991.   #endif
  2992.   );
  2993.   extern Widget    XmVaCreatePromptDialog(
  2994.   #ifdef UseFunctionPrototypes
  2995. !     int __builtin_va_alist
  2996.   #endif
  2997.   );
  2998.   extern Widget    XmVaCreateQuestionDialog(
  2999.   #ifdef UseFunctionPrototypes
  3000. !     int __builtin_va_alist
  3001.   #endif
  3002.   );
  3003.   extern Widget    XmVaCreateSelectionDialog(
  3004.   #ifdef UseFunctionPrototypes
  3005. !     int __builtin_va_alist
  3006.   #endif
  3007.   );
  3008.   extern Widget    XmVaCreateWarningDialog(
  3009.   #ifdef UseFunctionPrototypes
  3010. !     int __builtin_va_alist
  3011.   #endif
  3012.   );
  3013.   extern Widget    XmVaCreateWorkingDialog(
  3014.   #ifdef UseFunctionPrototypes
  3015. !     int __builtin_va_alist
  3016.   #endif
  3017.   );
  3018.   
  3019. ***************
  3020. *** 202,228 ****
  3021.   */
  3022.   extern Widget    XmVaCreateMenuBar(
  3023.   #ifdef UseFunctionPrototypes
  3024. !     ...
  3025.   #endif
  3026.   );
  3027.   extern Widget    XmVaCreateOptionMenu(
  3028.   #ifdef UseFunctionPrototypes
  3029. !     ...
  3030.   #endif
  3031.   );
  3032.   extern Widget    XmVaCreatePopupMenu(
  3033.   #ifdef UseFunctionPrototypes
  3034. !     ...
  3035.   #endif
  3036.   );
  3037.   extern Widget    XmVaCreatePulldownMenu(
  3038.   #ifdef UseFunctionPrototypes
  3039. !     ...
  3040.   #endif
  3041.   );
  3042.   extern Widget    XmVaCreateRadioBox(
  3043.   #ifdef UseFunctionPrototypes
  3044. !     ...
  3045.   #endif
  3046.   );
  3047.   
  3048. --- 209,235 ----
  3049.   */
  3050.   extern Widget    XmVaCreateMenuBar(
  3051.   #ifdef UseFunctionPrototypes
  3052. !     int __builtin_va_alist
  3053.   #endif
  3054.   );
  3055.   extern Widget    XmVaCreateOptionMenu(
  3056.   #ifdef UseFunctionPrototypes
  3057. !     int __builtin_va_alist
  3058.   #endif
  3059.   );
  3060.   extern Widget    XmVaCreatePopupMenu(
  3061.   #ifdef UseFunctionPrototypes
  3062. !     int __builtin_va_alist
  3063.   #endif
  3064.   );
  3065.   extern Widget    XmVaCreatePulldownMenu(
  3066.   #ifdef UseFunctionPrototypes
  3067. !     int __builtin_va_alist
  3068.   #endif
  3069.   );
  3070.   extern Widget    XmVaCreateRadioBox(
  3071.   #ifdef UseFunctionPrototypes
  3072. !     int __builtin_va_alist
  3073.   #endif
  3074.   );
  3075.   
  3076. ***************
  3077. *** 231,247 ****
  3078.   */
  3079.   extern Widget    XmVaCreateScrolledList(
  3080.   #ifdef UseFunctionPrototypes
  3081. !     ...
  3082.   #endif
  3083.   );
  3084.   extern Widget    XmVaCreateScrolledText(
  3085.   #ifdef UseFunctionPrototypes
  3086. !     ...
  3087.   #endif
  3088.   );
  3089.   extern Widget    XmVaCreateScrolledWindow(
  3090.   #ifdef UseFunctionPrototypes
  3091. !     ...
  3092.   #endif
  3093.   );
  3094.   
  3095. --- 238,254 ----
  3096.   */
  3097.   extern Widget    XmVaCreateScrolledList(
  3098.   #ifdef UseFunctionPrototypes
  3099. !     int __builtin_va_alist
  3100.   #endif
  3101.   );
  3102.   extern Widget    XmVaCreateScrolledText(
  3103.   #ifdef UseFunctionPrototypes
  3104. !     int __builtin_va_alist
  3105.   #endif
  3106.   );
  3107.   extern Widget    XmVaCreateScrolledWindow(
  3108.   #ifdef UseFunctionPrototypes
  3109. !     int __builtin_va_alist
  3110.   #endif
  3111.   );
  3112.   
  3113. diff -c -r ./bitmaps/Copyright ../new/bitmaps/Copyright
  3114. *** ./bitmaps/Copyright    Tue Nov 24 10:54:44 1992
  3115. --- ../new/bitmaps/Copyright    Tue Nov 24 10:52:29 1992
  3116. ***************
  3117. *** 0 ****
  3118. --- 1,19 ----
  3119. + All of the bitmaps in this directory (except herefolder.xbm) are covered
  3120. + by the following notice:
  3121. + Copyright (c) 1992 Edward Groenendaal, Ramon Santiago
  3122. + Copyright (c) 1991 Edward Groenendaal.
  3123. + Permission is granted to anyone to use this software for any
  3124. + purpose on any computer system, and to redistribute it freely,
  3125. + subject to the following restrictions:
  3126. + 1. The author is not responsible for the consequences of use of
  3127. +    this software, no matter how awful, even if they arise
  3128. +    from defects in it.
  3129. + 2. The origin of this software must not be misrepresented, either
  3130. +    by explicit claim or by omission.
  3131. + 3. Altered versions must be plainly marked as such, and must not
  3132. +    be misrepresented as being the original software.  
  3133. diff -c -r ./bitmaps/Imakefile ../new/bitmaps/Imakefile
  3134. *** ./bitmaps/Imakefile    Thu Oct 15 16:02:03 1992
  3135. --- ../new/bitmaps/Imakefile    Mon Nov 23 11:41:52 1992
  3136. ***************
  3137. *** 87
  3138. - InstallMultiple($(BITMAPS),/usr/lib/X11/bitmaps/XmFm)
  3139. --- 87 -----
  3140. + InstallMultiple($(BITMAPS),$(LIBDIR)/bitmaps/XmFm)
  3141. Only in ../new/bitmaps: Makefile.bak
  3142. Only in ../new/bitmaps: xlogo32
  3143.  
  3144. --
  3145. +----------------------+---+
  3146.   Jan Newmarch, Information Science and Engineering,
  3147.   University of Canberra, PO Box 1, Belconnen, Act 2616
  3148.   Australia. Tel: (Aust) 6-2012422. Fax: (Aust) 6-2015041
  3149.