return 0;
}
-int parse_color( const char *const, struct gfx_color_t *);
-int parse_color( const char *const string, struct gfx_color_t *c)
+static int parse_color( const char *const string, struct gfx_color_t *c)
{
unsigned int r = 0, g = 0, b = 0, a = 0, i;
#define set_match(str,pat,cmd) if (strcmp(pat, str) == 0) { cmd ;}
/* prototypes */
-int parse_axis(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_def(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_cvdef(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_line(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_area(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_stack(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_print(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_gprint(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_comment(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_hvrule(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_grad(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_tick(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_textalign(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_shift(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_xport(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_axis(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_def(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_cvdef(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_line(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_area(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_stack(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_gprint(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_comment(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_hvrule(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_tick(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_textalign(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_shift(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_xport(enum gf_en,parsedargs_t*,image_desc_t *const);
/* this is needed for LINE,AREA,STACk so that the labels get done correctly... */
-void legend_shift(char *legend);
-void legend_shift(char *legend)
+static void legend_shift(char *legend)
{
if (!legend || !legend[0]) { return; }
memmove(legend+2,legend,strlen(legend));
}
/* implementations */
-int parse_axis(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_axis(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
#if 0
/* define X or y axis */
return 0;
}
-int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMERRDDSCF
return 0;
}
-int parse_cvdef(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_cvdef(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMERPN
}
-int parse_line(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_line(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMECOLORLEGEND
return 0;
}
-int parse_area(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_area(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMECOLORLEGEND
return 0;
}
-int parse_stack(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_stack(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMECOLORLEGEND
return 0;
}
-int parse_hvrule(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_hvrule(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMECOLORLEGEND
return 0;
}
-int parse_gprint(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im) {
+static int parse_gprint(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im) {
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMEREF
return 0;
}
-int parse_comment(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_comment(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_LEGEND
return 0;
}
-int parse_tick(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_tick(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,
PARSE_VNAMECOLORFRACTIONLEGEND
return 0;
}
-int parse_textalign(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_textalign(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
keyvalue_t *kv;
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,0);
return 0;
}
-int parse_shift(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_shift(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
keyvalue_t *kv;
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,PARSE_VNAMEREFPOS);
/* and return */
return 0;
}
-int parse_xport(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_xport(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
/* get new graph that we fill */
graph_desc_t *gdp=newGraphDescription(im,gf,pa,PARSE_VNAMECOLORLEGEND);
if (!gdp) { return 1;}