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:
Lassi Kortela 2019-08-09 19:47:22 +03:00
parent fe4550dad7
commit 45a7ec7bc4
16 changed files with 0 additions and 92 deletions

View File

@ -1,6 +1,3 @@
#ifndef __BITVECTOR_H_
#define __BITVECTOR_H_
// a mask with n set lo or hi bits
#define lomask(n) (u_int32_t)((((u_int32_t)1) << (n)) - 1)
#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_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);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __DIRPATH_H_
#define __DIRPATH_H_
#ifdef WIN32
#define PATHSEP '\\'
#define PATHSEPSTRING "\\"
@ -20,5 +17,3 @@ void get_cwd(char *buf, size_t size);
int set_cwd(char *buf);
char *get_exename(char *buf, size_t size);
void path_to_dirname(char *path);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __DTYPES_H_
#define __DTYPES_H_
/*
This file defines sane integer types for our target platforms. This
library only runs on machines with the following characteristics:
@ -211,5 +208,3 @@ extern float F_PNAN;
extern float F_NNAN;
extern float F_PINF;
extern float F_NINF;
#endif

View File

@ -59,8 +59,6 @@
#include "random.h"
#include "llt.h"
#include "utils.h"
#include "ieee754.h"
#include "flisp.h"
@ -415,8 +413,6 @@ value_t alloc_vector(size_t n, int init)
// cvalues
// --------------------------------------------------------------------
#include "htable.h"
#include "htableh_inc.h"
#include "ptrhash.h"
#include "operators.h"
#include "cvalues.h"

View File

@ -1,6 +1,3 @@
#ifndef FLISP_H
#define FLISP_H
typedef uptrint_t value_t;
typedef int_t fixnum_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);
int fl_load_system_image(value_t ios);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __HASHING_H_
#define __HASHING_H_
uint_t nextipow2(uint_t i);
u_int32_t int32hash(u_int32_t a);
u_int64_t int64hash(u_int64_t key);
@ -12,5 +9,3 @@ u_int32_t int64to32hash(u_int64_t key);
#endif
u_int64_t memhash(const char *buf, size_t n);
u_int32_t memhash32(const char *buf, size_t n);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __HTABLE_H_
#define __HTABLE_H_
#define HT_N_INLINE 32
struct htable {
@ -18,5 +15,3 @@ void htable_free(struct htable *h);
// clear and (possibly) change size
void htable_reset(struct htable *h, size_t sz);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __IEEE754_H_
#define __IEEE754_H_
union ieee754_float {
float f;
@ -63,5 +60,3 @@ union ieee854_long_double {
};
#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
#endif

View File

@ -1,6 +1,3 @@
#ifndef __IOS_H_
#define __IOS_H_
// 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
// 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
do no reading if the data will only be overwritten.
*/
#endif

View File

@ -1,6 +1 @@
#ifndef __LLT_H_
#define __LLT_H_
void llt_init();
#endif

View File

@ -1,6 +1 @@
#ifndef __PTRHASH_H_
#define __PTRHASH_H_
HTPROT(ptrhash)
#endif

View File

@ -1,6 +1,3 @@
#ifndef __LLTRANDOM_H_
#define __LLTRANDOM_H_
#define random() genrand_int32()
#define srandom(n) init_genrand(n)
double rand_double();
@ -10,5 +7,3 @@ void randomize();
uint32_t genrand_int32();
void init_genrand(uint32_t s);
u_int64_t i64time();
#endif

View File

@ -1,6 +1,3 @@
#ifndef __LLTSOCKET_H_
#define __LLTSOCKET_H_
#ifdef WIN32
#include <winsock2.h>
#else
@ -27,5 +24,3 @@ void bzero(void *s, size_t n);
#ifndef WIN32
void closesocket(int fd);
#endif
#endif

View File

@ -1,11 +1,6 @@
#ifndef __TIMEFUNCS_H_
#define __TIMEFUNCS_H_
u_int64_t i64time();
double clock_now();
void timestring(double seconds, char *buffer, size_t len);
double parsetime(const char *str);
void sleep_ms(int ms);
void timeparts(int32_t *buf, double t);
#endif

View File

@ -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;
#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
be allocated to at least len+1 bytes. returns 1 for error, 0 otherwise */
int u8_reverse(char *dest, char *src, size_t len);
#endif

View File

@ -1,6 +1,3 @@
#ifndef __UTILS_H_
#define __UTILS_H_
#if defined(__amd64__) || defined(_M_AMD64)
#define ARCH_X86_64
#define __CPU__ 686
@ -108,5 +105,3 @@ STATIC_INLINE u_int64_t ByteSwap64(u_int64_t x)
#define bswap_64(x) ByteSwap64(x)
#endif
#endif