Changeset 2290 for trunk/src/kash/nodes.c.pat
- Timestamp:
- Feb 27, 2009, 5:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/nodes.c.pat
r1233 r2290 45 45 #include "machdep.h" 46 46 #include "mystring.h" 47 #include "shinstance.h" 47 48 48 49 … … 68 69 69 70 union node * 70 copyfunc(n) 71 copyfunc(psh, n) 72 struct shinstance *psh; 71 73 union node *n; 72 74 { … … 76 78 funcstringsize = 0; 77 79 calcsize(n); 78 funcblock = ckmalloc( funcblocksize + funcstringsize);80 funcblock = ckmalloc(psh, funcblocksize + funcstringsize); 79 81 funcstring = (char *) funcblock + funcblocksize; 80 82 return copynode(n); … … 159 161 160 162 void 161 freefunc(n) 163 freefunc(psh, n) 164 shinstance *psh; 162 165 union node *n; 163 166 { 164 167 if (n) 165 ckfree( n);168 ckfree(psh, n); 166 169 }
Note:
See TracChangeset
for help on using the changeset viewer.