Changeset 2792 for trunk/Ohana/src/opihi/lib.shell/expand_vectors.c
- Timestamp:
- Dec 22, 2004, 1:23:23 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/expand_vectors.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/expand_vectors.c
r2598 r2792 37 37 ALLOCATE (val, char, 64); 38 38 sprintf (val, "-1"); 39 /* this choice of sentinel prevents us from using 40 x[-1], x[-2], and is not really needed */ 39 41 } else { 40 42 strncpy (tmpline, p+1, n); 41 43 tmpline[n] = 0; 42 44 val = dvomath (1, &tmpline, &size, 0); 43 if (val == NULL) goto dumpline; /* not really a vector*/45 if (val == NULL) goto dumpline; /* not a valid vector subscript */ 44 46 } 45 47 /* find vector name */
Note:
See TracChangeset
for help on using the changeset viewer.
