From 1834cd0e779306cf77ff3869f3a6cca8f9e4b77a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 10 Jan 2005 09:47:14 +0000 Subject: [PATCH] Added missing prototypes git-svn-id: http://svn.osgeo.org/postgis/trunk@1265 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgparse.c | 1 - lwgeom/wktparse.h | 3 ++- lwgeom/wktparse.lex | 1 + lwgeom/wktparse.y | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lwgeom/lwgparse.c b/lwgeom/lwgparse.c index 11bc66a9e..9cbe7b404 100644 --- a/lwgeom/lwgparse.c +++ b/lwgeom/lwgparse.c @@ -128,7 +128,6 @@ void alloc_geomertycollection(void); void alloc_counter(void); void alloc_empty(void); byte* make_lwgeom(void); -int lwg_parse_yyerror(char* s); byte strhex_readbyte(const char* in); byte read_wkb_byte(const char** in); void read_wkb_bytes(const char** in,byte* out, int cnt); diff --git a/lwgeom/wktparse.h b/lwgeom/wktparse.h index 44743422b..1e465c560 100644 --- a/lwgeom/wktparse.h +++ b/lwgeom/wktparse.h @@ -52,7 +52,6 @@ void alloc_multilinestring(void); void alloc_multipolygon(void); void alloc_geomertycollection(void); void alloc_empty(); - void alloc_counter(void); @@ -69,5 +68,7 @@ byte* parse_lwg(const char* wkt,allocator allocfunc,report_error errfunc); byte* parse_lwgi(const char* wkt,allocator allocfunc,report_error errfunc); char* unparse_WKT(byte* serialized, allocator alloc,freeor free); char* unparse_WKB(byte* serialized, allocator alloc,freeor free, char endian); +int lwg_parse_yyparse(void); +int lwg_parse_yyerror(char* s); diff --git a/lwgeom/wktparse.lex b/lwgeom/wktparse.lex index fd0f8d2a4..2b7646865 100644 --- a/lwgeom/wktparse.lex +++ b/lwgeom/wktparse.lex @@ -9,6 +9,7 @@ %x vals_ok %{ #include "wktparse.tab.h" +#include "unistd.h" void init_parser(const char *src); void close_parser(void); diff --git a/lwgeom/wktparse.y b/lwgeom/wktparse.y index 71d6eedd8..e39ecc548 100644 --- a/lwgeom/wktparse.y +++ b/lwgeom/wktparse.y @@ -8,8 +8,10 @@ %{ #include "wktparse.h" +#include "unistd.h" void set_zm(char z, char m); +int lwg_parse_yylex(void); %} %start geometry -- 2.40.0