summaryrefslogtreecommitdiffstats
path: root/Parser/parser.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-12-30 15:46:02 (GMT)
committerGuido van Rossum <guido@python.org>1994-12-30 15:46:02 (GMT)
commit588633daa2fe7276ae4b0c99723094add0d965ff (patch)
tree531b98a64c67825f81af62a682cacc29707b4b6a /Parser/parser.c
parent66cb311fba7e824f11964090bce8b6b91f00d2e4 (diff)
downloadcpython-588633daa2fe7276ae4b0c99723094add0d965ff.zip
cpython-588633daa2fe7276ae4b0c99723094add0d965ff.tar.gz
cpython-588633daa2fe7276ae4b0c99723094add0d965ff.tar.bz2
Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing;
rest: abort() -> fatal(); small things
Diffstat (limited to 'Parser/parser.c')
-rw-r--r--Parser/parser.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index 9167a9d..1b11801 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -86,10 +86,8 @@ static void
s_pop(s)
register stack *s;
{
- if (s_empty(s)) {
- fprintf(stderr, "s_pop: parser stack underflow -- FATAL\n");
- abort();
- }
+ if (s_empty(s))
+ fatal("s_pop: parser stack underflow -- FATAL");
s->s_top++;
}