[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: globals.c
User: sdb
Date: 05/05/17 11:33:38
Modified: . globals.c parsecmd.c
Log:
Incorporated new -e command line flag which forces embedding
of .include file's contents into SPICE netlist.
Revision Changes Path
1.21 +1 -0 eda/geda/devel/gnetlist/src/globals.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: globals.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/src/globals.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- globals.c 19 Feb 2005 23:26:58 -0000 1.20
+++ globals.c 17 May 2005 15:33:37 -0000 1.21
@@ -72,6 +72,7 @@
int quiet_mode=FALSE;
int sort_mode=FALSE;
int include_mode=FALSE;
+int embedd_mode=FALSE;
/* what kind of netlist are we generating? see define.h for #defs */
int netlist_mode=gEDA;
1.21 +7 -1 eda/geda/devel/gnetlist/src/parsecmd.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: parsecmd.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/src/parsecmd.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- parsecmd.c 8 Feb 2005 19:48:22 -0000 1.20
+++ parsecmd.c 17 May 2005 15:33:37 -0000 1.21
@@ -36,7 +36,7 @@
#include <dmalloc.h>
#endif
-#define OPTIONS "o:qiIhvsg:c:l:m:O:"
+#define OPTIONS "o:qieIhvsg:c:l:m:O:"
#ifndef OPTARG_IN_UNISTD
extern char *optarg;
@@ -47,6 +47,7 @@
void usage(char *cmd)
{
printf("Usage: %s [OPTIONS] filename1 ... filenameN\n", cmd);
+ printf(" -e Force embedding contents of .include file\n");
printf(" -i Interactive scheme mode\n");
printf(" -I Put .INCLUDE <filename> in output file instead\n");
printf(" of model file's contents\n");
@@ -119,6 +120,11 @@
include_mode = TRUE;
break;
+ case 'e':
+ backend_params = g_slist_append(backend_params, "embedd_mode");
+ embedd_mode = TRUE;
+ break;
+
case 'q':
backend_params = g_slist_append(backend_params, "quiet_mode");
quiet_mode = TRUE;