diff options
Diffstat (limited to 'graphics/gplot/files')
21 files changed, 0 insertions, 854 deletions
diff --git a/graphics/gplot/files/patch-Makefile b/graphics/gplot/files/patch-Makefile deleted file mode 100644 index d228ef526476..000000000000 --- a/graphics/gplot/files/patch-Makefile +++ /dev/null @@ -1,302 +0,0 @@ ---- Makefile.orig Tue Oct 27 07:07:42 1992 -+++ Makefile Sun Oct 19 02:41:01 2003 -@@ -55,9 +55,9 @@ - # lvr.o lvr_io.o sony laser video disk recorder controller - # dq.o diaquest controller - --DRV_FLAGS = -Dincps -Dinctek -Dinccgmc -Dinccgmb -+DRV_FLAGS = -Dincps -Dinctek -Dinccgmc -Dinccgmb - --CTR_FLAGS = -O -Dinctty -+CTR_FLAGS = $(CFLAGS) -Dinctty - CTR_OBJ = tty.o - - XWS_OBJ = xws_cla.o xws_color.o xws_delim.o xws_marker.o xws_polygon.o \ -@@ -87,8 +87,8 @@ - - # To build this software on a Sun workstation, uncomment the next lines. - #AR = ar ru --#F_LINK = f77 --#RANLIB = ranlib -+F_LINK = f77 -+RANLIB = ranlib - # To include the Sunview driver and gplottool interface, uncomment SVLIBS. - # To include the Sun CGI B&W driver, uncomment SLIBS. - # NOTE: Uncomment only one of the following two lines. -@@ -141,7 +141,7 @@ - #CFLAGS = -g - # To build Gplot on the IRIS, uncomment the next line. - #CFLAGS = -cckr --CFLAGS = -+#CFLAGS = - - # ****************************************************************** - # -@@ -162,32 +162,32 @@ - utils.o carray.o io.o $(FONTS) devices.o emul.o - - gplot: $(GPT_OBJ) $(CTR_OBJ) $(DRV_OBJ) $(MACHINE_OBJ) -- cc -o $@ $(GPT_OBJ) $(CTR_OBJ) $(DRV_OBJ) $(MACHINE_OBJ) $(LIBS) -+ $(CC) -o $@ $(GPT_OBJ) $(CTR_OBJ) $(DRV_OBJ) $(MACHINE_OBJ) $(LIBS) - - gtex: $(GTEX_OBJ) ps.o tek.o qms.o cgmb.o cgmc.o tty.o -- cc -o $@ $(GTEX_OBJ) ps.o tek.o qms.o cgmb.o cgmc.o tty.o -lm -+ $(CC) -o $@ $(GTEX_OBJ) ps.o tek.o qms.o cgmb.o cgmc.o tty.o -lm - - gplottool: gplot_suntool.o wint.o ccgm.o cgm.o utils.o io.o carray.o \ - hload.o emul.o sv.o -- cc -o $@ gplot_suntool.o wint.o cgm.o utils.o io.o carray.o ccgm.o \ -+ $(CC) -o $@ gplot_suntool.o wint.o cgm.o utils.o io.o carray.o ccgm.o \ - hload.o emul.o sv.o $(LIBS) - - # To use the xws driver for gplotdw, include $(XWS_OBJ) instead of xl.o - gplotdw: gplotdw.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ - hload.o xl.o -- cc -o $@ gplotdw.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ -+ $(CC) -o $@ gplotdw.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ - hload.o xl.o $(LIBS) - - # To use the xws driver for gplotaw, include $(XWS_OBJ) instead of xl.o - gplotaw: gplotaw.o wint.o cgm.o ccgm.o utils.o io.o carray.o \ - hload.o emul.o xl.o $(MACHINE_OBJ) -- cc -o $@ gplotaw.o wint.o cgm.o ccgm.o utils.o io.o carray.o \ -+ $(CC) -o $@ gplotaw.o wint.o cgm.o ccgm.o utils.o io.o carray.o \ - hload.o emul.o xl.o $(MACHINE_OBJ) $(LIBS) - - # To use the xws driver for gplotm, include $(XWS_OBJ) instead of xl.o - gplotm: gplotm.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ - hload.o xl.o $(MACHINE_OBJ) -- cc -o $@ gplotm.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ -+ $(CC) -o $@ gplotm.o wint.o cgm.o utils.o io.o carray.o ccgm.o emul.o \ - hload.o xl.o $(MACHINE_OBJ) $(LIBS) - - drawcgm: $(DCGM_PATH)drawcgm.a -@@ -230,77 +230,77 @@ - - # controlling GPLOT program - gplot.o: gplot.c defs.h -- cc -c $(CFLAGS) gplot.c -+ $(CC) -c $(CFLAGS) gplot.c - - # controlling GPLOT program for the SUNview driver - gplot_suntool.o: gplot_suntool.c defs.h -- cc -c $(CFLAGS) gplot_suntool.c -+ $(CC) -c $(CFLAGS) gplot_suntool.c - - # controlling GPLOTAW program for Athena Widgets - gplotaw.o: gplotaw.c - # To make gplotaw (xl) compile on the Cray, uncomment the next line --# cc -c -DR3_INTRINSICS gplotaw.c -+# $(CC) -c -DR3_INTRINSICS gplotaw.c - # To make gplotaw (xws) compile on the Cray, uncomment the next line --# cc -c -DR3_INTRINSICS -Dincxws gplotaw.c -+# $(CC) -c -DR3_INTRINSICS -Dincxws gplotaw.c - # To use the xws driver for gplotaw, uncomment the next line --# cc -c $(CFLAGS) -Dincxws gplotaw.c -+# $(CC) -c $(CFLAGS) -Dincxws gplotaw.c - - # controlling GPLOTDW program for Decwindows - gplotdw.o: gplotdw.c defs.h - # To use the xws driver for gplotdw, uncomment the next line --# cc -c $(CFLAGS) -Dincxws gplotdw.c -+# $(CC) -c $(CFLAGS) -Dincxws gplotdw.c - - # controlling GPLOTM program for Motif - gplotm.o: gplotm.c defs.h - # To use the xws driver for gplotm, uncomment the next line --# cc -c $(CFLAGS) -Dincxws gplotm.c -+# $(CC) -c $(CFLAGS) -Dincxws gplotm.c - - # window interface module - wint.o: wint.c defs.h -- cc -c $(CFLAGS) wint.c -+ $(CC) -c $(CFLAGS) wint.c - - # controlling GTEX program - gtex.o: gtex.c defs.h -- cc -c $(CFLAGS) -Dincps -Dincqms gtex.c -+ $(CC) -c $(CFLAGS) -Dincps -Dincqms gtex.c - - # all of the cgm specific stuff - cgm.o: cgm.c defs.h -- cc -c $(CFLAGS) cgm.c -+ $(CC) -c $(CFLAGS) cgm.c - - # all of the clear text cgm specific stuff - ccgm.o: ccgm.c defs.h ccdefs.h -- cc -c $(CFLAGS) ccgm.c -+ $(CC) -c $(CFLAGS) ccgm.c - - # utility functions - utils.o: utils.c defs.h -- cc -c $(CFLAGS) -Dinchershey utils.c -+ $(CC) -c $(CFLAGS) -Dinchershey utils.c - # if we wanted PK fonts also, it would be --# cc -c $(CFLAGS) -Dinchershey -Dincpkras utils.c -+# $(CC) -c $(CFLAGS) -Dinchershey -Dincpkras utils.c - - # I/O routines - io.o: io.c defs.h -- cc -c $(CFLAGS) $(CTR_FLAGS) io.c -+ $(CC) -c $(CFLAGS) $(CTR_FLAGS) io.c - # To get a gplot usage log file on Unix, uncomment the next line --# cc -c $(CTR_FLAGS) -DUSAGE_NAME=\"gplot_usage.log\" io.c -+# $(CC) -c $(CTR_FLAGS) -DUSAGE_NAME=\"gplot_usage.log\" io.c - - # devices interface - devices.o: devices.c defs.h -- cc -c $(CFLAGS) $(CTR_FLAGS) $(DRV_FLAGS) devices.c -+ $(CC) -c $(CFLAGS) $(CTR_FLAGS) $(DRV_FLAGS) devices.c - - # Cell Array libraries - carray.o: carray.c defs.h -- cc -c $(CFLAGS) carray.c -+ $(CC) -c $(CFLAGS) carray.c - - drvcla.o: drvcla.c defs.h -- cc -c $(CFLAGS) drvcla.c -+ $(CC) -c $(CFLAGS) drvcla.c - - # Emulation package - emul.o: emul.c defs.h -- cc -c $(CFLAGS) emul.c -+ $(CC) -c $(CFLAGS) emul.c - - # Hershey font support - hload.o: hload.c hload.h defs.h -- cc -c $(CFLAGS) hload.c -+ $(CC) -c $(CFLAGS) hload.c - - # decoding for the PK format files - # if fonts are available we must say here where they are -@@ -309,100 +309,100 @@ - # (1000 implies 10 point fonts at 300 pt/in), e.g., - # /usr/staff/andrews/pk/1000/cmr10.pk - pkras.o: pkras.c defs.h -- cc -c -DUNIXFONTS=\"/usr/staff/andrews/pk\" pkras.c -+ $(CC) $(CFLAGS) -c -DUNIXFONTS=\"/usr/local/share/texmf/fonts/pk\" pkras.c - - #TTY controller - tty.o: tty.c defs.h -- cc -c $(CFLAGS) tty.c -+ $(CC) -c $(CFLAGS) tty.c - - # LVR controller - lvr.o: lvr.c lvr_defines.h defs.h -- cc -c $(CFLAGS) lvr.c -+ $(CC) -c $(CFLAGS) lvr.c - # to change audit file name, lvr port --# cc -c -DAUDIT_FILE="lvr.dat" -DDEFAULT_PORT="ttyd2" lvr.c -+# $(CC) -c -DAUDIT_FILE="lvr.dat" -DDEFAULT_PORT="ttyd2" lvr.c - - dq.o: dq.c defs.h -- cc -c $(CFLAGS) dq.c -+ $(CC) -c $(CFLAGS) dq.c - - lvr_io.o: lvr_io.c lvr_defines.h -- cc -c $(CFLAGS) lvr_io.c -+ $(CC) -c $(CFLAGS) lvr_io.c - # to turn on debug I/O printout --# cc -c -DDEBUG_IO lvr_io.c -+# $(CC) -c -DDEBUG_IO lvr_io.c - - # Postscript device - ps.o: ps.c defs.h -- cc -c $(CFLAGS) ps.c -+ $(CC) -c $(CFLAGS) ps.c - - # Tektronix devices - tek.o: tek.c defs.h -- cc -c $(CFLAGS) tek.c -+ $(CC) -c $(CFLAGS) tek.c - - # Clear text CGM driver - cgmc.o: cgmc.c defs.h -- cc -c $(CFLAGS) cgmc.c -+ $(CC) -c $(CFLAGS) cgmc.c - - # Binary CGM driver - cgmb.o: cgmb.c defs.h -- cc -c $(CFLAGS) cgmb.c -+ $(CC) -c $(CFLAGS) cgmb.c - - # Sun CGI driver - sundriv.o: sundriv.c defs.h -- cc -c $(CFLAGS) sundriv.c -+ $(CC) -c $(CFLAGS) sundriv.c - - # Silicon Graphics GI driver - igl.o: igl.c defs.h -- cc -c $(CFLAGS) igl.c -+ $(CC) -c $(CFLAGS) igl.c - - # the sunview driver - sv.o: sv.c defs.h -- cc -c $(CFLAGS) sv.c -+ $(CC) -c $(CFLAGS) sv.c - - # the Xlib driver - xl.o: xl.c defs.h -- cc -c $(CFLAGS) xl.c -+ $(CC) -c $(CFLAGS) xl.c - - - #-------------- X Window System driver (xws) -------------------------- - - xws_setup.o: /usr/include/stdio.h \ - /usr/include/strings.h \ -- /usr/include/X11/Intrinsic.h \ -- /usr/include/X11/StringDefs.h \ -- /usr/include/X11/Xutil.h \ -- /usr/include/X11/cursorfont.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include/X11/StringDefs.h \ -+ $(LOCALBASE)/include/X11/Xutil.h \ -+ $(LOCALBASE)/include/X11/cursorfont.h \ - defs.h xws_defs.h - - xws_delim.o: /usr/include/stdio.h \ - /usr/include/strings.h \ -- /usr/include/X11/Intrinsic.h \ -- /usr/include/X11/Xutil.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include/X11/Xutil.h \ - defs.h xws_defs.h - - xws_color.o: /usr/include/stdio.h \ - /usr/include/math.h \ -- /usr/include/X11/Intrinsic.h \ -- /usr/include/X11/Xutil.h \ -- /usr/include/X11/Xatom.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include//X11/Xutil.h \ -+ $(LOCALBASE)/include/X11/Xatom.h \ - defs.h xws_defs.h xws_color.h - --xws_polyline.o:/usr/include/X11/Intrinsic.h \ -+xws_polyline.o:$(LOCALBASE)/include/X11/Intrinsic.h \ - defs.h xws_defs.h - - xws_polygon.o: /usr/include/stdio.h \ -- /usr/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ - defs.h xws_defs.h xws_fill.h - --xws_marker.o: /usr/include/X11/Intrinsic.h \ -+xws_marker.o: $(LOCALBASE)/include/X11/Intrinsic.h \ - defs.h xws_defs.h - - xws_text.o: /usr/include/strings.h \ -- /usr/include/X11/Intrinsic.h \ -- /usr/include/X11/Xatom.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include/X11/Xatom.h \ - defs.h xws_defs.h - - xws_cla.o: /usr/include/stdio.h \ - /usr/include/math.h \ -- /usr/include/X11/Intrinsic.h \ -+ $(LOCALBASE)/include/X11/Intrinsic.h \ - defs.h xws_defs.h xws_color.h - #----------------------------------------------------------------------------- - # DrawCGM and CGMGen, and test routines diff --git a/graphics/gplot/files/patch-carray.c b/graphics/gplot/files/patch-carray.c deleted file mode 100644 index 5296b688958d..000000000000 --- a/graphics/gplot/files/patch-carray.c +++ /dev/null @@ -1,14 +0,0 @@ ---- carray.c.orig Fri Sep 13 02:57:13 1991 -+++ carray.c Sat Jun 16 02:27:51 2007 -@@ -3,6 +3,11 @@ - /* all rights reserved */ - #include "defs.h" - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> -+ -+static do_line(); -+ - /* a few globals */ - #define byte_size 8 - unsigned char *allocate_mem(); /* in utils.c */ diff --git a/graphics/gplot/files/patch-ccgm.c b/graphics/gplot/files/patch-ccgm.c deleted file mode 100644 index 8d9c63f290a9..000000000000 --- a/graphics/gplot/files/patch-ccgm.c +++ /dev/null @@ -1,138 +0,0 @@ ---- ccgm.c.orig Mon Oct 12 23:59:40 1992 -+++ ccgm.c Sat Jun 16 03:06:24 2007 -@@ -2,9 +2,118 @@ - /* all rights reserved */ - /* module to take care of clear text command processing */ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "defs.h" /* type definitions */ - #include "ccdefs.h" /* clear text definitions */ - -+static class0(); -+static class1(); -+static class2(); -+static class3(); -+static class4(); -+static class5(); -+static class6(); -+static class7(); -+static f_b_mf(); -+static f_e_mf(); -+static f_b_p(); -+static f_b_p_body(); -+static f_e_pic(); -+static rd_mf_version(); -+static rd_mf_descriptor(); -+static s_vdc_type(); -+static s_int_prec(); -+static s_real_prec(); -+static s_index_prec(); -+static s_col_prec(); -+static s_cind_prec(); -+static s_cvextent(); -+static s_mcind(); -+static do_mcind(); -+static rd_mf_list(); -+static s_mf_defs(); -+static do_font_list(); -+static do_char_list(); -+static do_cannounce(); -+static s_scalmode(); -+static s_c_s_mode(); -+static s_lws_mode(); -+static s_ms_mode(); -+static s_ew_mode(); -+static s_vdc_extent(); -+static s_back_col(); -+static s_vdc_i_p(); -+static s_vdc_r_p(); -+static s_aux_col(); -+static s_transp(); -+static s_clip_rec(); -+static s_clip_ind(); -+static do_polyline(); -+static do_dis_polyline(); -+static do_polymarker(); -+static s_text(); -+static s_rex_text(); -+static s_app_text(); -+static do_polygon(); -+static do_polyset(); -+static do_cell_array(); -+static do_g_d_p(); -+static do_rectangle(); -+static do_circle(); -+static do_c3(); -+static do_c3_close(); -+static do_c_centre(); -+static do_c_c_close(); -+static do_ellipse(); -+static do_ell_arc(); -+static do_e_a_close(); -+static s_lbindex(); -+static s_l_type(); -+static s_l_width(); -+static s_l_colour(); -+static s_mbindex(); -+static s_mk_type(); -+static s_mk_size(); -+static s_mk_colour(); -+static s_tbindex(); -+static s_t_index(); -+static s_t_prec(); -+static s_c_exp(); -+static s_c_space(); -+static s_t_colour(); -+static s_c_height(); -+static s_c_orient(); -+static s_tpath(); -+static s_t_align(); -+static s_csindex(); -+static s_acsindex(); -+static s_fbindex(); -+static s_interior_style(); -+static s_fill_colour(); -+static s_hindex(); -+static s_pindex(); -+static s_e_b_index(); -+static s_edge_t(); -+static s_edge_w(); -+static s_edge_c(); -+static s_edge_v(); -+static s_fill_ref(); -+static p_tab_entry(); -+static s_pat_size(); -+static c_tab_entry(); -+static do_aspsflags(); -+static do_escape(); -+static do_message(); -+static do_apdata(); -+static my_scan_int(); -+static get_decimal(); -+static get_based(); -+static my_scan_float(); -+static get_token(); -+static cc_same(); -+static get_prec(); -+ - /* global pointers that use storage from the main program */ - - static struct mf_d_struct *glbl1; /* the class 1 elements */ -@@ -62,7 +171,6 @@ - - /* cgm specific functions */ - #define e_size 2 -- extern char *malloc(); /* for neatness */ - #define intalloc (int *) malloc /* for convenience */ - static char *cc_str(); /* does the necessary translation */ - static float cc_real(); /* does the necessary translation */ -@@ -3367,7 +3475,7 @@ - struct ad_struct *this_ad; /* general address structure */ - { - static struct ad_struct last_ad; /* last address */ -- char *my_ptr, c, *realloc(), last_quote = '\"'; -+ char *my_ptr, c, last_quote = '\"'; - int p_len, done, new_size; - enum {normal, quoting, spacing, commenting} my_state; - diff --git a/graphics/gplot/files/patch-cgm.c b/graphics/gplot/files/patch-cgm.c deleted file mode 100644 index 0c6de4633a5c..000000000000 --- a/graphics/gplot/files/patch-cgm.c +++ /dev/null @@ -1,114 +0,0 @@ ---- cgm.c.orig Thu Jul 18 02:21:55 1991 -+++ cgm.c Sat Jun 16 03:01:14 2007 -@@ -2,7 +2,111 @@ - /* all rights reserved */ - /* module to take care of command processing */ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "defs.h" /* type definitions */ -+ -+static class0(); -+static class1(); -+static class2(); -+static class3(); -+static class4(); -+static class5(); -+static class6(); -+static class7(); -+static f_b_mf(); -+static f_e_mf(); -+static f_b_p(); -+static f_b_p_body(); -+static f_e_pic(); -+static rd_mf_version(); -+static rd_mf_descriptor(); -+static s_vdc_type(); -+static s_int_prec(); -+static s_real_prec(); -+static s_index_prec(); -+static s_col_prec(); -+static s_cind_prec(); -+static s_cvextent(); -+static s_mcind(); -+static do_mcind(); -+static rd_mf_list(); -+static s_mf_defs(); -+static do_font_list(); -+static do_char_list(); -+static do_cannounce(); -+static s_scalmode(); -+static s_c_s_mode(); -+static s_lws_mode(); -+static s_ms_mode(); -+static s_ew_mode(); -+static s_vdc_extent(); -+static s_back_col(); -+static s_vdc_i_p(); -+static s_vdc_r_p(); -+static s_aux_col(); -+static s_transp(); -+static s_clip_rec(); -+static s_clip_ind(); -+static do_polyline(); -+static do_dis_polyline(); -+static do_polymarker(); -+static s_text(); -+static s_rex_text(); -+static s_app_text(); -+static do_polygon(); -+static do_polyset(); -+static do_cell_array(); -+static do_g_d_p(); -+static do_rectangle(); -+static do_circle(); -+static do_c3(); -+static do_c3_close(); -+static do_c3_centre(); -+static do_c_centre(); -+static do_c_c_close(); -+static do_ellipse(); -+static do_ell_arc(); -+static do_e_a_close(); -+static s_lbindex(); -+static s_l_type(); -+static s_l_width(); -+static s_l_colour(); -+static s_mbindex(); -+static s_mk_type(); -+static s_mk_size(); -+static s_mk_colour(); -+static s_tbindex(); -+static s_t_index(); -+static s_t_prec(); -+static s_c_exp(); -+static s_c_space(); -+static s_t_colour(); -+static s_c_height(); -+static s_c_orient(); -+static s_tpath(); -+static s_t_align(); -+static s_csindex(); -+static s_acsindex(); -+static s_fbindex(); -+static s_interior_style(); -+static s_fill_colour(); -+static s_hindex(); -+static s_pindex(); -+static s_e_b_index(); -+static s_edge_t(); -+static s_edge_w(); -+static s_edge_c(); -+static s_edge_v(); -+static s_fill_ref(); -+static p_tab_entry(); -+static s_pat_size(); -+static c_tab_entry(); -+static do_aspsflags(); -+static do_escape(); -+static read_index(); -+static do_message(); -+static do_apdata(); - - /* global pointers that use storage from the main program */ - diff --git a/graphics/gplot/files/patch-cgmb.c b/graphics/gplot/files/patch-cgmb.c deleted file mode 100644 index d142a5bf524b..000000000000 --- a/graphics/gplot/files/patch-cgmb.c +++ /dev/null @@ -1,15 +0,0 @@ ---- cgmb.c.orig Fri Sep 13 02:57:17 1991 -+++ cgmb.c Sat Jun 16 01:08:42 2007 -@@ -2,7 +2,12 @@ - #include <ctype.h> - #include <math.h> - #include <stdio.h> -+#include <string.h> - #include "defs.h" -+ -+static flush_cmd(); -+static cb_fixed(); -+ - #define byte_size 8 - #define byte_mask 255 - /* module for CGM binary output */ diff --git a/graphics/gplot/files/patch-cgmc.c b/graphics/gplot/files/patch-cgmc.c deleted file mode 100644 index c1eaccfd06da..000000000000 --- a/graphics/gplot/files/patch-cgmc.c +++ /dev/null @@ -1,10 +0,0 @@ ---- cgmc.c.orig Fri Sep 13 02:57:25 1991 -+++ cgmc.c Sat Jun 16 02:06:22 2007 -@@ -3,6 +3,7 @@ - #include <ctype.h> - #include <math.h> - #include <stdio.h> -+#include <string.h> - #include "defs.h" - #include "ccdefs.h" - #define byte_size 8 diff --git a/graphics/gplot/files/patch-devices.c b/graphics/gplot/files/patch-devices.c deleted file mode 100644 index aea1f5bea502..000000000000 --- a/graphics/gplot/files/patch-devices.c +++ /dev/null @@ -1,9 +0,0 @@ ---- devices.c.orig Thu Jul 18 02:21:59 1991 -+++ devices.c Sat Jun 16 02:15:48 2007 -@@ -1,5 +1,6 @@ - #include <stdio.h> - #include <ctype.h> -+#include <string.h> - #include "defs.h" - /* this module contains one function, dev_setup, which is called by the main - gplot modules at startup time. It is the only existing piece of code diff --git a/graphics/gplot/files/patch-drawcgm_Makefile b/graphics/gplot/files/patch-drawcgm_Makefile deleted file mode 100644 index a3d4ee872ddc..000000000000 --- a/graphics/gplot/files/patch-drawcgm_Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- drawcgm/Makefile.orig Sat Oct 26 02:58:37 2002 -+++ drawcgm/Makefile Sat Oct 26 02:58:44 2002 -@@ -25,7 +25,7 @@ - # Here ends the section the installer should have to modify - #---------------------------------------------------------------------------- - --CFLAGS = -O -+#CFLAGS = -O - - # DrawCGM and CGMGen, and test routines - cgmgen.o: /usr/include/stdio.h \ diff --git a/graphics/gplot/files/patch-drawcgm__cgm_clip.c b/graphics/gplot/files/patch-drawcgm__cgm_clip.c deleted file mode 100644 index 0d663c32de6b..000000000000 --- a/graphics/gplot/files/patch-drawcgm__cgm_clip.c +++ /dev/null @@ -1,20 +0,0 @@ ---- drawcgm/cgm_clip.c.orig Fri Mar 20 03:28:47 1992 -+++ drawcgm/cgm_clip.c Sat Jun 16 02:08:24 2007 -@@ -13,6 +13,8 @@ - #endif - #if (!VMS) - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #endif - - #include "cgm_clip.h" -@@ -85,8 +87,6 @@ - successful. - */ - { -- char *malloc(); -- - if (nx>ixbuf_sz) - { - if (debug) fprintf(stderr, diff --git a/graphics/gplot/files/patch-drawcgm__cgm_textem.c b/graphics/gplot/files/patch-drawcgm__cgm_textem.c deleted file mode 100644 index ec5bf166e6ce..000000000000 --- a/graphics/gplot/files/patch-drawcgm__cgm_textem.c +++ /dev/null @@ -1,10 +0,0 @@ ---- drawcgm/cgm_textem.c.orig Thu Jul 18 02:22:32 1991 -+++ drawcgm/cgm_textem.c Sat Jun 16 02:09:15 2007 -@@ -37,6 +37,7 @@ - #endif - #ifdef USE_UNIX - #include <stdio.h> -+#include <stdlib.h> - #include <string.h> - #endif - #ifdef ardent diff --git a/graphics/gplot/files/patch-drawcgm__cgmgen.c b/graphics/gplot/files/patch-drawcgm__cgmgen.c deleted file mode 100644 index 7fd2633698cf..000000000000 --- a/graphics/gplot/files/patch-drawcgm__cgmgen.c +++ /dev/null @@ -1,47 +0,0 @@ ---- drawcgm/cgmgen.c.orig Tue Sep 1 23:24:48 1992 -+++ drawcgm/cgmgen.c Sat Jun 16 00:59:41 2007 -@@ -67,6 +67,7 @@ - #endif - #ifdef USE_UNIX - #include <stdio.h> -+#include <stdlib.h> - #include <string.h> - #endif - #ifdef ardent -@@ -296,6 +297,10 @@ - case 1: out= ( (*ptr >> (7-bit)) & 1 ); bit= bit + 1; \ - if (bit == 8) { bit = 0; ++ptr; }; } \ - -+static int cgmfree(); -+static unsigned int ibufsz(); -+static unsigned int pbufsz(); -+ - igtmem(psz) - /* - This routine returns a pointer to available memory; it is included -@@ -303,7 +308,6 @@ - */ - int *psz; - { -- char *malloc(); - if (debugmode) fprintf(stderr," IGTMEM: allocating %d bytes.\n",*psz); - return((int) malloc( (unsigned int) *psz )); - } -@@ -389,7 +393,7 @@ - static void checkbufsize(newsize) - unsigned int newsize; - { -- char *malloc(),*realloc(),msgbuf[256]; -+ char msgbuf[256]; - - if ( newsize > datasize ) - { -@@ -1045,7 +1049,7 @@ - */ - { - float *clrptr, *tblend; -- char *realloc(),msgbuf[256]; -+ char msgbuf[256]; - - if (debugmode) fprintf(stderr," wrmxci: max color index= %d\n", - *maxclrindx); diff --git a/graphics/gplot/files/patch-emul.c b/graphics/gplot/files/patch-emul.c deleted file mode 100644 index 4fbe975dcf74..000000000000 --- a/graphics/gplot/files/patch-emul.c +++ /dev/null @@ -1,11 +0,0 @@ ---- emul.c.orig Thu Jul 18 02:22:01 1991 -+++ emul.c Sat Jun 16 01:04:15 2007 -@@ -5,6 +5,8 @@ - #include <stdio.h> - #include "defs.h" - -+static em_arc(); -+ - /* store these pointers to allow lookups into the CGM data structures */ - static struct one_opt *popt; /* the command line options, in only */ - static struct mf_d_struct *pc1; /* the class 1 elements, in only */ diff --git a/graphics/gplot/files/patch-gplot.c b/graphics/gplot/files/patch-gplot.c deleted file mode 100644 index fb1bd6e9774a..000000000000 --- a/graphics/gplot/files/patch-gplot.c +++ /dev/null @@ -1,11 +0,0 @@ ---- gplot.c.orig Thu Oct 31 06:33:47 1991 -+++ gplot.c Sat Jun 16 02:01:54 2007 -@@ -4,6 +4,8 @@ - considered callable by other programs (inclusion of graphics with text) - */ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "defs.h" - #define max_str 128 - #define version_str "4.3b2" diff --git a/graphics/gplot/files/patch-gtex.c b/graphics/gplot/files/patch-gtex.c deleted file mode 100644 index ee59c662b101..000000000000 --- a/graphics/gplot/files/patch-gtex.c +++ /dev/null @@ -1,16 +0,0 @@ ---- gtex.c.orig Thu Jul 18 02:22:03 1991 -+++ gtex.c Sat Jun 16 01:11:02 2007 -@@ -4,10 +4,12 @@ - #include <stdio.h> - #include <ctype.h> - #include <math.h> -+#include <stdlib.h> -+#include <string.h> - double atan(); /* not in some math.h */ - #include "defs.h" - #define version_str "4.23" --char *allocate_mem(), *realloc(); -+char *allocate_mem(); - - /* GPLOT style globals */ - static struct info_struct dev_info; diff --git a/graphics/gplot/files/patch-hload.c b/graphics/gplot/files/patch-hload.c deleted file mode 100644 index f99cb053f3a6..000000000000 --- a/graphics/gplot/files/patch-hload.c +++ /dev/null @@ -1,13 +0,0 @@ ---- hload.c.orig Thu Jul 18 02:22:04 1991 -+++ hload.c Sat Jun 16 01:03:27 2007 -@@ -5,6 +5,10 @@ - #include "defs.h" - #define END_FLAG 0 - -+static do_vecs(); -+static send_vecs(); -+static dim_str(); -+ - /* show a character */ - static show_char(font_no, char_no) - int font_no, char_no; diff --git a/graphics/gplot/files/patch-io.c b/graphics/gplot/files/patch-io.c deleted file mode 100644 index 0b55c427774d..000000000000 --- a/graphics/gplot/files/patch-io.c +++ /dev/null @@ -1,20 +0,0 @@ ---- io.c.orig Thu Jul 18 02:22:05 1991 -+++ io.c Sat Jun 16 02:17:10 2007 -@@ -2,6 +2,8 @@ - /* all rights reserved */ - /* handle the I/O in this module */ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "defs.h" - static int list_io; /* do some listing */ - #define max_str 128 -@@ -80,7 +82,7 @@ - static FILE *inptr = NULL, *outptr, *dvifile; /* input and output pointers */ - #endif - static int block_size, record_size; --unsigned char *realloc(), *allocate_mem(); -+unsigned char *allocate_mem(); - #define max_b_size 1024 - static int out_b_size; /* output buffer (how much can use) */ - static int b_ind = 0; /* index into array */ diff --git a/graphics/gplot/files/patch-pkras.c b/graphics/gplot/files/patch-pkras.c deleted file mode 100644 index 2352aaa823eb..000000000000 --- a/graphics/gplot/files/patch-pkras.c +++ /dev/null @@ -1,23 +0,0 @@ ---- pkras.c.orig Thu Jul 18 02:22:07 1991 -+++ pkras.c Sat Jun 16 01:31:42 2007 -@@ -2,7 +2,12 @@ - /* module to decode a PK format packed raster font description */ - /* globals for pk processing */ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "defs.h" -+ -+static dim_str(); -+ - #define NO_FONTS 8 /* the number of font styles pre-defined */ - #define max_mags 100 - #define pts_in 72.27 -@@ -32,7 +37,6 @@ - static int rot_bytes_allocated = r_b_allocated; - static char ras_array[r_b_allocated], rot_array[r_b_allocated]; - static char *ras_ptr = ras_array, *rot_ptr = rot_array; --extern char *realloc(); - - #define max_char_stor 100000 - static unsigned char char_stor[max_char_stor]; /* store character definitions */ diff --git a/graphics/gplot/files/patch-ps.c b/graphics/gplot/files/patch-ps.c deleted file mode 100644 index 040272e2ec7c..000000000000 --- a/graphics/gplot/files/patch-ps.c +++ /dev/null @@ -1,18 +0,0 @@ ---- ps.c.orig Wed Jun 17 02:29:19 1992 -+++ ps.c Sat Jun 16 01:05:35 2007 -@@ -2,10 +2,15 @@ - #include <ctype.h> - #include <math.h> - #include <stdio.h> -+#include <string.h> - #include "defs.h" - #define byte_size 8 - #define out_ln(instr) {out_string(instr); fb();} - #define APPENDED_MARKER -123 /* appended text coming */ -+ -+static send_string(); -+static flush_string(); -+static l_dofont(); - - /* module for PostScript specific functions, note that we expect the device - resolution is pxl_per_in, set by the calling program. All dimensions are expected diff --git a/graphics/gplot/files/patch-qms.c b/graphics/gplot/files/patch-qms.c deleted file mode 100644 index b20b764cc92a..000000000000 --- a/graphics/gplot/files/patch-qms.c +++ /dev/null @@ -1,15 +0,0 @@ ---- qms.c.orig Thu Jul 18 02:22:08 1991 -+++ qms.c Sat Jun 16 02:01:07 2007 -@@ -2,7 +2,12 @@ - #include <ctype.h> - #include <math.h> - #include <stdio.h> -+#include <string.h> - #include "defs.h" -+ -+static set_fill(); -+static float grey_col(); -+ - #define byte_size 8 - #define out_ln(instr) {out_string(instr); fb();} - diff --git a/graphics/gplot/files/patch-tek.c b/graphics/gplot/files/patch-tek.c deleted file mode 100644 index 59f3f119d86e..000000000000 --- a/graphics/gplot/files/patch-tek.c +++ /dev/null @@ -1,15 +0,0 @@ ---- tek.c.orig Thu Jul 18 02:22:10 1991 -+++ tek.c Sat Jun 16 01:07:12 2007 -@@ -1,7 +1,12 @@ - /* copyright 1987, 1988, 1989 Phil Andrews, Pittsburgh Supercomputing Center */ - #include <stdio.h> - #include <ctype.h> -+#include <string.h> - #include "defs.h" -+ -+static save_env(); -+static load_dcmap(); -+ - /* macros for generic TEKTRONIX processing */ - #define eot '\004' /* end of file */ - #define ctrl_e '\005' /* enquire tty status */ diff --git a/graphics/gplot/files/patch-utils.c b/graphics/gplot/files/patch-utils.c deleted file mode 100644 index 9c8831b96744..000000000000 --- a/graphics/gplot/files/patch-utils.c +++ /dev/null @@ -1,22 +0,0 @@ ---- utils.c.orig Wed Oct 30 00:48:16 1991 -+++ utils.c Sat Jun 16 02:10:19 2007 -@@ -4,6 +4,7 @@ - #include <stdio.h> - #include <math.h> - #include <ctype.h> -+#include <string.h> - #include "defs.h" - /* some include files vary in location */ - #ifdef VAXC -@@ -300,9 +301,8 @@ - struct info_struct *out_info; - struct one_opt *opt; /* put command line options here */ - #define may_override(name) if (opt[(int) name].set) switch (opt[(int) name].tag) { \ -- case integer: out_info->name = opt[(int) name].val.i; break; \ -- case real: out_info->name = opt[(int) name].val.r; break; \ -- case lst: case str: strcpy(out_info->name, opt[(int) name].val.str); break;} -+ case integer: out_info->name = opt[(int) name].val.i; break; \ -+ case real: out_info->name = opt[(int) name].val.r; break; } - { - /* and now overide the device if the command line wants us to */ - may_override(pxl_in); |