Skip to content

Commit

Permalink
removing leading/trailing underscores from preprocessor symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 20, 2012
1 parent c510206 commit a98aa62
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions src/builtin_proto.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/flisp/equalhash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __EQUALHASH_H_
#define __EQUALHASH_H_
#ifndef EQUALHASH_H
#define EQUALHASH_H

#include "htableh.inc"

Expand Down
4 changes: 2 additions & 2 deletions src/flisp/flisp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FLISP_H_
#define _FLISP_H_
#ifndef FLISP_H
#define FLISP_H

#include "libsupport.h"

Expand Down
4 changes: 2 additions & 2 deletions src/flisp/opcodes.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/jltypes_internal.h
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/julia.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _JULIA_H_
#define _JULIA_H_
#ifndef JULIA_H
#define JULIA_H

#include "libsupport.h"

Expand Down
4 changes: 2 additions & 2 deletions src/newobj_internal.h
Original file line number Diff line number Diff line change
@@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions src/support/MurmurHash3.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -34,4 +34,4 @@ void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out

//-----------------------------------------------------------------------------

#endif // _MURMURHASH3_H_
#endif // MURMURHASH3_H
4 changes: 2 additions & 2 deletions src/support/arraylist.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ARRAYLIST_H_
#define __ARRAYLIST_H_
#ifndef ARRAYLIST_H
#define ARRAYLIST_H

#define AL_N_INLINE 29

Expand Down
4 changes: 2 additions & 2 deletions src/support/bitvector.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/support/dirpath.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __DIRPATH_H_
#define __DIRPATH_H_
#ifndef DIRPATH_H
#define DIRPATH_H

#ifdef WIN32
#define PATHSEP '\\'
Expand Down
4 changes: 2 additions & 2 deletions src/support/dtypes.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/support/hashing.h
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/support/htable.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __HTABLE_H_
#define __HTABLE_H_
#ifndef HTABLE_H
#define HTABLE_H

#define HT_N_INLINE 32

Expand Down
6 changes: 3 additions & 3 deletions src/support/ieee754.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __IEEE754_H_
#define __IEEE754_H_
#ifndef IEEE754_H
#define IEEE754_H

#ifdef __linux

Expand Down Expand Up @@ -70,6 +70,6 @@ union ieee854_long_double {

#define IEEE854_LONG_DOUBLE_BIAS 0x3fff

#endif // ifdef __APPLE__ ...
#endif

#endif
4 changes: 2 additions & 2 deletions src/support/ios.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __IOS_H_
#define __IOS_H_
#ifndef IOS_H
#define IOS_H

#include <stdarg.h>
#include <pthread.h>
Expand Down
4 changes: 2 additions & 2 deletions src/support/libsupport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LIBSUPPORT_H_
#define __LIBSUPPORT_H_
#ifndef LIBSUPPORT_H
#define LIBSUPPORT_H

#include <stdarg.h>
#include "dtypes.h"
Expand Down
4 changes: 2 additions & 2 deletions src/support/ptrhash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __PTRHASH_H_
#define __PTRHASH_H_
#ifndef PTRHASH_H
#define PTRHASH_H

#include "htableh.inc"

Expand Down
4 changes: 2 additions & 2 deletions src/support/socket.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LLTSOCKET_H_
#define __LLTSOCKET_H_
#ifndef LLTSOCKET_H
#define LLTSOCKET_H

#ifdef WIN32
#include <winsock2.h>
Expand Down
4 changes: 2 additions & 2 deletions src/support/timefuncs.h
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/support/utf8.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __UTF8_H_
#define __UTF8_H_
#ifndef UTF8_H
#define UTF8_H

extern int locale_is_utf8;

Expand Down
4 changes: 2 additions & 2 deletions src/support/utils.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit a98aa62

Please sign in to comment.