Commit 11421fcb authored by Sandro Santilli's avatar Sandro Santilli
Browse files

uint32_t typedef moved back from wktparse.h to lwgparse.c and wktunparse.c


git-svn-id: http://svn.osgeo.org/postgis/trunk@2305 b70326c6-7e19-0410-871a-916f4a2858ee
parent ad3483e5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@
 */
#include <string.h>
#include <stdio.h>
#include <stdint.h>
/* Solaris9 does not provide stdint.h */
/* #include <stdint.h> */
#include <inttypes.h>

#include "liblwgeom.h"
#include "wktparse.h"
@@ -23,6 +25,8 @@
void set_zm(char z, char m);
void close_parser(void);

typedef uint32_t int4;

typedef struct tag_tuple tuple;

struct tag_outputstate{
+0 −5
Original line number Diff line number Diff line
@@ -10,9 +10,6 @@
#define _WKTPARSE_H

#include <stdlib.h>
/* Solaris9 does not provide stdint.h */
/* #include <stdint.h> */
#include <inttypes.h>


#ifndef _LIBLWGEOM_H
@@ -23,8 +20,6 @@ typedef void (*freeor)(void* mem);
typedef void  (*report_error)(const char* string, ...);

/*typedef unsigned long int4;*/
typedef uint32_t int4;


/* How much memory is allocated at a time(bytes) for tuples */
#define ALLOC_CHUNKS 8192
+7 −0
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@
/* TO get byte order */
#include <sys/types.h>
#include <sys/param.h>
/* Solaris9 does not provide stdint.h */
/* #include <stdint.h> */
#include <inttypes.h>

#include "liblwgeom.h"
#include "wktparse.h"
@@ -21,6 +24,7 @@

/*-- Typedefs ---------------------------------------------- */

typedef uint32_t int4;
typedef uchar* (*outfunc)(uchar*,int);
typedef uchar* (*outwkbfunc)(uchar*);

@@ -609,6 +613,9 @@ unparse_WKB(uchar* serialized, allocator alloc, freeor free, char endian, size_t

/******************************************************************
 * $Log$
 * Revision 1.23  2006/02/06 11:12:22  strk
 * uint32_t typedef moved back from wktparse.h to lwgparse.c and wktunparse.c
 *
 * Revision 1.22  2006/02/03 20:53:37  strk
 * Swapped stdint.h (unavailable on Solaris9) with inttypes.h
 *