head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.160 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.158 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.156 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.154 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.152 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.150 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.148 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.146 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.144 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.142 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.140 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.138 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.136 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.134 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.132 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.130 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.128 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.126 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.124 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.122 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.120 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.118 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.116 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.112 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.92 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.114 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.110 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.108 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.106 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.104 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.102 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.100 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.98 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.96 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.94 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.90 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.88 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.86 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.84 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.82 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.80 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.78 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.76 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.74 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.72 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.70 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.68 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.66 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.64 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.62 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.60 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.58 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.56 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.54 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.52 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.50 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.48 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.46 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.44 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.42 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.40 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.38 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.36 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.34 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.32 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.30 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.28 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.26 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.24 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.22 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.20 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.18 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.16 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.14 pkgsrc-2008Q1:1.2.0.12 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.10 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.8 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.6 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.4 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.2 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.1.0.32 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.30 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.28 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.26 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.2 date 2006.10.09.20.04.38; author mlelstv; state Exp; branches; next 1.1; 1.1 date 99.10.01.17.05.15; author dmcmahill; state Exp; branches; next ; desc @@ 1.2 log @Make package compile with gcc-4. @ text @$NetBSD$ --- src/lib/fte/grid.c.orig 1993-04-25 23:53:11.000000000 +0200 +++ src/lib/fte/grid.c @@@@ -17,11 +17,14 @@@@ Copyright 1990 Regents of the University #include "suffix.h" #define RAD_TO_DEG (180.0 / M_PI) +#define LABEL_CHARS 20 static double *lingrid(), *loggrid(); static void polargrid(), smithgrid(); static void drawpolargrid( ); static void drawsmithgrid( ); +static void drawlingrid( ); +static void drawloggrid( ); static void arcset(); static double cliparc(); @@@@ -225,7 +228,7 @@@@ lingrid(graph, lo, hi, delta, type, axis int max; static double dd[2]; int mult = 1; - char buf[16], *s; + char buf[LABEL_CHARS], *s; int slim, digits; if (axis == y_axis && graph->grid.ysized) { @@@@ -473,11 +476,11 @@@@ lingrid(graph, lo, hi, delta, type, axis return (dd); } -static +static void drawlingrid(graph, units, spacing, nsp, dst, lmt, hmt, onedec, mult, mag, digits, axis) GRAPH *graph; - char units[16]; + char *units; bool onedec; int nsp, spacing, mult; double hmt, lmt, dst; @@@@ -488,7 +491,7 @@@@ drawlingrid(graph, units, spacing, nsp, int i, j; double m, step; - char buf[16]; + char buf[LABEL_CHARS]; /* i counts how many pixels we have drawn, and j counts which unit * we are at. @@@@ -567,7 +570,7 @@@@ loggrid(graph, lo, hi, type, axis) double k; double decs; double mag, gain; - char buf[32], *s; + char buf[LABEL_CHARS], *s; if (axis == x_axis && graph->grid.xsized) { lmt = graph->grid.xaxis.log.lmt; @@@@ -661,7 +664,7 @@@@ loggrid(graph, lo, hi, type, axis) } -static +static void drawloggrid(graph, units, hmt, lmt, decsp, subs, pp, axis) GRAPH *graph; char *units; @@@@ -671,7 +674,7 @@@@ drawloggrid(graph, units, hmt, lmt, decs { int i, j, k, l, m; double t; - char buf[16]; + char buf[LABEL_CHARS]; /* Now plot every pp'th decade line, with subs lines between them. */ if (subs > 1) @ 1.1 log @- added missing -Wl,-Rpath for the X11 libraries - fixed program version number reported when spice is run to make it consistent with the version of the program. - several patches to fix compilation warnings due to missing header files and some inconsistent variable types. - broke out previous patch-aa which patched several files into 1 patch per file. - fixed some code which returned the address of a local char array variable. - added GNU readline support (a huge improvement in the interface) - changed USE_X11BASE to USE_X11. No reason to install into X11BASE. - removed 'x' target from package Makefile @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 1998/08/07 10:36:29 agc Exp $ d3 76 a78 141 NOTE: This are Berkeley patches for 3F4 *** src/lib/fte/grid.c.orig Sun Apr 25 14:53:11 1993 --- src/lib/fte/grid.c Sat Jan 29 10:47:59 1994 *************** *** 17,22 **** --- 17,23 ---- #include "suffix.h" #define RAD_TO_DEG (180.0 / M_PI) + #define LABEL_CHARS 20 static double *lingrid(), *loggrid(); static void polargrid(), smithgrid(); *************** *** 225,231 **** int max; static double dd[2]; int mult = 1; ! char buf[16], *s; int slim, digits; if (axis == y_axis && graph->grid.ysized) { --- 226,232 ---- int max; static double dd[2]; int mult = 1; ! char buf[LABEL_CHARS], *s; int slim, digits; if (axis == y_axis && graph->grid.ysized) { *************** *** 477,483 **** drawlingrid(graph, units, spacing, nsp, dst, lmt, hmt, onedec, mult, mag, digits, axis) GRAPH *graph; ! char units[16]; bool onedec; int nsp, spacing, mult; double hmt, lmt, dst; --- 478,484 ---- drawlingrid(graph, units, spacing, nsp, dst, lmt, hmt, onedec, mult, mag, digits, axis) GRAPH *graph; ! char *units; bool onedec; int nsp, spacing, mult; double hmt, lmt, dst; *************** *** 488,494 **** int i, j; double m, step; ! char buf[16]; /* i counts how many pixels we have drawn, and j counts which unit * we are at. --- 489,495 ---- int i, j; double m, step; ! char buf[LABEL_CHARS]; /* i counts how many pixels we have drawn, and j counts which unit * we are at. *************** *** 567,573 **** double k; double decs; double mag, gain; ! char buf[32], *s; if (axis == x_axis && graph->grid.xsized) { lmt = graph->grid.xaxis.log.lmt; --- 568,574 ---- double k; double decs; double mag, gain; ! char buf[LABEL_CHARS], *s; if (axis == x_axis && graph->grid.xsized) { lmt = graph->grid.xaxis.log.lmt; *************** *** 671,677 **** { int i, j, k, l, m; double t; ! char buf[16]; /* Now plot every pp'th decade line, with subs lines between them. */ if (subs > 1) --- 672,678 ---- { int i, j, k, l, m; double t; ! char buf[LABEL_CHARS]; /* Now plot every pp'th decade line, with subs lines between them. */ if (subs > 1) *** src/lib/fte/newcoms.c.orig Sun Mar 7 16:30:58 1993 --- src/lib/fte/newcoms.c Wed Feb 23 22:39:55 1994 *************** *** 151,156 **** --- 151,160 ---- /* Copy from the first */ vname = cp_unquote(wl->wl_word); dv = vec_get(vname); + if (!dv) { + printf("'%s' reference vector not found\n", vname); + return; + } numdims = dv->v_numdims; dims = dv->v_dims; wl = wl->wl_next; *** src/lib/sparse/spsmp.c.orig Wed Feb 3 14:20:50 1993 --- src/lib/sparse/spsmp.c Sun Jan 30 11:53:10 1994 *************** *** 483,492 **** int CreateIfMissing; { MatrixPtr Matrix = (MatrixPtr)eMatrix; ! ElementPtr Element = Matrix->FirstInCol[Col]; /* Begin `SMPfindElt'. */ ASSERT( IS_SPARSE( Matrix ) ); Element = spcFindElementInCol(Matrix, &Element, Row, Col, CreateIfMissing); return (SMPelement *)Element; } --- 485,497 ---- int CreateIfMissing; { MatrixPtr Matrix = (MatrixPtr)eMatrix; ! ElementPtr Element; /* Begin `SMPfindElt'. */ ASSERT( IS_SPARSE( Matrix ) ); + Row = Matrix->ExtToIntRowMap[Row]; + Col = Matrix->ExtToIntColMap[Col]; + Element = Matrix->FirstInCol[Col]; Element = spcFindElementInCol(Matrix, &Element, Row, Col, CreateIfMissing); return (SMPelement *)Element; } @