comparison src/syntax.c @ 16:0293115a14e9 r19-15b91

Import from CVS: tag r19-15b91
author cvs
date Mon, 13 Aug 2007 08:49:20 +0200
parents ac2d302a0011
children 859a2309aef8
comparison
equal deleted inserted replaced
15:ad457d5f7d04 16:0293115a14e9
1365 curlevel->last = from - 1; 1365 curlevel->last = from - 1;
1366 if (++curlevel == endlevel) 1366 if (++curlevel == endlevel)
1367 error ("Nesting too deep for parser"); 1367 error ("Nesting too deep for parser");
1368 curlevel->prev = -1; 1368 curlevel->prev = -1;
1369 curlevel->last = -1; 1369 curlevel->last = -1;
1370 if (!--targetdepth) goto done; 1370 if (targetdepth == depth) goto done;
1371 break; 1371 break;
1372 1372
1373 case Sclose: 1373 case Sclose:
1374 depth--; 1374 depth--;
1375 if (depth < mindepth) 1375 if (depth < mindepth)
1376 mindepth = depth; 1376 mindepth = depth;
1377 if (curlevel != levelstart) 1377 if (curlevel != levelstart)
1378 curlevel--; 1378 curlevel--;
1379 curlevel->prev = curlevel->last; 1379 curlevel->prev = curlevel->last;
1380 if (!++targetdepth) goto done; 1380 if (targetdepth == depth) goto done;
1381 break; 1381 break;
1382 1382
1383 case Sstring: 1383 case Sstring:
1384 { 1384 {
1385 Emchar ch; 1385 Emchar ch;