diff --git a/contrib/Shape_PointInPoly.cpp b/contrib/Shape_PointInPoly.cpp index 24d8f01..50aa27a 100644 --- a/contrib/Shape_PointInPoly.cpp +++ b/contrib/Shape_PointInPoly.cpp @@ -54,7 +54,7 @@ struct IntersectPoint loopDir loopdirection; }; -loopDir LoopDirection(DPoint2d *vertices, int vertsize) +static loopDir LoopDirection(DPoint2d *vertices, int vertsize) { int i; double sum = 0.0; @@ -70,7 +70,7 @@ loopDir LoopDirection(DPoint2d *vertices, int vertsize) return kExterior; } -DPoint2d CreatePointInPoly(SHPObject *psShape, int quality) +static DPoint2d CreatePointInPoly(SHPObject *psShape, int quality) { int i, j, k, end, vert, pointpos; double part, dx, xmin, xmax, ymin, ymax, y, x3, x4, y3, y4, len, maxlen = 0; diff --git a/contrib/csv2shp.c b/contrib/csv2shp.c index 72f9567..2ba366a 100644 --- a/contrib/csv2shp.c +++ b/contrib/csv2shp.c @@ -86,7 +86,7 @@ typedef struct column_t } column; /* counts the number of occurrences of the character in the string */ -int strnchr(const char *s, char c) +static int strnchr(const char *s, char c) { int n = 0; @@ -103,7 +103,7 @@ int strnchr(const char *s, char c) /* Returns a field given by column n (0-based) in a character- delimited string s */ -char *delimited_column(const char *s, char delim, int n) +static char *delimited_column(const char *s, char delim, int n) { if (strnchr(s, delim) < n) { @@ -137,7 +137,7 @@ char *delimited_column(const char *s, char delim, int n) } /* returns the number of decimals in a real number given as a string s */ -int str_to_ndecimals(const char *s) +static int str_to_ndecimals(const char *s) { if (s == NULL) { @@ -175,7 +175,7 @@ int str_to_ndecimals(const char *s) /* Determines the most specific column type. The most specific types from most to least are integer, float, string. */ -DBFFieldType str_to_fieldtype(const char *s) +static DBFFieldType str_to_fieldtype(const char *s) { size_t len = strlen(s); @@ -198,7 +198,7 @@ DBFFieldType str_to_fieldtype(const char *s) } /* returns the field width */ -int str_to_nwidth(const char *s, DBFFieldType eType) +static int str_to_nwidth(const char *s, DBFFieldType eType) { switch (eType) { @@ -214,7 +214,7 @@ int str_to_nwidth(const char *s, DBFFieldType eType) } /* returns true if f1 is more general than f2, otherwise false */ -int more_general_field_type(DBFFieldType t1, DBFFieldType t2) +static int more_general_field_type(DBFFieldType t1, DBFFieldType t2) { if (FTInteger == t2 && t1 != FTInteger) { @@ -229,7 +229,7 @@ int more_general_field_type(DBFFieldType t1, DBFFieldType t2) return 0; } -void strip_crlf(const char *line) +static void strip_crlf(const char *line) { /* remove trailing CR/LF */ diff --git a/shprewind.c b/shprewind.c index 5037d52..b710a6b 100644 --- a/shprewind.c +++ b/shprewind.c @@ -58,7 +58,7 @@ int main(int argc, char **argv) } /* -------------------------------------------------------------------- */ - /* Skim over the list of shapes, printing all the vertices. */ + /* Skim over the list of shapes, printing all the vertices. */ /* -------------------------------------------------------------------- */ int nInvalidCount = 0;