]> git.pld-linux.org Git - packages/gdchart.git/blob - gdchart-extern.patch
- try to avoid EXTERND sickness
[packages/gdchart.git] / gdchart-extern.patch
1 --- gdchart0.11.4dev/gdc.c.orig Tue Mar 11 04:03:06 2003
2 +++ gdchart0.11.4dev/gdc.c      Wed Jul  2 14:49:39 2003
3 @@ -13,6 +13,13 @@
4                                                                                             (gdFontPtr)NULL, 16, 8,
5                                                                                             (gdFontPtr)NULL, 15, 9 };
6  
7 +/* EXTERNDs */
8 +GDC_image_type_t       GDC_image_type          = GDC_PNG;
9 +int                    GDC_jpeg_quality        = -1;           /* 0-95 */
10 +char                   GDC_generate_img        = TRUE;
11 +GDC_HOLD_IMAGE_T       GDC_hold_img            = GDC_DESTROY_IMAGE;
12 +void                   *GDC_image              = (void*)NULL;  /* in/out */
13 +
14  /* ------------------------------------------------------------------- *\ 
15   * convert from enum GDC_font_size to gd fonts
16   * for now load them all
17 --- gdchart0.11.4dev/gdc.h.orig Tue Mar 11 04:03:06 2003
18 +++ gdchart0.11.4dev/gdc.h      Wed Jul  2 14:48:11 2003
19 @@ -131,8 +131,8 @@
20  #define DEFAULTO(val)
21  extern struct  GDC_FONT_T      GDC_fontc[];
22  #else
23 -#define EXTERND
24 -#define DEFAULTO(val) = val
25 +#define EXTERND extern
26 +#define DEFAULTO(val)
27  #endif
28  
29  /**** COMMON OPTIONS ********************************/
30 --- gdchart0.11.4dev/gdc_pie.c.orig     Sun Mar 23 21:34:29 2003
31 +++ gdchart0.11.4dev/gdc_pie.c  Wed Jul  2 15:01:04 2003
32 @@ -22,6 +22,34 @@
33  
34  /* rem circle:  x = rcos(@), y = rsin(@)       */
35  
36 +/* EXTERNDs */
37 +unsigned long          GDCPIE_BGColor          = 0x000000L;    /* black */
38 +unsigned long          GDCPIE_PlotColor        = 0xC0C0C0L;    /* gray */
39 +unsigned long          GDCPIE_LineColor        = GDC_DFLTCOLOR;
40 +unsigned long          GDCPIE_EdgeColor        = GDC_NOCOLOR;  /* edging on/off */
41 +char                   GDCPIE_other_threshold  = -1;
42 +unsigned short         GDCPIE_3d_angle         = 45;           /* 0-360 */
43 +unsigned short         GDCPIE_3d_depth         = 10;           /* % image width */
44 +unsigned short         GDCPIE_perspective      = 0;            /* % view */
45 +char                   *GDCPIE_title           = NULL;         /* NLs ok here */
46 +enum GDC_font_size     GDCPIE_title_size       = GDC_MEDBOLD;
47 +enum GDC_font_size     GDCPIE_label_size       = GDC_SMALL;
48 +#ifdef HAVE_LIBFREETYPE
49 +char                   *GDCPIE_title_font      = NULL;
50 +char                   *GDCPIE_label_font      = NULL;
51 +double                 GDCPIE_title_ptsize     = 0.0;
52 +double                 GDCPIE_label_ptsize     = 0.0;
53 +#endif
54 +int                    GDCPIE_label_dist       = 1+8/2;        /* 1+GDC_fontc[GDCPIE_label_size].h/2 */
55 +unsigned char          GDCPIE_label_line       = FALSE;        /* from label to slice */
56 +int                    *GDCPIE_explode         = (int*)NULL;   /* [num_points] */
57 +                                                               /* [num_points] supercedes GDCPIE_PlotColor */
58 +unsigned long          *GDCPIE_Color           = (unsigned long*)NULL;
59 +unsigned char          *GDCPIE_missing         = (unsigned char*)NULL; /* TRUE/FALSE */
60 +GDCPIE_PCT_TYPE                GDCPIE_percent_labels   = GDCPIE_PCT_NONE;
61 +char                   *GDCPIE_percent_fmt     = "%.0f%%";     /* printf fmt'ing */
62 +
63 +
64  extern struct  GDC_FONT_T      GDC_fontc[];
65  
66  #define SET_RECT( gdp, x1, x2, y1, y2 )        gdp[0].x = gdp[3].x = x1,       \
67 --- gdchart0.11.4dev/gdchart.c.orig     Tue Mar 11 04:03:06 2003
68 +++ gdchart0.11.4dev/gdchart.c  Wed Jul  2 15:00:55 2003
69 @@ -20,6 +20,90 @@
70  #define LOWSET         1
71  #define CLOSESET       2
72  
73 +/* EXTERNDs */
74 +char                   *GDC_ytitle;
75 +char                   *GDC_xtitle;
76 +char                   *GDC_ytitle2;                           /* ostesibly: volume label */
77 +char                   *GDC_title;                             /* NLs ok here */
78 +enum GDC_font_size     GDC_title_size          = GDC_MEDBOLD;
79 +enum GDC_font_size     GDC_ytitle_size         = GDC_MEDBOLD;
80 +enum GDC_font_size     GDC_xtitle_size         = GDC_MEDBOLD;
81 +enum GDC_font_size     GDC_yaxisfont_size      = GDC_SMALL;
82 +enum GDC_font_size     GDC_xaxisfont_size      = GDC_SMALL;
83 +double                 GDC_xaxis_angle         = 90.0;         /* 0,90. FT: 0-90 */
84 +#ifdef HAVE_LIBFREETYPE
85 +char                   *GDC_title_font         = NULL;
86 +char                   *GDC_ytitle_font        = NULL;
87 +char                   *GDC_xtitle_font        = NULL;
88 +char                   *GDC_yaxis_font         = NULL;
89 +char                   *GDC_xaxis_font         = NULL;
90 +double                 GDC_title_ptsize        = 0.0;
91 +double                 GDC_ytitle_ptsize       = 0.0;
92 +double                 GDC_xtitle_ptsize       = 0.0;
93 +double                 GDC_yaxis_ptsize        = 0.0;
94 +double                 GDC_xaxis_ptsize        = 0.0;
95 +#endif
96 +char                   *GDC_ylabel_fmt         = NULL;         /* printf fmt'ing, e.g.: "%.2f" */
97 +char                   *GDC_ylabel2_fmt        = NULL;         /* default: "%.0f" future: fractions */
98 +char                   *GDC_xlabel_ctl         = NULL;         /* num_points[] TRUE,FALSE */
99 +short                  GDC_xlabel_spacing      = 5;            /* pixels  SHRT_MAX means force all */
100 +char                   GDC_ylabel_density      = 80;           /* % */
101 +char                   GDC_interpolations      = FALSE;        /* GDC_INTERP_VALUE in data */
102 +float                  GDC_requested_ymin      = GDC_NOVALUE;
103 +float                  GDC_requested_ymax      = GDC_NOVALUE;
104 +float                  GDC_requested_yinterval = GDC_NOVALUE;
105 +char                   GDC_0Shelf              = TRUE;         /* if applicable */
106 +GDC_TICK_T             GDC_grid                = GDC_TICK_LABELS;
107 +GDC_TICK_T             GDC_ticks               = GDC_TICK_LABELS;
108 +char                   GDC_xaxis               = TRUE;
109 +char                   GDC_yaxis               = TRUE;
110 +char                   GDC_yaxis2              = TRUE;
111 +char                   GDC_yval_style          = TRUE;
112 +GDC_STACK_T            GDC_stack_type          = GDC_STACK_DEPTH;
113 +float                  GDC_3d_depth            = 5.0;          /* % img size */
114 +unsigned char          GDC_3d_angle            = 45;           /* 1-89 */
115 +unsigned char          GDC_bar_width           = 75;           /* % (1-100) */
116 +GDC_HLC_STYLE_T                GDC_HLC_style           = GDC_HLC_CLOSE_CONNECTED;
117 +unsigned char          GDC_HLC_cap_width       = 25;           /* % (1-100) */
118 +GDC_ANNOTATION_T       *GDC_annotation         = (GDC_ANNOTATION_T*)NULL;
119 +enum GDC_font_size     GDC_annotation_font_size = GDC_SMALL;
120 +#ifdef HAVE_LIBFREETYPE
121 +char                   *GDC_annotation_font    = NULL;
122 +double                 GDC_annotation_ptsize   = 0.0;
123 +#endif
124 +int                    GDC_num_scatter_pts     = 0;
125 +GDC_SCATTER_T          *GDC_scatter            = (GDC_SCATTER_T*)NULL;
126 +char                   GDC_thumbnail           = FALSE;
127 +char                   *GDC_thumblabel;
128 +float                  GDC_thumbval            = -FLT_MAX;
129 +GDC_BORDER_T           GDC_border              = GDC_BORDER_ALL;
130 +unsigned long          GDC_BGColor             = 0x000000L;     /* black */
131 +unsigned long          GDC_GridColor           = 0xA0A0A0L;     /* gray */
132 +unsigned long          GDC_LineColor           = GDC_DFLTCOLOR;
133 +unsigned long          GDC_PlotColor           = GDC_DFLTCOLOR;
134 +unsigned long          GDC_VolColor            = 0xA0A0FFL;     /* lgtblue1 */
135 +unsigned long          GDC_TitleColor          = GDC_DFLTCOLOR; /* "opposite" of BG */
136 +unsigned long          GDC_XTitleColor         = GDC_DFLTCOLOR;
137 +unsigned long          GDC_YTitleColor         = GDC_DFLTCOLOR;
138 +unsigned long          GDC_YTitle2Color        = GDC_DFLTCOLOR;
139 +unsigned long          GDC_XLabelColor         = GDC_DFLTCOLOR;
140 +unsigned long          GDC_YLabelColor         = GDC_DFLTCOLOR;
141 +unsigned long          GDC_YLabel2Color        = GDC_DFLTCOLOR;
142 +                                               /* supercedes VolColor  ulong_color[num_points] */
143 +unsigned long          *GDC_ExtVolColor        = (unsigned long*)NULL;
144 +                                               /* supercedes LineColor ulong_color[num_sets] */
145 +unsigned long          *GDC_SetColor           = (unsigned long*)NULL;
146 +                                               /* supercedes SetColor  ulong_color[num_sets][num_points] */
147 +unsigned long          *GDC_ExtColor           = (unsigned long*)NULL;
148 +char                   GDC_transparent_bg      = FALSE;
149 +char                   *GDC_BGImage            = (char*)NULL;
150 +char                   GDC_hard_size           = FALSE;
151 +int                    GDC_hard_xorig          = 0;            /* in/out */
152 +int                    GDC_hard_graphwidth     = 0;            /* in/out */
153 +int                    GDC_hard_yorig          = 0;            /* in/out */
154 +int                    GDC_hard_grapheight     = 0;            /* in/out */
155 +
156 +
157  /* scaled translation onto graph */
158  #define PX( x )                (int)( xorig + (setno*xdepth_3D) + (x)*xscl )
159  #define PY( y )                (int)( yorig - (setno*ydepth_3D) + (y)*yscl )
This page took 0.0593 seconds and 3 git commands to generate.