1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

- added support for string constants to unparse()

- implemented eval_str
- expand() now tries to obtain a string
- added example fbga.fpd to demonstrate use of strings
- when invoked with an inexisting file, fped now starts with an empty model,
  instead of getting confused 
- we now religiously call edit_nothing before adding fields to edit, so that
  we won't create a loop through edit-next



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5421 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner
2009-08-11 23:26:38 +00:00
parent 3064b2abbb
commit 386a9fd50b
9 changed files with 170 additions and 30 deletions

8
fped.c
View File

@@ -32,8 +32,12 @@ char *save_file_name = NULL;
static void load_file(const char *name)
{
reporter = report_parse_error;
run_cpp_on_file(name);
if (file_exists(name) == 1) {
reporter = report_parse_error;
run_cpp_on_file(name);
} else {
scan_empty();
}
(void) yyparse();
}