Amiga: header hygiene and palette-size constants
Add AMII_PALETTE_SIZE / AMIV_PALETTE_SIZE in amiconf.h to make the actual populated portion of the init-map arrays explicit. Drop the redundant extern void exit() declaration. Annotate Abort with NORETURN in both amiconf.h and winproto.h; drop the duplicate Abort declaration further down winproto.h. Convert the bare-token "CLIPPING must be defined" assertion in windefs.h into a real #error directive. Comment in winext.h to disambiguate the three similarly named amii*_init*map palette arrays.
This commit is contained in:
+5
-2
@@ -48,9 +48,8 @@ extern void nethack_exit(int);
|
||||
extern void amii_setpens(int);
|
||||
|
||||
extern void getlind(const char *, char *, const char *);
|
||||
extern void exit(int);
|
||||
extern void CleanUp(void);
|
||||
extern void Abort(long);
|
||||
extern void Abort(long) NORETURN;
|
||||
extern int getpid(void);
|
||||
extern int kbhit(void);
|
||||
extern int WindowGetchar(void);
|
||||
@@ -84,6 +83,10 @@ extern void ami_wininit_data(int);
|
||||
#define CHANGE_COLOR 1
|
||||
#define DEPTH 6 /* Maximum depth of the screen allowed */
|
||||
#define AMII_MAXCOLORS (1L << DEPTH)
|
||||
/* Number of palette entries actually populated in amii_init_map[] (AMII text
|
||||
* mode) and amiv_init_map[] (AMIV tile mode). Indices beyond these read 0. */
|
||||
#define AMII_PALETTE_SIZE 8
|
||||
#define AMIV_PALETTE_SIZE 32
|
||||
typedef unsigned short AMII_COLOR_TYPE;
|
||||
|
||||
#define PORT_HELP "amii.hlp"
|
||||
|
||||
Reference in New Issue
Block a user