summaryrefslogtreecommitdiff
path: root/cad/spice/files/patch-src_lib_fte_x11_c
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-07-28 21:58:16 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-07-28 21:58:16 +0000
commitd944917e18f9336f22a9ec9ca1ba0a21806aa393 (patch)
treebe58795dca95fae6087c39965a0a89eae6ed2190 /cad/spice/files/patch-src_lib_fte_x11_c
parentDo not overwrite user-edited config files in ETCDIR [1] (diff)
Fix build under clang [1]
Add LICENSE Fix usage of PORTDOCS in plist, no bump required PR: ports/159173 Submitted by: Pedro Giffuni <giffunip@tutopia.com> [1] Approved by: tabthorpe (mentor)
Diffstat (limited to 'cad/spice/files/patch-src_lib_fte_x11_c')
-rw-r--r--cad/spice/files/patch-src_lib_fte_x11_c62
1 files changed, 54 insertions, 8 deletions
diff --git a/cad/spice/files/patch-src_lib_fte_x11_c b/cad/spice/files/patch-src_lib_fte_x11_c
index 05875dc0c429..692480e17f95 100644
--- a/cad/spice/files/patch-src_lib_fte_x11_c
+++ b/cad/spice/files/patch-src_lib_fte_x11_c
@@ -1,6 +1,17 @@
---- src/lib/fte/x11.c.orig Wed Apr 14 21:44:56 1993
-+++ src/lib/fte/x11.c Sun Aug 15 19:06:31 2004
-@@ -120,7 +120,10 @@
+--- src/lib/fte/x11.c.orig 1993-04-14 19:44:56.000000000 +0000
++++ src/lib/fte/x11.c 2011-07-26 23:16:48.000000000 +0000
+@@ -36,6 +36,10 @@
+ extern int _Xdebug;
+ # endif
+
++void initlinestyles(void);
++void initcolors(GRAPH *graph);
++void slopelocation(GRAPH *graph, int x0, int y0);
++
+ /* forward declarations */
+ extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(),
+ redraw(), resize();
+@@ -120,7 +124,10 @@
/* "invert" works better than "xor" for B&W */
/* xor gc should be a function of the pixels that are written on */
@@ -12,25 +23,52 @@
gcvalues.line_width = 1;
gcvalues.foreground = 1;
gcvalues.background = 0;
-@@ -302,7 +305,7 @@
+@@ -152,7 +159,7 @@
+ {
+ XGetErrorText(display, errorev->error_code, ErrorMessage, 1024);
+ externalerror(ErrorMessage);
+- return;
++ return (0);
+ }
+
+ /* Recover from bad NewViewPort call. */
+@@ -302,7 +309,8 @@
return (0);
}
-static
+/* PN static */
++void
initlinestyles()
{
-@@ -318,7 +321,7 @@
+@@ -318,7 +326,8 @@
return;
}
-static
+/* PN static */
++void
initcolors(graph)
GRAPH *graph;
{
-@@ -805,8 +808,9 @@
+@@ -405,6 +414,7 @@
+ }
+
+ /*ARGSUSED*/
++void
+ X11_Arc(x0, y0, radius, theta1, theta2)
+ int x0, y0, radius;
+ double theta1, theta2;
+@@ -612,6 +622,7 @@
+ }
+ # endif
+
++void
+ slopelocation(graph, x0, y0)
+ GRAPH *graph;
+ int x0, y0; /* initial position of mouse */
+@@ -805,8 +816,9 @@
/* Iplots are done asynchronously */
DEVDEP(graph).isopen = 0;
@@ -41,7 +79,15 @@
}
-@@ -942,7 +946,8 @@
+@@ -915,6 +927,7 @@
+ }
+ # endif
+
++void
+ X11_Input(request, response)
+ REQUEST *request;
+ RESPONSE *response;
+@@ -942,7 +955,8 @@
1 << ConnectionNumber(display);
/* block on ConnectionNumber and request->fp */
@@ -51,7 +97,7 @@
/* handle X events first */
if (readfds & (1 << ConnectionNumber(display))) {
-@@ -995,7 +1000,8 @@
+@@ -995,7 +1009,8 @@
}