Permalink
Browse files

removing leading/trailing underscores from preprocessor symbols

issue #422
  • Loading branch information...
1 parent c510206 commit a98aa622a5bd492a2376777b4db8b4e24dfaa77e @JeffBezanson JeffBezanson committed Feb 20, 2012
View
@@ -1,5 +1,5 @@
-#ifndef _BUILTIN_PROTO_H_
-#define _BUILTIN_PROTO_H_
+#ifndef BUILTIN_PROTO_H
+#define BUILTIN_PROTO_H
// declarations for julia-callable builtin functions
View
@@ -1,5 +1,5 @@
-#ifndef __EQUALHASH_H_
-#define __EQUALHASH_H_
+#ifndef EQUALHASH_H
+#define EQUALHASH_H
#include "htableh.inc"
View
@@ -1,5 +1,5 @@
-#ifndef _FLISP_H_
-#define _FLISP_H_
+#ifndef FLISP_H
+#define FLISP_H
#include "libsupport.h"
View
@@ -1,5 +1,5 @@
-#ifndef __OPCODES_H_
-#define __OPCODES_H_
+#ifndef OPCODES_H
+#define OPCODES_H
enum {
OP_NOP=0, OP_DUP, OP_POP, OP_CALL, OP_TCALL, OP_JMP, OP_BRF, OP_BRT,
View
@@ -1,5 +1,5 @@
-#ifndef _JLTYPES_INTERNAL_H_
-#define _JLTYPES_INTERNAL_H_
+#ifndef JLTYPES_INTERNAL_H
+#define JLTYPES_INTERNAL_H
void jl_cache_type_(jl_tag_type_t *type);
View
@@ -1,5 +1,5 @@
-#ifndef _JULIA_H_
-#define _JULIA_H_
+#ifndef JULIA_H
+#define JULIA_H
#include "libsupport.h"
View
@@ -1,5 +1,5 @@
-#ifndef _NEWOBJ_INTERNAL_H_
-#define _NEWOBJ_INTERNAL_H_
+#ifndef NEWOBJ_INTERNAL_H
+#define NEWOBJ_INTERNAL_H
static inline jl_value_t *newobj(jl_type_t *type, size_t nfields)
{
@@ -2,8 +2,8 @@
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
-#ifndef _MURMURHASH3_H_
-#define _MURMURHASH3_H_
+#ifndef MURMURHASH3_H
+#define MURMURHASH3_H
//-----------------------------------------------------------------------------
// Platform-specific functions and macros
@@ -34,4 +34,4 @@ void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out
//-----------------------------------------------------------------------------
-#endif // _MURMURHASH3_H_
+#endif // MURMURHASH3_H
View
@@ -1,5 +1,5 @@
-#ifndef __ARRAYLIST_H_
-#define __ARRAYLIST_H_
+#ifndef ARRAYLIST_H
+#define ARRAYLIST_H
#define AL_N_INLINE 29
View
@@ -1,5 +1,5 @@
-#ifndef __BITVECTOR_H_
-#define __BITVECTOR_H_
+#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)
View
@@ -1,5 +1,5 @@
-#ifndef __DIRPATH_H_
-#define __DIRPATH_H_
+#ifndef DIRPATH_H
+#define DIRPATH_H
#ifdef WIN32
#define PATHSEP '\\'
View
@@ -1,5 +1,5 @@
-#ifndef __DTYPES_H_
-#define __DTYPES_H_
+#ifndef DTYPES_H
+#define DTYPES_H
/*
This file defines sane integer types for our target platforms. This
View
@@ -1,5 +1,5 @@
-#ifndef __HASHING_H_
-#define __HASHING_H_
+#ifndef HASHING_H
+#define HASHING_H
uint_t nextipow2(uint_t i);
DLLEXPORT u_int32_t int32hash(u_int32_t a);
View
@@ -1,5 +1,5 @@
-#ifndef __HTABLE_H_
-#define __HTABLE_H_
+#ifndef HTABLE_H
+#define HTABLE_H
#define HT_N_INLINE 32
View
@@ -1,5 +1,5 @@
-#ifndef __IEEE754_H_
-#define __IEEE754_H_
+#ifndef IEEE754_H
+#define IEEE754_H
#ifdef __linux
@@ -70,6 +70,6 @@ union ieee854_long_double {
#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-#endif // ifdef __APPLE__ ...
+#endif
#endif
View
@@ -1,5 +1,5 @@
-#ifndef __IOS_H_
-#define __IOS_H_
+#ifndef IOS_H
+#define IOS_H
#include <stdarg.h>
#include <pthread.h>
View
@@ -1,5 +1,5 @@
-#ifndef __LIBSUPPORT_H_
-#define __LIBSUPPORT_H_
+#ifndef LIBSUPPORT_H
+#define LIBSUPPORT_H
#include <stdarg.h>
#include "dtypes.h"
View
@@ -1,5 +1,5 @@
-#ifndef __PTRHASH_H_
-#define __PTRHASH_H_
+#ifndef PTRHASH_H
+#define PTRHASH_H
#include "htableh.inc"
View
@@ -1,5 +1,5 @@
-#ifndef __LLTSOCKET_H_
-#define __LLTSOCKET_H_
+#ifndef LLTSOCKET_H
+#define LLTSOCKET_H
#ifdef WIN32
#include <winsock2.h>
View
@@ -1,5 +1,5 @@
-#ifndef __TIMEFUNCS_H_
-#define __TIMEFUNCS_H_
+#ifndef TIMEFUNCS_H
+#define TIMEFUNCS_H
u_int64_t i64time(void);
DLLEXPORT double clock_now(void);
View
@@ -1,5 +1,5 @@
-#ifndef __UTF8_H_
-#define __UTF8_H_
+#ifndef UTF8_H
+#define UTF8_H
extern int locale_is_utf8;
View
@@ -1,5 +1,5 @@
-#ifndef __UTILS_H_
-#define __UTILS_H_
+#ifndef UTILS_H
+#define UTILS_H
DLLEXPORT int double_exponent(double d);
void snprint_real(char *s, size_t cnt, double r,

0 comments on commit a98aa62

Please sign in to comment.