mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
- measurement offsets can now use variables. We evaluate the offset during
instantiation and create a partially formed instance. During measurement instantiation, we complete that instance. - leak.supp: finally figured out how to write a valgrind suppression file - fped.c: we don't need the FPED_NO_GUI kludge anymore - fped.c: moved gui_cleanup_style to gui_main - dereference icons (seems that this doesn't deallocate everything, though) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5514 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
11
fped.c
11
fped.c
@@ -56,13 +56,10 @@ int main(int argc, char **argv)
|
||||
int error;
|
||||
int batch_write_kicad = 0, batch_write_ps = 0;
|
||||
int c;
|
||||
int have_gui = !getenv("FPED_NO_GUI");
|
||||
|
||||
if (have_gui) {
|
||||
error = gui_init(&argc, &argv);
|
||||
if (error)
|
||||
return error;
|
||||
}
|
||||
error = gui_init(&argc, &argv);
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
while ((c = getopt(argc, argv, "kp")) != EOF)
|
||||
switch (c) {
|
||||
@@ -106,7 +103,7 @@ int main(int argc, char **argv)
|
||||
write_kicad();
|
||||
if (batch_write_ps)
|
||||
write_ps();
|
||||
if (have_gui && !batch_write_kicad && !batch_write_ps) {
|
||||
if (!batch_write_kicad && !batch_write_ps) {
|
||||
error = gui_main();
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user