]> git.sur5r.net Git - cc65/commitdiff
Harmonized the style of including headers from headers.
authorOliver Schmidt <ol.sc@web.de>
Fri, 2 Feb 2018 11:28:22 +0000 (12:28 +0100)
committerOliver Schmidt <ol.sc@web.de>
Fri, 2 Feb 2018 11:28:22 +0000 (12:28 +0100)
We surely don't care about some file I/O on host machines in 2018 ;-)

18 files changed:
include/ace.h
include/apple2.h
include/apple2enh.h
include/atari.h
include/atari2600.h
include/c16.h
include/cbm.h
include/geos.h
include/geos/gdisk.h
include/geos/gfile.h
include/geos/ggraph.h
include/geos/gmemory.h
include/geos/gmenu.h
include/geos/gprocess.h
include/geos/gsym.h
include/lynx.h
include/plus4.h
include/stdio.h

index fba672227715d5902b63161a82ef28cfc579f97f..8ce86e18fcc2310227c1ba7b7779cf0468109f89 100644 (file)
@@ -45,9 +45,7 @@
 
 
 
-#ifndef _STDDEF_H
 #include <stddef.h>
-#endif
 
 
 
index 31e56a95a913dbadc41a007a9fa8e0f23bd553b0..f217ad04c7a44341342e2745c19e69c9e9bb3abf 100644 (file)
 #  error This module may only be used when compiling for the Apple ][!
 #endif
 
-
 #include <apple2_filetype.h>
 
+
+
 /*****************************************************************************/
 /*                                   Data                                    */
 /*****************************************************************************/
index cc62f70b7a0b83aa7cdc54ac4685569f86541de8..77328b5edf116b0bdc7fbddfc3042afdfa9656d7 100644 (file)
 
 
 
-/* If not already done, include the apple2.h header file */
-#if !defined(_APPLE2_H)
-#  include <apple2.h>
-#endif
+#include <apple2.h>
 
 
 
index bf1af7d7bb0c1327193fab2a73ce2608cb3a73fb..4bed8d7a704455c949c1fce02fb9b411b9d14653 100644 (file)
@@ -355,5 +355,7 @@ struct __iocb {
 #define IOCB_GETCWD      0x30  /* get current directory (MyDOS/SpartaDOS) */
 #define IOCB_FORMAT      0xFE  /* format */
 
+
+
 /* End of atari.h */
 #endif
index 1eb51a2dda0b7e444b3010ad16896e46c95631c9..a6b5cda47749a3f08fe34974c295647ea7b882ad 100644 (file)
@@ -8,9 +8,13 @@
 /*                                                                           */
 /*****************************************************************************/
 
+
+
 #ifndef _ATARI2600_H
 #define _ATARI2600_H
 
+
+
 /* Check for errors */
 #if !defined(__ATARI2600__)
 #  error This module may only be used when compiling for the Atari 2600!
@@ -22,5 +26,7 @@
 #include <_riot.h>
 #define RIOT (*(struct __riot*)0x0280)
 
+
+
 /* End of atari2600.h */
-#endif /* #ifndef _ATARI2600_H */
+#endif
index d49ca6fd4d59b2730f03073098d9730c266a331a..c039218f980101f8f4c4d566c690ad4d8c8f0de0 100644 (file)
@@ -47,9 +47,7 @@
 
 /* Include the base header file for the 264 series. include file.
  */
-#ifndef _CBM264_H
 #include <cbm264.h>
-#endif
 
 
 
index da63375b238b5b73b3bd87256e45a9992a02c47c..1395f700f51568363ba4effcfb27087e75dbc1e4 100644 (file)
 
 
 /* We need NULL. */
-
-#if !defined(_STDDEF_H)
-#  include <stddef.h>
-#endif
+#include <stddef.h>
 
 /* Load the system-specific files here, if needed. */
 #if   defined(__C64__)    && !defined(_C64_H)
index ae356d679923655ca823cf7501816d47eb44b5a1..3f760b6ad6558d735858372241bb8536462de155 100644 (file)
 
 
 
-#ifndef _GCONST_H
 #include <geos/gconst.h>
-#endif
-
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
-
-#ifndef _GSYM_H
 #include <geos/gsym.h>
-#endif
-
-#ifndef _GDISK_H
 #include <geos/gdisk.h>
-#endif
-
-#ifndef _GFILE_H
 #include <geos/gfile.h>
-#endif
-
-#ifndef _GPROCESS_H
 #include <geos/gprocess.h>
-#endif
-
-#ifndef _GGRAPH_H
 #include <geos/ggraph.h>
-#endif
-
-#ifndef _GMENU_H
 #include <geos/gmenu.h>
-#endif
-
-#ifndef _GSPRITE_H
 #include <geos/gsprite.h>
-#endif
-
-#ifndef _GMEMORY_H
 #include <geos/gmemory.h>
-#endif
-
-#ifndef _GSYS_H
 #include <geos/gsys.h>
-#endif
-
-#ifndef _GDLGBOX_H
 #include <geos/gdlgbox.h>
-#endif
+
 
 
 #define CH_ULCORNER             '+'
 #define JOY_BTN_1_MASK          0x10
 
 
+
 /* End of geos.h */
 #endif
index f65d7d30188d71dfa5bd15b6868a8d0a10c2be90..30305a2fc764579729cc02897e0e19f3097ea53b 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GDISK_H
 #define _GDISK_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 char __fastcall__ ReadBuff(struct tr_se *myTrSe);
 char __fastcall__ WriteBuff(struct tr_se *myTrSe);
index d7667d8ec12b02b99133d5cc90e8d68b92c3e75a..ec7a75bbc2545ae9b8b4427d66ed9daef73c4fcf 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GFILE_H
 #define _GFILE_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 struct filehandle *Get1stDirEntry(void);
 struct filehandle *GetNxtDirEntry(void);
index 961ec2d80b962096b57c2cd5b5be74eab39203ad..35e02c1983968f3cce055c518bb6ee31097ad059 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GGRAPH_H
 #define _GGRAPH_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 void __fastcall__ SetPattern(char newpattern);
 
index 3fba5cb5bb79d139a7b3942708d959ced29443e7..ba8e9f21175d7934b599ec4d320fa0e4126cbba7 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GMEMORY_H
 #define _GMEMORY_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 void __fastcall__ CopyString(char *dest, const char *source);
 char __fastcall__ CmpString(const char *dest, const char *source);
index 3175b6cf3690cc01105710604a40dbf64efde00d..89caa2c027d98a280e7d77ce0eff4d2d413c1191 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GMENU_H
 #define _GMENU_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 void __fastcall__ DoMenu(struct menu *myMenu);
 void ReDoMenu(void);
index 6fab2ecfae7bb5120b29454bf437048cc3358b5b..000003f3206567d4fc729bcd2e78ec0f2b34347a 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GPROCESS_H
 #define _GPROCESS_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 void __fastcall__ InitProcesses(char number, struct process *proctab);
 void __fastcall__ RestartProcess(char number);
index 0850466748b92ee951f2e00b21de48e446ac0577..2b2c8fbb21e42be9243ca94249dbe3e71e7b2814 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _GSYM_H
 #define _GSYM_H
 
-#ifndef _GSTRUCT_H
 #include <geos/gstruct.h>
-#endif
 
 #define r0              (*(unsigned*)(R_BASE + 0x00))
 #define r0L             (*(char*)(R_BASE + 0x00))
index 3629f322e9329532b5152f9964181cda44da9c44..4b0390a13223c846115ba9d32719f379fdf2f299 100644 (file)
@@ -123,6 +123,8 @@ extern void lynx_160_102_16_tgi[];    /* Referred to by tgi_static_stddrv[] */
 /*                           Sound support                                   */
 /*****************************************************************************/
 
+
+
 void lynx_snd_init (void);
 /* Initialize the sound driver */
 
@@ -144,6 +146,8 @@ void __fastcall__ lynx_snd_stop_channel (unsigned char channel);
 unsigned char lynx_snd_active(void);
 /* Show which channels are active */
 
+
+
 /*****************************************************************************/
 /*                           Accessing the cart                              */
 /*****************************************************************************/
@@ -209,5 +213,6 @@ unsigned __fastcall__ lynx_eewrite (unsigned cell, unsigned val);
 #define SUZY        (*(struct __suzy*)0xFC00)
 
 
+
 /* End of lynx.h */
 #endif
index 840e8b342601d9421a9d1e05492566a8cb481ec7..81e3c5286588027f30aa4982904a0774e81e36ad 100644 (file)
@@ -47,9 +47,7 @@
 
 /* Include the base header file for the 264 series. include file.
  */
-#ifndef _CBM264_H
 #include <cbm264.h>
-#endif
 
 /* Define hardware */
 #include <_6551.h>
index a3facd513522dbdfe0cdd9ad618615bed8bc053f..73dc05bdb602a4e1b6a9eccf330e9b63a74527a7 100644 (file)
 
 
 
-#ifndef _STDDEF_H
-#  include <stddef.h>
-#endif
-#ifndef _STDARG_H
-#  include <stdarg.h>
-#endif
+#include <stddef.h>
+#include <stdarg.h>
 
 
 
@@ -147,6 +143,3 @@ void __fastcall__ _poserror (const char* msg);          /* cc65 */
 
 /* End of stdio.h */
 #endif
-
-
-