Remove include protections
Since we no longer have recursive includes, we don't need them. Removing the protections uncovered a couple of accidental double-includes: good.
This commit is contained in:
		
							parent
							
								
									fe4550dad7
								
							
						
					
					
						commit
						45a7ec7bc4
					
				| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __BITVECTOR_H_
 | 
					 | 
				
			||||||
#define __BITVECTOR_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// a mask with n set lo or hi bits
 | 
					// a mask with n set lo or hi bits
 | 
				
			||||||
#define lomask(n) (u_int32_t)((((u_int32_t)1) << (n)) - 1)
 | 
					#define lomask(n) (u_int32_t)((((u_int32_t)1) << (n)) - 1)
 | 
				
			||||||
#define himask(n) (~lomask(32 - n))
 | 
					#define himask(n) (~lomask(32 - n))
 | 
				
			||||||
| 
						 | 
					@ -67,5 +64,3 @@ void bitvector_xor_to(u_int32_t *dest, u_int32_t doffs, u_int32_t *a,
 | 
				
			||||||
u_int64_t bitvector_count(u_int32_t *b, u_int32_t offs, u_int64_t nbits);
 | 
					u_int64_t bitvector_count(u_int32_t *b, u_int32_t offs, u_int64_t nbits);
 | 
				
			||||||
u_int32_t bitvector_any0(u_int32_t *b, u_int32_t offs, u_int32_t nbits);
 | 
					u_int32_t bitvector_any0(u_int32_t *b, u_int32_t offs, u_int32_t nbits);
 | 
				
			||||||
u_int32_t bitvector_any1(u_int32_t *b, u_int32_t offs, u_int32_t nbits);
 | 
					u_int32_t bitvector_any1(u_int32_t *b, u_int32_t offs, u_int32_t nbits);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __DIRPATH_H_
 | 
					 | 
				
			||||||
#define __DIRPATH_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef WIN32
 | 
					#ifdef WIN32
 | 
				
			||||||
#define PATHSEP '\\'
 | 
					#define PATHSEP '\\'
 | 
				
			||||||
#define PATHSEPSTRING "\\"
 | 
					#define PATHSEPSTRING "\\"
 | 
				
			||||||
| 
						 | 
					@ -20,5 +17,3 @@ void get_cwd(char *buf, size_t size);
 | 
				
			||||||
int set_cwd(char *buf);
 | 
					int set_cwd(char *buf);
 | 
				
			||||||
char *get_exename(char *buf, size_t size);
 | 
					char *get_exename(char *buf, size_t size);
 | 
				
			||||||
void path_to_dirname(char *path);
 | 
					void path_to_dirname(char *path);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __DTYPES_H_
 | 
					 | 
				
			||||||
#define __DTYPES_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
  This file defines sane integer types for our target platforms. This
 | 
					  This file defines sane integer types for our target platforms. This
 | 
				
			||||||
  library only runs on machines with the following characteristics:
 | 
					  library only runs on machines with the following characteristics:
 | 
				
			||||||
| 
						 | 
					@ -211,5 +208,3 @@ extern float F_PNAN;
 | 
				
			||||||
extern float F_NNAN;
 | 
					extern float F_NNAN;
 | 
				
			||||||
extern float F_PINF;
 | 
					extern float F_PINF;
 | 
				
			||||||
extern float F_NINF;
 | 
					extern float F_NINF;
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,8 +59,6 @@
 | 
				
			||||||
#include "random.h"
 | 
					#include "random.h"
 | 
				
			||||||
#include "llt.h"
 | 
					#include "llt.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "utils.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "ieee754.h"
 | 
					#include "ieee754.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "flisp.h"
 | 
					#include "flisp.h"
 | 
				
			||||||
| 
						 | 
					@ -415,8 +413,6 @@ value_t alloc_vector(size_t n, int init)
 | 
				
			||||||
// cvalues
 | 
					// cvalues
 | 
				
			||||||
// --------------------------------------------------------------------
 | 
					// --------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "htable.h"
 | 
					 | 
				
			||||||
#include "htableh_inc.h"
 | 
					 | 
				
			||||||
#include "ptrhash.h"
 | 
					#include "ptrhash.h"
 | 
				
			||||||
#include "operators.h"
 | 
					#include "operators.h"
 | 
				
			||||||
#include "cvalues.h"
 | 
					#include "cvalues.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef FLISP_H
 | 
					 | 
				
			||||||
#define FLISP_H
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
typedef uptrint_t value_t;
 | 
					typedef uptrint_t value_t;
 | 
				
			||||||
typedef int_t fixnum_t;
 | 
					typedef int_t fixnum_t;
 | 
				
			||||||
typedef uint_t ufixnum_t;
 | 
					typedef uint_t ufixnum_t;
 | 
				
			||||||
| 
						 | 
					@ -417,5 +414,3 @@ value_t cvalue_wchar(value_t *args, uint32_t nargs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void fl_init(size_t initial_heapsize);
 | 
					void fl_init(size_t initial_heapsize);
 | 
				
			||||||
int fl_load_system_image(value_t ios);
 | 
					int fl_load_system_image(value_t ios);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __HASHING_H_
 | 
					 | 
				
			||||||
#define __HASHING_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
uint_t nextipow2(uint_t i);
 | 
					uint_t nextipow2(uint_t i);
 | 
				
			||||||
u_int32_t int32hash(u_int32_t a);
 | 
					u_int32_t int32hash(u_int32_t a);
 | 
				
			||||||
u_int64_t int64hash(u_int64_t key);
 | 
					u_int64_t int64hash(u_int64_t key);
 | 
				
			||||||
| 
						 | 
					@ -12,5 +9,3 @@ u_int32_t int64to32hash(u_int64_t key);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
u_int64_t memhash(const char *buf, size_t n);
 | 
					u_int64_t memhash(const char *buf, size_t n);
 | 
				
			||||||
u_int32_t memhash32(const char *buf, size_t n);
 | 
					u_int32_t memhash32(const char *buf, size_t n);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __HTABLE_H_
 | 
					 | 
				
			||||||
#define __HTABLE_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define HT_N_INLINE 32
 | 
					#define HT_N_INLINE 32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct htable {
 | 
					struct htable {
 | 
				
			||||||
| 
						 | 
					@ -18,5 +15,3 @@ void htable_free(struct htable *h);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// clear and (possibly) change size
 | 
					// clear and (possibly) change size
 | 
				
			||||||
void htable_reset(struct htable *h, size_t sz);
 | 
					void htable_reset(struct htable *h, size_t sz);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __IEEE754_H_
 | 
					 | 
				
			||||||
#define __IEEE754_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
union ieee754_float {
 | 
					union ieee754_float {
 | 
				
			||||||
    float f;
 | 
					    float f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,5 +60,3 @@ union ieee854_long_double {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
 | 
					#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								c/ios.h
								
								
								
								
							
							
						
						
									
										5
									
								
								c/ios.h
								
								
								
								
							| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __IOS_H_
 | 
					 | 
				
			||||||
#define __IOS_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// this flag controls when data actually moves out to the underlying I/O
 | 
					// this flag controls when data actually moves out to the underlying I/O
 | 
				
			||||||
// channel. memory streams are a special case of this where the data
 | 
					// channel. memory streams are a special case of this where the data
 | 
				
			||||||
// never moves out.
 | 
					// never moves out.
 | 
				
			||||||
| 
						 | 
					@ -204,5 +201,3 @@ int ios_ungetc(int c, struct ios *s);
 | 
				
			||||||
  as optimizations, we do no writing if the buffer isn't "dirty", and we
 | 
					  as optimizations, we do no writing if the buffer isn't "dirty", and we
 | 
				
			||||||
  do no reading if the data will only be overwritten.
 | 
					  do no reading if the data will only be overwritten.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								c/llt.h
								
								
								
								
							
							
						
						
									
										5
									
								
								c/llt.h
								
								
								
								
							| 
						 | 
					@ -1,6 +1 @@
 | 
				
			||||||
#ifndef __LLT_H_
 | 
					 | 
				
			||||||
#define __LLT_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void llt_init();
 | 
					void llt_init();
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1 @@
 | 
				
			||||||
#ifndef __PTRHASH_H_
 | 
					 | 
				
			||||||
#define __PTRHASH_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
HTPROT(ptrhash)
 | 
					HTPROT(ptrhash)
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __LLTRANDOM_H_
 | 
					 | 
				
			||||||
#define __LLTRANDOM_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define random() genrand_int32()
 | 
					#define random() genrand_int32()
 | 
				
			||||||
#define srandom(n) init_genrand(n)
 | 
					#define srandom(n) init_genrand(n)
 | 
				
			||||||
double rand_double();
 | 
					double rand_double();
 | 
				
			||||||
| 
						 | 
					@ -10,5 +7,3 @@ void randomize();
 | 
				
			||||||
uint32_t genrand_int32();
 | 
					uint32_t genrand_int32();
 | 
				
			||||||
void init_genrand(uint32_t s);
 | 
					void init_genrand(uint32_t s);
 | 
				
			||||||
u_int64_t i64time();
 | 
					u_int64_t i64time();
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __LLTSOCKET_H_
 | 
					 | 
				
			||||||
#define __LLTSOCKET_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef WIN32
 | 
					#ifdef WIN32
 | 
				
			||||||
#include <winsock2.h>
 | 
					#include <winsock2.h>
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
| 
						 | 
					@ -27,5 +24,3 @@ void bzero(void *s, size_t n);
 | 
				
			||||||
#ifndef WIN32
 | 
					#ifndef WIN32
 | 
				
			||||||
void closesocket(int fd);
 | 
					void closesocket(int fd);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,6 @@
 | 
				
			||||||
#ifndef __TIMEFUNCS_H_
 | 
					 | 
				
			||||||
#define __TIMEFUNCS_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
u_int64_t i64time();
 | 
					u_int64_t i64time();
 | 
				
			||||||
double clock_now();
 | 
					double clock_now();
 | 
				
			||||||
void timestring(double seconds, char *buffer, size_t len);
 | 
					void timestring(double seconds, char *buffer, size_t len);
 | 
				
			||||||
double parsetime(const char *str);
 | 
					double parsetime(const char *str);
 | 
				
			||||||
void sleep_ms(int ms);
 | 
					void sleep_ms(int ms);
 | 
				
			||||||
void timeparts(int32_t *buf, double t);
 | 
					void timeparts(int32_t *buf, double t);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										18
									
								
								c/utf8.h
								
								
								
								
							
							
						
						
									
										18
									
								
								c/utf8.h
								
								
								
								
							| 
						 | 
					@ -1,19 +1,3 @@
 | 
				
			||||||
#ifndef __UTF8_H_
 | 
					 | 
				
			||||||
#define __UTF8_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if !defined(MACOSX)
 | 
					 | 
				
			||||||
#if !defined(__DTYPES_H_) && !defined(_SYS_TYPES_H)
 | 
					 | 
				
			||||||
typedef char int8_t;
 | 
					 | 
				
			||||||
typedef short int16_t;
 | 
					 | 
				
			||||||
typedef int int32_t;
 | 
					 | 
				
			||||||
typedef long long int64_t;
 | 
					 | 
				
			||||||
typedef unsigned char u_int8_t;
 | 
					 | 
				
			||||||
typedef unsigned short u_int16_t;
 | 
					 | 
				
			||||||
typedef unsigned int u_int32_t;
 | 
					 | 
				
			||||||
typedef unsigned long long u_int64_t;
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extern int locale_is_utf8;
 | 
					extern int locale_is_utf8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__WIN32__)
 | 
					#if defined(__WIN32__)
 | 
				
			||||||
| 
						 | 
					@ -128,5 +112,3 @@ int u8_isvalid(const char *str, int length);
 | 
				
			||||||
/* reverse a UTF-8 string. len is length in bytes. dest and src must both
 | 
					/* reverse a UTF-8 string. len is length in bytes. dest and src must both
 | 
				
			||||||
   be allocated to at least len+1 bytes. returns 1 for error, 0 otherwise */
 | 
					   be allocated to at least len+1 bytes. returns 1 for error, 0 otherwise */
 | 
				
			||||||
int u8_reverse(char *dest, char *src, size_t len);
 | 
					int u8_reverse(char *dest, char *src, size_t len);
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,3 @@
 | 
				
			||||||
#ifndef __UTILS_H_
 | 
					 | 
				
			||||||
#define __UTILS_H_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if defined(__amd64__) || defined(_M_AMD64)
 | 
					#if defined(__amd64__) || defined(_M_AMD64)
 | 
				
			||||||
#define ARCH_X86_64
 | 
					#define ARCH_X86_64
 | 
				
			||||||
#define __CPU__ 686
 | 
					#define __CPU__ 686
 | 
				
			||||||
| 
						 | 
					@ -108,5 +105,3 @@ STATIC_INLINE u_int64_t ByteSwap64(u_int64_t x)
 | 
				
			||||||
#define bswap_64(x) ByteSwap64(x)
 | 
					#define bswap_64(x) ByteSwap64(x)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue