Changeset 2290 for trunk/src/kash/parser.c
- Timestamp:
- Feb 27, 2009, 5:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/parser.c
r1236 r2290 1151 1151 psh->wordtext = out; 1152 1152 if (dblquotep != NULL) 1153 ckfree( dblquotep);1153 ckfree(psh, dblquotep); 1154 1154 return psh->lasttoken = TWORD; 1155 1155 /* end of readtoken routine */ … … 1347 1347 varnest++; 1348 1348 if (varnest >= maxnest) { 1349 dblquotep = ckrealloc( dblquotep, maxnest / 8);1349 dblquotep = ckrealloc(psh, dblquotep, maxnest / 8); 1350 1350 dblquotep[(maxnest / 32) - 1] = 0; 1351 1351 maxnest += 32; … … 1380 1380 if (setjmp(jmploc.loc)) { 1381 1381 if (str) 1382 ckfree( str);1382 ckfree(psh, str); 1383 1383 psh->parsebackquote = 0; 1384 1384 psh->handler = savehandler; … … 1389 1389 savelen = (int)(out - stackblock(psh)); 1390 1390 if (savelen > 0) { 1391 str = ckmalloc( savelen);1391 str = ckmalloc(psh, savelen); 1392 1392 memcpy(str, stackblock(psh), savelen); 1393 1393 } … … 1495 1495 STADJUST(psh, savelen, out); 1496 1496 INTOFF; 1497 ckfree( str);1497 ckfree(psh, str); 1498 1498 str = NULL; 1499 1499 INTON;
Note:
See TracChangeset
for help on using the changeset viewer.