[GRASS-SVN] r30711 - grass/trunk/vector/v.out.svg

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 24 03:30:20 EDT 2008


Author: glynn
Date: 2008-03-24 03:30:20 -0400 (Mon, 24 Mar 2008)
New Revision: 30711

Modified:
   grass/trunk/vector/v.out.svg/main.c
Log:
Declare as "static" all functions except main()



Modified: grass/trunk/vector/v.out.svg/main.c
===================================================================
--- grass/trunk/vector/v.out.svg/main.c	2008-03-24 07:27:39 UTC (rev 30710)
+++ grass/trunk/vector/v.out.svg/main.c	2008-03-24 07:30:20 UTC (rev 30711)
@@ -33,10 +33,10 @@
 
 FILE *fpsvg;
 
-int mk_path (struct line_pnts *Points, int precision);
-int mk_attribs (int cat, struct field_info *Fi, dbDriver *Driver,
+static int mk_path (struct line_pnts *Points, int precision);
+static int mk_attribs (int cat, struct field_info *Fi, dbDriver *Driver,
 		dbTable  *Table, int attr_cols[], int attr_size, int do_attr);
-int print_escaped_for_xml (char *str);
+static int print_escaped_for_xml (char *str);
 
 int main (int argc, char *argv[]) {
     int i,j, precision, field;
@@ -307,7 +307,7 @@
 }
 
 
-int mk_path (struct line_pnts *Points, int precision) {
+static int mk_path (struct line_pnts *Points, int precision) {
     int i;
     /* loop through points and create relative moves to save bandwidth */
     for ( i = 0; i < Points->n_points; i++ ) {
@@ -327,7 +327,7 @@
 }
 
 /* extract custom-namespaced attributes if any*/
-int mk_attribs (int cat, struct field_info *Fi, dbDriver *Driver,
+static int mk_attribs (int cat, struct field_info *Fi, dbDriver *Driver,
 		dbTable  *Table, int attr_cols[], int attr_size, int do_attr) {
     int i, more;
     char buf[2000];
@@ -375,7 +375,7 @@
 }
 
 /* escape for XML and replace double-quotes */
-int print_escaped_for_xml (char *str) {
+static int print_escaped_for_xml (char *str) {
     for (;*str;str++) {
         switch (*str) {
             case '&':



More information about the grass-commit mailing list