[GRASS-SVN] r62927 - in grass/branches/releasebranch_7_0: . lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 25 03:06:17 PST 2014
Author: martinl
Date: 2014-11-25 03:06:17 -0800 (Tue, 25 Nov 2014)
New Revision: 62927
Modified:
grass/branches/releasebranch_7_0/
grass/branches/releasebranch_7_0/lib/gis/parser.c
Log:
libgis: cosmetics in static declarations (parser.c)
(merge r62925 from trunk)
Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
- /grass/trunk:60817,61096,61141,62105,62179-62180,62182,62403,62422,62424,62437,62466,62469,62487,62491,62494,62501,62506,62508-62509,62515,62518-62519,62521,62526,62533,62539,62541,62555,62562,62566,62570,62573,62575,62585,62588,62597,62603,62606,62608-62609,62614,62618,62628,62632,62638,62642,62648-62649,62652,62654-62657,62666,62691,62705,62709,62723,62730,62739,62741,62743,62746,62750,62752,62757,62762,62785,62798,62800-62801,62803,62805,62812,62822,62824,62831,62838,62847,62856,62879,62881,62907-62908,62910,62912,62914,62916,62918,62920
+ /grass/trunk:60817,61096,61141,62105,62179-62180,62182,62403,62422,62424,62437,62466,62469,62487,62491,62494,62501,62506,62508-62509,62515,62518-62519,62521,62526,62533,62539,62541,62555,62562,62566,62570,62573,62575,62585,62588,62597,62603,62606,62608-62609,62614,62618,62628,62632,62638,62642,62648-62649,62652,62654-62657,62666,62691,62705,62709,62723,62730,62739,62741,62743,62746,62750,62752,62757,62762,62785,62798,62800-62801,62803,62805,62812,62822,62824,62831,62838,62847,62856,62879,62881,62907-62908,62910,62912,62914,62916,62918,62920,62925
Modified: grass/branches/releasebranch_7_0/lib/gis/parser.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/parser.c 2014-11-25 11:04:02 UTC (rev 62926)
+++ grass/branches/releasebranch_7_0/lib/gis/parser.c 2014-11-25 11:06:17 UTC (rev 62927)
@@ -103,6 +103,8 @@
static int contains(const char *, int);
static int valid_option_name(const char *);
static int is_option(const char *);
+static int match_option_1(const char *, const char *);
+static int match_option(const char *, const char *);
static void set_option(const char *);
static void check_opts(void);
static void check_an_opt(const char *, int, const char *, const char **, char **);
@@ -114,7 +116,7 @@
static void check_multiple_opts(void);
static int check_overwrite(void);
static void define_keywords(void);
-static void split_gisprompt(const char *gisprompt, char *age, char *element, char *desc);
+static void split_gisprompt(const char *, char *, char *, char *);
static void module_gui_wx(void);
static void append_error(const char *);
@@ -821,7 +823,7 @@
/*!
\brief Invoke GUI dialog
*/
-static void module_gui_wx(void)
+void module_gui_wx(void)
{
char script[GPATH_MAX];
@@ -835,7 +837,7 @@
G_spawn(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), script, G_recreate_command(), NULL);
}
-static void set_flag(int f)
+void set_flag(int f)
{
struct Flag *flag;
char *err;
@@ -868,7 +870,7 @@
/* contents() is used to find things strings with characters like commas and
* dashes.
*/
-static int contains(const char *s, int c)
+int contains(const char *s, int c)
{
while (*s) {
if (*s == c)
@@ -878,7 +880,7 @@
return FALSE;
}
-static int valid_option_name(const char *string)
+int valid_option_name(const char *string)
{
int m = strlen(string);
int n = strspn(string, "abcdefghijklmnopqrstuvwxyz0123456789_");
@@ -895,14 +897,14 @@
return 1;
}
-static int is_option(const char *string)
+int is_option(const char *string)
{
int n = strspn(string, "abcdefghijklmnopqrstuvwxyz0123456789_");
return n > 0 && string[n] == '=' && string[0] != '_' && string[n-1] != '_';
}
-static int match_option_1(const char *string, const char *option)
+int match_option_1(const char *string, const char *option)
{
const char *next;
@@ -928,13 +930,13 @@
return match_option_1(string, next + 1);
}
-static int match_option(const char *string, const char *option)
+int match_option(const char *string, const char *option)
{
return (*string == *option)
&& match_option_1(string + 1, option + 1);
}
-static void set_option(const char *string)
+void set_option(const char *string)
{
struct Option *at_opt = NULL;
struct Option *opt = NULL;
@@ -1005,7 +1007,7 @@
opt->answer = G_store(string);
}
-static void check_opts(void)
+void check_opts(void)
{
struct Option *opt;
int ans;
@@ -1037,7 +1039,7 @@
}
}
-static void check_an_opt(const char *key, int type, const char *options,
+void check_an_opt(const char *key, int type, const char *options,
const char **opts, char **answerp)
{
const char *answer = *answerp;
@@ -1093,7 +1095,7 @@
}
}
-static int check_int(const char *ans, const char **opts)
+int check_int(const char *ans, const char **opts)
{
int d, i;
@@ -1140,7 +1142,7 @@
return OUT_OF_RANGE;
}
-static int check_double(const char *ans, const char **opts)
+int check_double(const char *ans, const char **opts)
{
double d;
int i;
@@ -1188,7 +1190,7 @@
return OUT_OF_RANGE;
}
-static int check_string(const char *ans, const char **opts, int *result)
+int check_string(const char *ans, const char **opts, int *result)
{
int len = strlen(ans);
int found = 0;
@@ -1224,7 +1226,7 @@
}
}
-static void check_required(void)
+void check_required(void)
{
struct Option *opt;
char *err;
@@ -1246,7 +1248,7 @@
}
}
-static void split_opts(void)
+void split_opts(void)
{
struct Option *opt;
const char *ptr1;
@@ -1303,7 +1305,7 @@
}
}
-static void check_multiple_opts(void)
+void check_multiple_opts(void)
{
struct Option *opt;
const char *ptr;
@@ -1341,7 +1343,7 @@
}
/* Check for all 'new' if element already exists */
-static int check_overwrite(void)
+int check_overwrite(void)
{
struct Option *opt;
char age[KEYLENGTH];
@@ -1427,7 +1429,7 @@
return (error);
}
-static void split_gisprompt(const char *gisprompt, char *age, char *element,
+void split_gisprompt(const char *gisprompt, char *age, char *element,
char *desc)
{
const char *ptr1;
@@ -1455,7 +1457,7 @@
*ptr2 = '\0';
}
-static void append_error(const char *msg)
+void append_error(const char *msg)
{
st->error = G_realloc(st->error, sizeof(char *) * (st->n_errors + 1));
st->error[st->n_errors++] = G_store(msg);
More information about the grass-commit
mailing list