1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-19 04:02:27 +02:00

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
This commit is contained in:
werner 2009-08-27 14:24:54 +00:00
parent 8d94993c45
commit 94223a8c54
2 changed files with 10 additions and 3 deletions

2
TODO
View File

@ -36,6 +36,8 @@ Bugs:
- whenever we call parse_* for input parsing, we may leak lots of expressions - whenever we call parse_* for input parsing, we may leak lots of expressions
- can't edit measurement labels through the GUI - can't edit measurement labels through the GUI
- unbalanced parentheses in text throw off Postscript syntax - 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: Code cleanup:
- merge edit_unique with edit_name - merge edit_unique with edit_name

11
fpd.y
View File

@ -512,14 +512,19 @@ obj:
; ;
pad_type: pad_type:
ID {
$$ = pt_normal;
}
| ID
{ {
if (!strcmp($1, "bare")) if (!strcmp($1, "bare"))
$$ = pt_bare; $$ = pt_bare;
else if (!strcmp($1, "paste")) else if (!strcmp($1, "paste"))
$$ = pt_paste; $$ = pt_paste;
else else {
$$ = pt_normal; yyerrorf("unknown pad type \"%s\"", $1);
YYABORT;
}
} }
; ;