ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/expandarg.c
(Generate patch)

Comparing ray/src/common/expandarg.c (file contents):
Revision 2.1 by greg, Sat Oct 17 08:41:37 1992 UTC vs.
Revision 2.3 by greg, Fri Jul 16 12:40:37 1993 UTC

# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14  
15                          /* set the following to suit, -1 to disable */
16   int     envexpchr = '$';                /* environment expansion character */
17 < int     filexpchr = '^';                /* file expansion character */
17 > int     filexpchr = '@';                /* file expansion character */
18  
19  
20   expandarg(acp, avp, n)          /* expand list at argument n */
# Line 26 | Line 26 | int    n;
26          char    *ave[MAXARGEXP];
27          char    **newav;
28                                          /* check argument */
29 +        if (n >= *acp)
30 +                return(0);
31          errno = 0;      
32          if ((*avp)[n][0] == filexpchr) {                /* file name */
33                  ace = wordfile(ave, (*avp)[n]+1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines