Date: Fri, 13 May 2016 19:36:51 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415142 - head/math/xgraph/files Message-ID: <201605131936.u4DJapuJ073299@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri May 13 19:36:51 2016 New Revision: 415142 URL: https://svnweb.freebsd.org/changeset/ports/415142 Log: Prevent collision with getline(3) While here regen patches Added: head/math/xgraph/files/patch-dialog.c (contents, props changed) Modified: head/math/xgraph/files/patch-hpgl.c head/math/xgraph/files/patch-ps.c head/math/xgraph/files/patch-xgraph.c head/math/xgraph/files/patch-xgraph.h head/math/xgraph/files/patch-xtb.c Added: head/math/xgraph/files/patch-dialog.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/xgraph/files/patch-dialog.c Fri May 13 19:36:51 2016 (r415142) @@ -0,0 +1,20 @@ +--- dialog.c.orig 2000-08-03 16:40:44 UTC ++++ dialog.c +@@ -702,7 +702,7 @@ xtb_frame *frame; /* Returned frame */ + new_info->lines = (Window *) malloc((unsigned) (sizeof(Window) * E_LINES)); + + lineptr = text; +- while (getline(&lineptr, line)) { ++ while (get_line(&lineptr, line)) { + if (new_info->num_lines >= new_info->alloc_lines) { + new_info->alloc_lines *= 2; + new_info->lines = (Window *) realloc((char *) new_info->lines, +@@ -800,7 +800,7 @@ char *err_text; + + + +-int getline(tptr, lptr) ++int get_line(tptr, lptr) + char **tptr; + char *lptr; + /* Modified: head/math/xgraph/files/patch-hpgl.c ============================================================================== --- head/math/xgraph/files/patch-hpgl.c Fri May 13 19:34:56 2016 (r415141) +++ head/math/xgraph/files/patch-hpgl.c Fri May 13 19:36:51 2016 (r415142) @@ -1,5 +1,5 @@ ---- hpgl.c.orig Thu Aug 3 03:31:56 2000 -+++ hpgl.c Sun Aug 6 23:45:06 2000 +--- hpgl.c.orig 2000-08-02 18:31:56 UTC ++++ hpgl.c @@ -13,9 +13,8 @@ #include "xgout.h" #include "plotter.h" Modified: head/math/xgraph/files/patch-ps.c ============================================================================== --- head/math/xgraph/files/patch-ps.c Fri May 13 19:34:56 2016 (r415141) +++ head/math/xgraph/files/patch-ps.c Fri May 13 19:36:51 2016 (r415142) @@ -1,6 +1,6 @@ ---- ps.c.orig Thu Jul 17 03:40:40 1997 -+++ ps.c Fri Dec 10 03:11:36 1999 -@@ -57,7 +57,6 @@ +--- ps.c.orig 2000-08-02 21:17:34 UTC ++++ ps.c +@@ -59,7 +59,6 @@ #define PS(str) OUT(psFile, str) #define PSU(str) OUT(ui->psFile, str) #define IY(val) (ui->height_devs - val) Modified: head/math/xgraph/files/patch-xgraph.c ============================================================================== --- head/math/xgraph/files/patch-xgraph.c Fri May 13 19:34:56 2016 (r415141) +++ head/math/xgraph/files/patch-xgraph.c Fri May 13 19:36:51 2016 (r415142) @@ -1,6 +1,6 @@ ---- xgraph.c 2000-09-10 07:05:47.000000000 -0700 -+++ xgraph.c 2014-12-15 22:32:58.000000000 -0800 -@@ -74,8 +74,6 @@ +--- xgraph.c.orig 2000-09-10 14:05:47 UTC ++++ xgraph.c +@@ -74,8 +74,6 @@ #define BTNPAD 1 #define BTNINTER 3 @@ -9,7 +9,7 @@ #define ABS(x) ((x) < 0 ? -(x) : (x)) #define ZERO_THRES 1.0E-07 -@@ -333,6 +331,7 @@ +@@ -333,6 +331,7 @@ char *argv[]; if (!strm) { (void) fprintf(stderr, "Warning: cannot open file `%s'\n", inFileNames[idx]); @@ -17,7 +17,7 @@ } else { if ((maxitems = ReadData(strm, inFileNames[idx])) < 0) { errs++; -@@ -403,6 +402,7 @@ +@@ -403,6 +402,7 @@ char *argv[]; fg_color = PM_COLOR("Foreground"); bg_color = PM_COLOR("Background"); XRecolorCursor(disp, zoomCursor, &fg_color, &bg_color); @@ -25,7 +25,7 @@ Num_Windows = 1; while (Num_Windows > 0) { -@@ -415,6 +415,12 @@ +@@ -415,6 +415,12 @@ char *argv[]; continue; } switch (theEvent.type) { @@ -38,7 +38,7 @@ case Expose: if (theEvent.xexpose.count <= 0) { XWindowAttributes win_attr; -@@ -422,7 +428,7 @@ +@@ -422,7 +428,7 @@ char *argv[]; XGetWindowAttributes(disp, theEvent.xany.window, &win_attr); win_info->dev_info.area_w = win_attr.width; win_info->dev_info.area_h = win_attr.height; @@ -47,7 +47,7 @@ DrawWindow(win_info); } break; -@@ -715,7 +721,7 @@ +@@ -715,7 +721,7 @@ int primary; /* Is this the primary wi if (sizehints.x<0) sizehints.x = 0; sizehints.y += 25; } @@ -56,7 +56,7 @@ /* Aspect ratio computation */ if (asp < 1.0) { -@@ -723,6 +729,7 @@ +@@ -723,6 +729,7 @@ int primary; /* Is this the primary wi } else { height = ((int) (((double) NORMSIZE) / asp)); } @@ -64,7 +64,7 @@ height = MAX(MINDIM, height); width = MAX(MINDIM, width); -@@ -789,7 +796,7 @@ +@@ -789,7 +796,7 @@ int primary; /* Is this the primary wi new_info->flags = 0; XSelectInput(disp, new_window, @@ -73,7 +73,7 @@ if (!theCursor) { theCursor = XCreateFontCursor(disp, XC_top_left_arrow); fg_color = PM_COLOR("Foreground"); -@@ -1478,6 +1485,8 @@ +@@ -1478,6 +1485,8 @@ LineInfo *result; /* Returned result */ while (*line && (*line != '\n') && (*line != '"')) line++; if (*line) *line = '\0'; } else { Modified: head/math/xgraph/files/patch-xgraph.h ============================================================================== --- head/math/xgraph/files/patch-xgraph.h Fri May 13 19:34:56 2016 (r415141) +++ head/math/xgraph/files/patch-xgraph.h Fri May 13 19:36:51 2016 (r415142) @@ -1,5 +1,5 @@ ---- xgraph.h.orig Thu Jul 17 03:40:41 1997 -+++ xgraph.h Fri Dec 10 03:10:48 1999 +--- xgraph.h.orig 1997-07-16 18:40:41 UTC ++++ xgraph.h @@ -5,7 +5,12 @@ #ifndef _XGRAPH_H_ #define _XGRAPH_H_ @@ -13,7 +13,7 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/cursorfont.h> -@@ -33,20 +38,9 @@ +@@ -33,20 +38,9 @@ extern void do_hardcopy(); /* Carries ou extern void ho_dialog(); /* Hardcopy dialog */ extern void set_X(); /* Initializes X device */ @@ -33,7 +33,7 @@ +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif -- --extern void abort(); +-extern void abort(); +- #endif /* _XGRAPH_H_ */ Modified: head/math/xgraph/files/patch-xtb.c ============================================================================== --- head/math/xgraph/files/patch-xtb.c Fri May 13 19:34:56 2016 (r415141) +++ head/math/xgraph/files/patch-xtb.c Fri May 13 19:36:51 2016 (r415142) @@ -1,6 +1,6 @@ ---- xtb.c.orig Thu Jul 17 04:26:41 1997 -+++ xtb.c Fri Dec 10 03:06:26 1999 -@@ -196,7 +196,7 @@ +--- xtb.c.orig 2000-08-02 18:33:01 UTC ++++ xtb.c +@@ -198,7 +198,7 @@ Window win; { xtb_data data;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605131936.u4DJapuJ073299>