Browse Source

Bugfix: C reserves identifiers beginning with an underscore and uppercase letter or another underscore

Luke Dashjr 12 years ago
parent
commit
0459dd040f
15 changed files with 31 additions and 31 deletions
  1. 2 2
      adl.h
  2. 3 3
      bench_block.h
  3. 2 2
      compat.h
  4. 2 2
      deviceapi.h
  5. 2 2
      driver-cpu.h
  6. 2 2
      driver-opencl.h
  7. 2 2
      findnonce.h
  8. 2 2
      httpsrv.h
  9. 2 2
      libbitfury.h
  10. 2 2
      libztex.h
  11. 2 2
      logging.h
  12. 2 2
      lowlevel.h
  13. 2 2
      miner.h
  14. 2 2
      ocl.h
  15. 2 2
      util.h

+ 2 - 2
adl.h

@@ -1,5 +1,5 @@
-#ifndef __ADL_H__
-#define __ADL_H__
+#ifndef BFG_ADL_H
+#define BFG_ADL_H
 #ifdef HAVE_ADL
 #ifdef HAVE_ADL
 
 
 #include <stdbool.h>
 #include <stdbool.h>

+ 3 - 3
bench_block.h

@@ -1,5 +1,5 @@
-#if !defined(__BENCH_BLOCK_H__)
-	#define __BENCH_BLOCK_H__ 1
+#ifndef BFG_BENCH_BLOCK_H
+#define BFG_BENCH_BLOCK_H
 
 
 	// Random work pulled from a pool
 	// Random work pulled from a pool
         #define CGMINER_BENCHMARK_BLOCK                                                                         \
         #define CGMINER_BENCHMARK_BLOCK                                                                         \
@@ -36,4 +36,4 @@
                 0x55, 0xF1, 0x44, 0x4E, 0x00, 0x00, 0x00, 0x00, 0x79, 0x63, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, \
                 0x55, 0xF1, 0x44, 0x4E, 0x00, 0x00, 0x00, 0x00, 0x79, 0x63, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, \
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                                 \
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                                 \
 
 
-#endif // !defined(__BENCH_BLOCK_H__)
+#endif

+ 2 - 2
compat.h

@@ -7,8 +7,8 @@
  * any later version.  See COPYING for more details.
  * any later version.  See COPYING for more details.
  */
  */
 
 
-#ifndef __COMPAT_H__
-#define __COMPAT_H__
+#ifndef BFG_COMPAT_H
+#define BFG_COMPAT_H
 
 
 #include "config.h"
 #include "config.h"
 
 

+ 2 - 2
deviceapi.h

@@ -1,5 +1,5 @@
-#ifndef __DEVICEAPI_H__
-#define __DEVICEAPI_H__
+#ifndef BFG_DEVICEAPI_H
+#define BFG_DEVICEAPI_H
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>

+ 2 - 2
driver-cpu.h

@@ -10,8 +10,8 @@
  * any later version.  See COPYING for more details.
  * any later version.  See COPYING for more details.
  */
  */
 
 
-#ifndef __DEVICE_CPU_H__
-#define __DEVICE_CPU_H__
+#ifndef BFG_DRIVER_CPU_H
+#define BFG_DRIVER_CPU_H
 
 
 #include "miner.h"
 #include "miner.h"
 
 

+ 2 - 2
driver-opencl.h

@@ -1,5 +1,5 @@
-#ifndef __DEVICE_GPU_H__
-#define __DEVICE_GPU_H__
+#ifndef BFG_DRIVER_OPENCL
+#define BFG_DRIVER_OPENCL
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 
 

+ 2 - 2
findnonce.h

@@ -1,5 +1,5 @@
-#ifndef __FINDNONCE_H__
-#define __FINDNONCE_H__
+#ifndef BFG_FINDNONCE_H
+#define BFG_FINDNONCE_H
 
 
 #include <stdint.h>
 #include <stdint.h>
 
 

+ 2 - 2
httpsrv.h

@@ -1,5 +1,5 @@
-#ifndef _BFG_HTTPSRV_H
-#define _BFG_HTTPSRV_H
+#ifndef BFG_HTTPSRV_H
+#define BFG_HTTPSRV_H
 
 
 #include <microhttpd.h>
 #include <microhttpd.h>
 
 

+ 2 - 2
libbitfury.h

@@ -1,5 +1,5 @@
-#ifndef __LIBBITFURY_H__
-#define __LIBBITFURY_H__
+#ifndef BFG_LIBBITFURY_H
+#define BFG_LIBBITFURY_H
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>

+ 2 - 2
libztex.h

@@ -1,5 +1,5 @@
-#ifndef __LIBZTEX_H__
-#define __LIBZTEX_H__
+#ifndef BFG_LIBZTEX_H
+#define BFG_LIBZTEX_H
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>

+ 2 - 2
logging.h

@@ -8,8 +8,8 @@
  * any later version.  See COPYING for more details.
  * any later version.  See COPYING for more details.
  */
  */
 
 
-#ifndef __LOGGING_H__
-#define __LOGGING_H__
+#ifndef BFG_LOGGING_H
+#define BFG_LOGGING_H
 
 
 #include "config.h"
 #include "config.h"
 
 

+ 2 - 2
lowlevel.h

@@ -1,5 +1,5 @@
-#ifndef _BFG_LOWLEVEL_H
-#define _BFG_LOWLEVEL_H
+#ifndef BFG_LOWLEVEL_H
+#define BFG_LOWLEVEL_H
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>

+ 2 - 2
miner.h

@@ -11,8 +11,8 @@
  * any later version.  See COPYING for more details.
  * any later version.  See COPYING for more details.
  */
  */
 
 
-#ifndef __MINER_H__
-#define __MINER_H__
+#ifndef BFG_MINER_H
+#define BFG_MINER_H
 
 
 #include "config.h"
 #include "config.h"
 
 

+ 2 - 2
ocl.h

@@ -1,5 +1,5 @@
-#ifndef __OCL_H__
-#define __OCL_H__
+#ifndef BFG_OCL_H
+#define BFG_OCL_H
 
 
 #include "config.h"
 #include "config.h"
 
 

+ 2 - 2
util.h

@@ -10,8 +10,8 @@
  * any later version.  See COPYING for more details.
  * any later version.  See COPYING for more details.
  */
  */
 
 
-#ifndef __UTIL_H__
-#define __UTIL_H__
+#ifndef BFG_UTIL_H
+#define BFG_UTIL_H
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>