From 94223a8c54f0055dfab4b5be9014c17d3c3d7ffd Mon Sep 17 00:00:00 2001 From: werner Date: Thu, 27 Aug 2009 14:24:54 +0000 Subject: [PATCH] Cause in TODO, effect: - pad type wasn't optional git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5557 99fdad57-331a-0410-800a-d7fa5415bdb3 --- TODO | 2 ++ fpd.y | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 4c21fee..2f779d8 100644 --- a/TODO +++ b/TODO @@ -36,6 +36,8 @@ Bugs: - whenever we call parse_* for input parsing, we may leak lots of expressions - can't edit measurement labels through the GUI - unbalanced parentheses in text throw off Postscript syntax +- when starting, Gtk+ may issue many "extension [...] missing" warnings, which + can (and did) hide warnings about real problems Code cleanup: - merge edit_unique with edit_name diff --git a/fpd.y b/fpd.y index d4cf190..5d54248 100644 --- a/fpd.y +++ b/fpd.y @@ -512,14 +512,19 @@ obj: ; pad_type: - ID + { + $$ = pt_normal; + } + | ID { if (!strcmp($1, "bare")) $$ = pt_bare; else if (!strcmp($1, "paste")) $$ = pt_paste; - else - $$ = pt_normal; + else { + yyerrorf("unknown pad type \"%s\"", $1); + YYABORT; + } } ;