Changeset 2628 in kBuild for trunk/src/kash/parser.c
- Timestamp:
- Sep 6, 2012 3:16:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/parser.c
r2312 r2628 767 767 TRACE((psh, "token %s %s\n", tokname[t], t == TWORD ? psh->wordtext : "")); 768 768 else 769 TRACE((psh, "reread token %s %s\n", tokname[t], t == TWORD ? psh->wordtext : ""));769 TRACE((psh, "reread token %s \"%s\"\n", tokname[t], t == TWORD ? psh->wordtext : "")); 770 770 #endif 771 771 return (t); … … 809 809 for (;;) { /* until token or start of word found */ 810 810 c = pgetc_macro(psh); 811 trace(psh, "xxreadtoken: c=%#x", c); 811 812 if (c == ' ' || c == '\t') 812 813 continue; /* quick check for white space first */ … … 854 855 case ')': 855 856 RETURN(TRP); 856 857 default: 857 858 goto breakloop; 858 859 } … … 1615 1616 synerror(shinstance *psh, const char *msg) 1616 1617 { 1617 if (psh->commandname) 1618 if (psh->commandname) { 1619 trace(psh, "synerror: %s: %d: Syntax error: %s", psh->commandname, psh->startlinno, msg); 1618 1620 outfmt(&psh->errout, "%s: %d: ", psh->commandname, psh->startlinno); 1621 } else { 1622 trace(psh, "synerror: Syntax error: %s\n", msg); 1623 } 1619 1624 outfmt(&psh->errout, "Syntax error: %s\n", msg); 1620 1625 error(psh, (char *)NULL);
Note:
See TracChangeset
for help on using the changeset viewer.