[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: x_window.c
User: sdb
Date: 06/09/13 14:37:03
Modified: . x_window.c
Log:
made gattrib exit with return code -1 when no components or attribs found.
Revision Changes Path
1.11 +3 -3 eda/geda/gaf/gattrib/src/x_window.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_window.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/x_window.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- x_window.c 12 Aug 2006 18:58:48 -0000 1.10
+++ x_window.c 13 Sep 2006 18:37:02 -0000 1.11
@@ -248,21 +248,21 @@
fprintf(stderr, "\n\nNo components found in entire design!\n");
fprintf(stderr, "Do you have refdeses on your components? \n");
fprintf(stderr, "Exiting. . . .\n");
- exit(0);
+ exit(-1);
}
if (sheet_head->comp_attrib_count == 0) {
fprintf(stderr, "\n\nNo configurable component attributes found in entire design!");
fprintf(stderr, "Please attach at least some attributes before running gattrib.\n");
fprintf(stderr, "Exiting. . . .\n");
- exit(0);
+ exit(-2);
}
if (sheet_head->pin_count == 0) {
fprintf(stderr, "\n\nNo pins found on any components!\n");
fprintf(stderr, "Please check your design.\n");
fprintf(stderr, "Exiting. . . .\n");
- exit(0);
+ exit(-3);
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs