aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/ng-spice-rework/files')
-rw-r--r--sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r23
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch37
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch12
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch26
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch40
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch79
6 files changed, 0 insertions, 197 deletions
diff --git a/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2 b/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2
deleted file mode 100644
index 6f72fd102..000000000
--- a/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 abe283dea98b913a2122f085076865b1 ng-spice-rework-17.tar.gz 5919637
-RMD160 2345cbdb608bfb182d33c1a6497408b22acffb77 ng-spice-rework-17.tar.gz 5919637
-SHA256 58ec02a0ab48369724c9e98f9a6aa3e0f400ae7b361ba194f4bf06d1420f4496 ng-spice-rework-17.tar.gz 5919637
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch
deleted file mode 100644
index cd9f6ba49..000000000
--- a/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- src/frontend/control.c.old 2004-12-29 13:53:16.012519944 +0000
-+++ src/frontend/control.c 2004-12-29 13:53:17.683265952 +0000
-@@ -818,6 +818,17 @@
- return (0); /* va: which value? */
- }
-
-+/* va: This totally frees the control structures */
-+void cp_free_control(void)
-+{
-+ int i;
-+
-+ for (i=stackp; i>=0; i--) ctl_free(control[i]);
-+
-+ control[0] = cend[0] = NULL;
-+ stackp = 0;
-+}
-+
- /* This blows away the control structures... */
- void
- cp_resetcontrol(void)
-@@ -878,16 +889,3 @@
- cend[stackp] = cend[stackp]->co_parent;
- return;
- }
--
--
--/* va: This totally frees the control structures */
--void cp_free_control(void)
--{
-- int i;
--
-- for (i=stackp; i>=0; i--) ctl_free(control[i]);
--
-- control[0] = cend[0] = NULL;
-- stackp = 0;
--}
--
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch
deleted file mode 100644
index 2fc7626e1..000000000
--- a/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nadurp ng-spice-rework-17/src/frontend/com_let.c ng-spice-rework-17-r1/src/frontend/com_let.c
---- ng-spice-rework-17/src/frontend/com_let.c 2003-12-25 18:30:50.000000000 +0100
-+++ ng-spice-rework-17-r1/src/frontend/com_let.c 2006-05-06 23:14:10.000000000 +0200
-@@ -156,7 +156,7 @@ com_let(wordlist *wl)
- n->v_flags = (t->v_flags | VF_PERMANENT);
- n->v_length = t->v_length;
-
-- if (!t->v_numdims) {
-+ if ((!t->v_numdims)<=1) {
- n->v_numdims = 1;
- n->v_dims[0] = n->v_length;
- } else {
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch
deleted file mode 100644
index 744f23557..000000000
--- a/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -Nadurp ng-spice-rework-17/src/frontend/numparam/general.h ng-spice-rework-17-r1/src/frontend/numparam/general.h
---- ng-spice-rework-17/src/frontend/numparam/general.h 2005-04-24 23:18:02.000000000 +0200
-+++ ng-spice-rework-17-r1/src/frontend/numparam/general.h 2006-05-06 23:07:39.000000000 +0200
-@@ -136,7 +136,7 @@ Type(Pchar, char AT)
- #define Str(n,a) char a[n+3]={0,0,(char)n} /* n<255 ! */
- #define Sini(s) sini(s,sizeof(s)-4)
-
--Cconst(Maxstr,2004) /* was 255, string maxlen, may be up to 32000 or so */
-+Cconst(Maxstr,32004) /* was 255, string maxlen, may be up to 32000 or so */
-
- typedef char string[258];
-
-diff -Nadurp ng-spice-rework-17/src/frontend/numparam/numparam.h ng-spice-rework-17-r1/src/frontend/numparam/numparam.h
---- ng-spice-rework-17/src/frontend/numparam/numparam.h 2005-05-29 03:18:20.000000000 +0200
-+++ ng-spice-rework-17-r1/src/frontend/numparam/numparam.h 2006-05-06 23:06:37.000000000 +0200
-@@ -28,8 +28,8 @@ Cconst(Llen,1000)
- typedef char str20 [24];
- typedef char str80 [84];
-
--Cconst(Maxline, 1000) /* size of initial unexpanded circuit code */
--Cconst(Maxckt, 5000) /* size of expanded circuit code */
-+Cconst(Maxline, 10000) /* size of initial unexpanded circuit code */
-+Cconst(Maxckt, 30000) /* size of expanded circuit code */
-
-
- typedef Pchar auxtable; /* dummy */
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch
deleted file mode 100644
index 871355f6c..000000000
--- a/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -Nadurp ng-spice-rework-17/src/main.c ng-spice-rework-17-r1/src/main.c
---- ng-spice-rework-17/src/main.c 2005-05-31 18:47:48.000000000 +0200
-+++ ng-spice-rework-17-r1/src/main.c 2006-05-09 10:24:47.000000000 +0200
-@@ -516,6 +516,7 @@ show_help(void)
- " -i, --interactive run in interactive mode\n"
- " -n, --no-spiceinit don't load the local or user's config file\n"
- " -o, --output=FILE set the outputfile\n"
-+ " -p, --pipe run in I/O pipe mode\n"
- " -q, --completion activate command completion\n"
- " -r, --rawfile=FILE set the rawfile output\n"
- " -s, --server run spice as a server process\n"
-@@ -738,6 +739,7 @@ main(int argc, char **argv)
- {"interactive", 0, 0, 'i'},
- {"no-spiceinit", 0, 0, 'n'},
- {"output", 0, 0, 'o'},
-+ {"pipe", 0, 0, 'p'},
- {"completion", 0, 0, 'q'},
- {"rawfile", 1, 0, 'r'},
- {"server", 0, 0, 's'},
-@@ -745,7 +747,7 @@ main(int argc, char **argv)
- {0, 0, 0, 0}
- };
-
-- c = getopt_long (argc, argv, "hvbc:ihno:qr:st:",
-+ c = getopt_long (argc, argv, "hvbc:ihno:pqr:st:",
- long_options, &option_index);
- if (c == -1)
- break;
-@@ -779,6 +781,11 @@ main(int argc, char **argv)
- iflag = TRUE;
- break;
-
-+ case 'p': /* Pipe mode */
-+ iflag = TRUE;
-+ istty = TRUE;
-+ break;
-+
- case 'n': /* Don't read initialisation file */
- readinit = FALSE;
- break;
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch
deleted file mode 100644
index e9e1a67e4..000000000
--- a/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-diff -Nadurp ng-spice-rework-17/src/frontend/postsc.c ng-spice-rework-17-r1/src/frontend/postsc.c
---- ng-spice-rework-17/src/frontend/postsc.c 2005-05-30 22:28:30.000000000 +0200
-+++ ng-spice-rework-17-r1/src/frontend/postsc.c 2006-05-04 09:44:06.000000000 +0200
-@@ -88,14 +88,13 @@ PS_Init(void)
- scale = 1.0;
- }
-
-+ dispdev->numlinestyles = NUMELEMS(linestyle);
- if (!cp_getvar("hcopypscolor", VT_STRING, pscolor)) {
- colorflag = 0;
- dispdev->numcolors = 2;
-- dispdev->numlinestyles = NUMELEMS(linestyle);
- } else {
- colorflag = 1;
- dispdev->numcolors = 18; /* don't know what the maximum should be */
-- dispdev->numlinestyles = 1;
- }
- pscolor[0]='\0';
-
-@@ -118,6 +117,10 @@ PS_Init(void)
- dispdev->height = 10000;
- }
-
-+ dispdev->width *= 1000;
-+ dispdev->height *= 1000;
-+ scale *= 1000.0;
-+
- /* The following side effects have to be considered
- * when the printer is called by com_hardcopy !
- * gr_init:
-@@ -160,6 +163,7 @@ PS_NewViewport(GRAPH *graph)
- {
- int x1,x2,y1,y2;
- hcopygraphid = graph->graphid;
-+ bool nobg;
-
- if (!(plotfile = fopen(graph->devdep, "w"))) {
- perror(graph->devdep);
-@@ -180,29 +184,33 @@ PS_NewViewport(GRAPH *graph)
- graph->absolute.width = dispdev->width;
- graph->absolute.height = dispdev->height;
- /* Also done in gr_init, if called . . . */
-- graph->viewportxoff = 8 * fontwidth;
-- graph->viewportyoff = 4 * fontheight;
-+ graph->viewportxoff = 8 * graph->fontwidth;
-+ graph->viewportyoff = 4 * graph->fontheight;
-
- xoff = scale * XOFF;
- yoff = scale * YOFF;
-
- x1 = 0.75 * 72;
- y1 = x1;
-- x2 = graph->absolute.width + .75 * 72;
-- y2 = graph->absolute.height + .75 * 72;
-+ x2 = graph->absolute.width / 1000 + 0.75 * 72;
-+ y2 = graph->absolute.height / 1000 + 0.75 * 72;
- /* start file off with a % */
- fprintf(plotfile, "%%!PS-Adobe-3.0 EPSF-3.0\n");
- fprintf(plotfile, "%%%%Creator: nutmeg\n");
- fprintf(plotfile, "%%%%BoundingBox: %d %d %d %d\n",x1,y1,x2,y2);
-
- fprintf(plotfile, "%g %g scale\n", 1.0 / scale, 1.0 / scale);
-+ fprintf(plotfile, "1000 setlinewidth\n");
-
-- if (colorflag == 1){ /* set the background to color0 */
-+ cp_getvar("hcopypsnobg", VT_BOOL, &nobg);
-+ if (!nobg && colorflag == 1){ /* set the background to color0 */
- PS_SelectColor(0);
- fprintf(plotfile,"%s setrgbcolor\n",pscolor);
- fprintf(plotfile,"newpath\n");
-- fprintf(plotfile,"%d %d moveto %d %d lineto\n",x1,y1,x2,y1);
-- fprintf(plotfile,"%d %d lineto %d %d lineto\n",x2,y2,x1,y2);
-+ fprintf(plotfile,"%d %d moveto %d %d lineto\n",
-+ x1*1000,y1*1000,x2*1000,y1*1000);
-+ fprintf(plotfile,"%d %d lineto %d %d lineto\n",
-+ x2*1000,y2*1000,x1*1000,y2*1000);
- fprintf(plotfile,"closepath fill\n");
- }
-