Rename #include'd C files from .c to .h

This commit is contained in:
Lassi Kortela 2019-08-09 18:30:02 +03:00
parent d69e40aa3a
commit 0701b22d29
13 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
#include "operators.c"
#include "operators.h"
#ifdef BITS64
#define NWORDS(sz) (((sz) + 7) >> 3)

View File

@ -394,8 +394,8 @@ value_t alloc_vector(size_t n, int init)
// cvalues
// --------------------------------------------------------------------
#include "cvalues.c"
#include "types.c"
#include "cvalues.h"
#include "types.h"
// print
// ----------------------------------------------------------------------
@ -403,7 +403,7 @@ value_t alloc_vector(size_t n, int init)
static int isnumtok(char *tok, value_t *pval);
static inline int symchar(char c);
#include "print.c"
#include "print.h"
// collector
// ------------------------------------------------------------------
@ -747,12 +747,12 @@ int fl_isnumber(value_t v)
// read
// -----------------------------------------------------------------------
#include "read.c"
#include "read.h"
// equal
// ----------------------------------------------------------------------
#include "equal.c"
#include "equal.h"
// eval
// -----------------------------------------------------------------------

View File

@ -61,7 +61,7 @@ u_int32_t int64to32hash(u_int64_t key)
return (u_int32_t)key;
}
#include "lookup3.c"
#include "lookup3.h"
u_int64_t memhash(const char *buf, size_t n)
{

View File

@ -10,7 +10,7 @@
#include "random.h"
#include "timefuncs.h"
#include "mt19937ar.c"
#include "mt19937ar.h"
double rand_double()
{

View File

View File

@ -256,7 +256,7 @@ size_t u8_strlen(const char *s)
}
#if defined(__WIN32__)
#include "wcwidth.c"
#include "wcwidth.h"
#endif
size_t u8_strwidth(const char *s)