FDECL, NDECL in outdated

This commit is contained in:
nhmall
2021-01-31 13:40:15 -05:00
parent b851b28cbe
commit 979571e09e
22 changed files with 213 additions and 213 deletions
+23 -23
View File
@@ -82,34 +82,34 @@ typedef long off_t;
/* ### amidos.c ### */ /* ### amidos.c ### */
extern void FDECL(nethack_exit, (int)); extern void nethack_exit(int);
/* ### amiwbench.c ### */ /* ### amiwbench.c ### */
extern void NDECL(ami_wbench_init); extern void ami_wbench_init(void);
extern void NDECL(ami_wbench_args); extern void ami_wbench_args(void);
extern int FDECL(ami_wbench_getsave, (int)); extern int ami_wbench_getsave(int);
extern void FDECL(ami_wbench_unlink, (char *)); extern void ami_wbench_unlink(char *);
extern int FDECL(ami_wbench_iconsize, (char *)); extern int ami_wbench_iconsize(char *);
extern void FDECL(ami_wbench_iconwrite, (char *)); extern void ami_wbench_iconwrite(char *);
extern int FDECL(ami_wbench_badopt, (const char *)); extern int ami_wbench_badopt(const char *);
extern void NDECL(ami_wbench_cleanup); extern void ami_wbench_cleanup(void);
extern void FDECL(getlind, (const char *, char *, const char *)); extern void getlind(const char *, char *, const char *);
/* ### winreq.c ### */ /* ### winreq.c ### */
extern void amii_setpens(int); extern void amii_setpens(int);
extern void FDECL(exit, (int)); extern void exit(int);
extern void NDECL(CleanUp); extern void CleanUp(void);
extern void FDECL(Abort, (long)); extern void Abort(long);
extern int NDECL(getpid); extern int getpid(void);
extern char *FDECL(CopyFile, (const char *, const char *)); extern char *CopyFile(const char *, const char *);
extern int NDECL(kbhit); extern int kbhit(void);
extern int NDECL(WindowGetchar); extern int WindowGetchar(void);
extern void FDECL(ami_argset, (int *, char *[])); extern void ami_argset(int *, char *[]);
extern void FDECL(ami_mkargline, (int *, char **[])); extern void ami_mkargline(int *, char **[]);
extern void FDECL(ami_wininit_data, (int)); extern void ami_wininit_data(int);
#define FromWBench 0 /* A hint for compiler ... */ #define FromWBench 0 /* A hint for compiler ... */
/* extern boolean FromWBench; /* how were we run? */ /* extern boolean FromWBench; /* how were we run? */
@@ -132,8 +132,8 @@ extern char **ami_argv;
#endif #endif
#ifdef AZTEC_C #ifdef AZTEC_C
extern FILE *FDECL(freopen, (const char *, const char *, FILE *)); extern FILE *freopen(const char *, const char *, FILE *);
extern char *FDECL(gets, (char *)); extern char *gets(char *);
#endif #endif
/* /*
@@ -191,7 +191,7 @@ extern int amibbs; /* BBS mode? */
#ifdef AMII_GRAPHICS #ifdef AMII_GRAPHICS
extern int amii_numcolors; extern int amii_numcolors;
void FDECL(amii_setpens, (int)); void amii_setpens(int);
#endif #endif
/* for cmd.c: override version in micro.h */ /* for cmd.c: override version in micro.h */
+37 -37
View File
@@ -167,7 +167,7 @@ extern Boolean RetrievePosition(short, short *, short *);
extern Boolean RetrieveSize(short, short, short, short *, short *); extern Boolean RetrieveSize(short, short, short, short *, short *);
extern void SaveWindowPos(WindowPtr); extern void SaveWindowPos(WindowPtr);
extern void SaveWindowSize(WindowPtr); extern void SaveWindowSize(WindowPtr);
extern Boolean FDECL(RetrieveWinPos, (WindowPtr, short *, short *)); extern Boolean RetrieveWinPos(WindowPtr, short *, short *);
/* ### macerrs.c ### */ /* ### macerrs.c ### */
@@ -183,8 +183,8 @@ extern void popattempt(void);
/* ### macfile.c ### */ /* ### macfile.c ### */
/* extern char *macgets(int fd, char *ptr, unsigned len); unused */ /* extern char *macgets(int fd, char *ptr, unsigned len); unused */
extern void FDECL(C2P, (const char *c, unsigned char *p)); extern void C2P(const char *c, unsigned char *p);
extern void FDECL(P2C, (const unsigned char *p, char *c)); extern void P2C(const unsigned char *p, char *c);
/* ### macmenu.c ### */ /* ### macmenu.c ### */
@@ -196,51 +196,51 @@ extern void AdjustMenus(short);
/* ### macmain.c ### */ /* ### macmain.c ### */
extern void FDECL(process_openfile, extern void process_openfile(short s_vol, long s_dir, Str255 fNm,
(short s_vol, long s_dir, Str255 fNm, OSType ft)); OSType ft);
/* ### macwin.c ### */ /* ### macwin.c ### */
extern void AddToKeyQueue(unsigned char, Boolean); extern void AddToKeyQueue(unsigned char, Boolean);
extern unsigned char GetFromKeyQueue(void); extern unsigned char GetFromKeyQueue(void);
void trans_num_keys(EventRecord *); void trans_num_keys(EventRecord *);
extern void NDECL(InitMac); extern void InitMac(void);
int FDECL(try_key_queue, (char *)); int try_key_queue(char *);
void FDECL(enter_topl_mode, (char *)); void enter_topl_mode(char *);
void FDECL(leave_topl_mode, (char *)); void leave_topl_mode(char *);
void FDECL(topl_set_resp, (char *, char)); void topl_set_resp(char *, char);
Boolean FDECL(topl_key, (unsigned char, Boolean)); Boolean topl_key(unsigned char, Boolean);
E void FDECL(HandleEvent, (EventRecord *)); /* used in mmodal.c */ E void HandleEvent(EventRecord *); /* used in mmodal.c */
extern void NDECL(port_help); extern void port_help(void);
extern Boolean small_screen; extern Boolean small_screen;
E void FDECL(mac_init_nhwindows, (int *, char **)); E void mac_init_nhwindows(int *, char **);
E void NDECL(mac_askname); E void mac_askname(void);
E void NDECL(mac_get_nh_event); E void mac_get_nh_event(void);
E void FDECL(mac_exit_nhwindows, (const char *)); E void mac_exit_nhwindows(const char *);
E winid FDECL(mac_create_nhwindow, (int)); E winid mac_create_nhwindow(int);
E void FDECL(mac_clear_nhwindow, (winid)); E void mac_clear_nhwindow(winid);
E void FDECL(mac_display_nhwindow, (winid, BOOLEAN_P)); E void mac_display_nhwindow(winid, BOOLEAN_P);
E void FDECL(mac_destroy_nhwindow, (winid)); E void mac_destroy_nhwindow(winid);
E void FDECL(mac_curs, (winid, int, int)); E void mac_curs(winid, int, int);
E void FDECL(mac_putstr, (winid, int, const char *)); E void mac_putstr(winid, int, const char *);
E void FDECL(mac_start_menu, (winid, unsigned long mbehavior)); E void mac_start_menu(winid, unsigned long mbehavior);
E void FDECL(mac_add_menu, (winid, int, const anything *, CHAR_P, CHAR_P, int, E void mac_add_menu(winid, int, const anything *, CHAR_P, CHAR_P, int,
const char *, unsigned int)); const char *, unsigned int);
E void FDECL(mac_end_menu, (winid, const char *)); E void mac_end_menu(winid, const char *);
E int FDECL(mac_select_menu, (winid, int, menu_item **)); E int mac_select_menu(winid, int, menu_item **);
#ifdef CLIPPING #ifdef CLIPPING
E void FDECL(mac_cliparound, (int, int)); E void mac_cliparound(int, int);
#endif #endif
E int NDECL(mac_nhgetch); E int mac_nhgetch(void);
E int FDECL(mac_nh_poskey, (int *, int *, int *)); E int mac_nh_poskey(int *, int *, int *);
E int NDECL(mac_doprev_message); E int mac_doprev_message(void);
E char FDECL(mac_yn_function, (const char *, const char *, CHAR_P)); E char mac_yn_function(const char *, const char *, CHAR_P);
E void FDECL(mac_getlin, (const char *, char *)); E void mac_getlin(const char *, char *);
E int NDECL(mac_get_ext_cmd); E int mac_get_ext_cmd(void);
E void FDECL(mac_number_pad, (int)); E void mac_number_pad(int);
E void NDECL(mac_delay_output); E void mac_delay_output(void);
#undef E #undef E
+2 -2
View File
@@ -55,8 +55,8 @@
*/ */
#define STRNCMPI #define STRNCMPI
#undef strcmpi #undef strcmpi
extern int FDECL(strcmpi, (const char *, const char *)); extern int strcmpi(const char *, const char *);
extern int FDECL(strncmpi, (const char *, const char *, size_t)); extern int strncmpi(const char *, const char *, size_t);
#endif #endif
#include <termcap.h> #include <termcap.h>
+4 -4
View File
@@ -178,10 +178,10 @@ extern char hackdir[];
#define ABORT C('a') #define ABORT C('a')
#define getuid() 1 #define getuid() 1
#define getlogin() ((char *) 0) #define getlogin() ((char *) 0)
extern void NDECL(win32_abort); extern void win32_abort(void);
#ifdef WIN32CON #ifdef WIN32CON
extern void FDECL(nttty_preference_update, (const char *)); extern void nttty_preference_update(const char *);
extern void NDECL(toggle_mouse_support); extern void toggle_mouse_support(void);
#endif #endif
#ifndef alloca #ifndef alloca
@@ -214,7 +214,7 @@ extern void NDECL(toggle_mouse_support);
#define NH_A2W(a, w, cb) (strncpy((w), (a), (cb))) #define NH_A2W(a, w, cb) (strncpy((w), (a), (cb)))
#endif #endif
extern int FDECL(set_win32_option, (const char *, const char *)); extern int set_win32_option(const char *, const char *);
/* /*
* 3.4.3 addition - Stuff to help the user with some common, yet significant * 3.4.3 addition - Stuff to help the user with some common, yet significant
+21 -21
View File
@@ -3,40 +3,40 @@
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
/* amidos.c */ /* amidos.c */
void NDECL(flushout ); void flushout (void);
#ifndef getuid #ifndef getuid
int NDECL(getuid ); int getuid (void);
#endif #endif
#ifndef getpid #ifndef getpid
int NDECL(getpid ); int getpid (void);
#endif #endif
#ifndef getlogin #ifndef getlogin
char *NDECL(getlogin ); char *getlogin (void);
#endif #endif
#ifndef abs #ifndef abs
int FDECL(abs, (int )); int abs(int );
#endif #endif
int NDECL(tgetch ); int tgetch (void);
int NDECL(dosh ); int dosh (void);
long FDECL(freediskspace, (char *)); long freediskspace(char *);
long FDECL(filesize, (char *)); long filesize(char *);
void FDECL(eraseall, (const char * , const char *)); void eraseall(const char * , const char *);
char *FDECL(CopyFile, (const char * , const char *)); char *CopyFile(const char * , const char *);
void FDECL(copybones, (int )); void copybones(int );
void NDECL(playwoRAMdisk ); void playwoRAMdisk (void);
int FDECL(saveDiskPrompt, (int )); int saveDiskPrompt(int );
void NDECL(gameDiskPrompt ); void gameDiskPrompt (void);
void FDECL(append_slash, (char *)); void append_slash(char *);
void FDECL(getreturn, (const char *)); void getreturn(const char *);
#ifndef msmsg #ifndef msmsg
void FDECL(msmsg, ( const char *, ... )); void msmsg( const char *, ... );
#endif #endif
#if !defined(__SASC_60) && !defined(_DCC) #if !defined(__SASC_60) && !defined(_DCC)
int FDECL(chdir, (char *)); int chdir(char *);
#endif #endif
#ifndef strcmpi #ifndef strcmpi
int FDECL(strcmpi, (char * , char *)); int strcmpi(char * , char *);
#endif #endif
#if !defined(memcmp) && !defined(AZTEC_C) && !defined(_DCC) && !defined(__GNUC__) #if !defined(memcmp) && !defined(AZTEC_C) && !defined(_DCC) && !defined(__GNUC__)
int FDECL(memcmp, (unsigned char * , unsigned char * , int )); int memcmp(unsigned char * , unsigned char * , int );
#endif #endif
+2 -2
View File
@@ -20,8 +20,8 @@
#include <clib/dos_protos.h> #include <clib/dos_protos.h>
#endif #endif
void NDECL(tty_change_color); void tty_change_color(void);
char *NDECL(tty_get_color_string); char *tty_get_color_string(void);
#ifdef TTY_GRAPHICS #ifdef TTY_GRAPHICS
+2 -2
View File
@@ -19,7 +19,7 @@
#ifdef AMII_GRAPHICS /* too early in the file? too late? */ #ifdef AMII_GRAPHICS /* too early in the file? too late? */
#ifdef AMIFLUSH #ifdef AMIFLUSH
static struct Message *FDECL(GetFMsg, (struct MsgPort *)); static struct Message *GetFMsg(struct MsgPort *);
#endif #endif
static int BufferGetchar(void); static int BufferGetchar(void);
@@ -126,7 +126,7 @@ struct NewWindow *nw;
* Close a window that shared the HackPort IDCMP port. * Close a window that shared the HackPort IDCMP port.
*/ */
void FDECL(CloseShWindow, (struct Window *)); void CloseShWindow(struct Window *);
void void
CloseShWindow(win) CloseShWindow(win)
struct Window *win; struct Window *win;
+26 -26
View File
@@ -4,37 +4,37 @@
/* amiwind.c */ /* amiwind.c */
#ifdef INTUI_NEW_LOOK #ifdef INTUI_NEW_LOOK
struct Window *FDECL( OpenShWindow, (struct ExtNewWindow *) ); struct Window * OpenShWindow(struct ExtNewWindow *) ;
#else #else
struct Window *FDECL( OpenShWindow, (struct NewWindow *) ); struct Window * OpenShWindow(struct NewWindow *) ;
#endif #endif
void FDECL( CloseShWindow, (struct Window *)); void CloseShWindow(struct Window *);
int NDECL( kbhit ); int kbhit (void);
int NDECL( amikbhit ); int amikbhit (void);
int NDECL( WindowGetchar ); int WindowGetchar (void);
WETYPE NDECL( WindowGetevent ); WETYPE WindowGetevent (void);
void NDECL( WindowFlush ); void WindowFlush (void);
void FDECL( WindowPutchar, (char )); void WindowPutchar(char );
void FDECL( WindowFPuts, (const char *)); void WindowFPuts(const char *);
void FDECL( WindowPuts, (const char *)); void WindowPuts(const char *);
void FDECL( WindowPrintf, ( char *,... )); void WindowPrintf( char *,... );
void NDECL( CleanUp ); void CleanUp (void);
int FDECL( ConvertKey, ( struct IntuiMessage * )); int ConvertKey( struct IntuiMessage * );
#ifndef SHAREDLIB #ifndef SHAREDLIB
void FDECL( Abort, (long )); void Abort(long );
#endif #endif
void FDECL( flush_glyph_buffer, (struct Window *)); void flush_glyph_buffer(struct Window *);
void FDECL( amiga_print_glyph, (winid , int , int )); void amiga_print_glyph(winid , int , int );
void FDECL( start_glyphout, (winid )); void start_glyphout(winid );
void FDECL( amii_end_glyphout, (winid )); void amii_end_glyphout(winid );
#ifdef INTUI_NEW_LOOK #ifdef INTUI_NEW_LOOK
struct ExtNewWindow *FDECL( DupNewWindow, (struct ExtNewWindow *)); struct ExtNewWindow * DupNewWindow(struct ExtNewWindow *);
void FDECL( FreeNewWindow, (struct ExtNewWindow *)); void FreeNewWindow(struct ExtNewWindow *);
#else #else
struct NewWindow *FDECL( DupNewWindow, (struct NewWindow *)); struct NewWindow * DupNewWindow(struct NewWindow *);
void FDECL( FreeNewWindow, (struct NewWindow *)); void FreeNewWindow(struct NewWindow *);
#endif #endif
void NDECL( bell ); void bell (void);
void NDECL( amii_delay_output ); void amii_delay_output (void);
void FDECL( amii_number_pad, (int )); void amii_number_pad(int );
void amii_cleanup( void ); void amii_cleanup( void );
+1 -1
View File
@@ -21,7 +21,7 @@
#ifdef AMIGA_INTUITION #ifdef AMIGA_INTUITION
static int FDECL(put_ext_cmd, (char *, int, struct amii_WinDesc *, int)); static int put_ext_cmd(char *, int, struct amii_WinDesc *, int);
struct amii_DisplayDesc *amiIDisplay; /* the Amiga Intuition descriptor */ struct amii_DisplayDesc *amiIDisplay; /* the Amiga Intuition descriptor */
struct Rectangle lastinvent, lastmsg; struct Rectangle lastinvent, lastmsg;
+53 -53
View File
@@ -2,56 +2,56 @@
/* Copyright (c) Gregg Wonderly, Naperville, IL, 1992, 1993 */ /* Copyright (c) Gregg Wonderly, Naperville, IL, 1992, 1993 */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
/* winami.c */ /* winami.c */
void FDECL(amii_raw_print, (const char *)); void amii_raw_print(const char *);
void FDECL(amii_raw_print_bold, (const char *)); void amii_raw_print_bold(const char *);
void FDECL(amii_start_menu, (winid , unsigned long )); void amii_start_menu(winid , unsigned long );
void FDECL(amii_add_menu, (winid , char , int , const char *, unsigned int)); void amii_add_menu(winid , char , int , const char *, unsigned int);
void FDECL(amii_end_menu, (winid , char , const char * , const char *)); void amii_end_menu(winid , char , const char * , const char *);
char FDECL(amii_select_menu, (winid )); char amii_select_menu(winid );
void NDECL(amii_update_inventory ); void amii_update_inventory (void);
void NDECL(amii_mark_synch ); void amii_mark_synch (void);
void NDECL(amii_wait_synch ); void amii_wait_synch (void);
void NDECL(amii_setclipped ); void amii_setclipped (void);
void FDECL(amii_cliparound, (int , int )); void amii_cliparound(int , int );
void NDECL(amii_askname ); void amii_askname (void);
void NDECL(amii_player_selection ); void amii_player_selection (void);
void NDECL(flush_output ); void flush_output (void);
void FDECL(amii_destroy_nhwindow, (winid )); void amii_destroy_nhwindow(winid );
int FDECL(amii_create_nhwindow, (int )); int amii_create_nhwindow(int );
void NDECL(amii_init_nhwindows ); void amii_init_nhwindows (void);
int NDECL(amii_get_ext_cmd); int amii_get_ext_cmd(void);
char FDECL(amii_yn_function, (const char * , const char * , char )); char amii_yn_function(const char * , const char * , char );
void FDECL(amii_addtopl, (const char *)); void amii_addtopl(const char *);
void FDECL(TextSpaces, (struct RastPort * , int )); void TextSpaces(struct RastPort * , int );
void FDECL(amii_putstr, (winid , int , const char *)); void amii_putstr(winid , int , const char *);
void FDECL(amii_putsym, (winid , int , int , CHAR_P )); void amii_putsym(winid , int , int , CHAR_P );
void FDECL(amii_clear_nhwindow, (winid )); void amii_clear_nhwindow(winid );
void FDECL(amii_exit_nhwindows, (const char *)); void amii_exit_nhwindows(const char *);
int FDECL(amii_nh_poskey, (int * , int * , int *)); int amii_nh_poskey(int * , int * , int *);
int NDECL(amii_nhgetch ); int amii_nhgetch (void);
void NDECL(amii_get_nh_event ); void amii_get_nh_event (void);
void NDECL(amii_remember_topl ); void amii_remember_topl (void);
int NDECL(amii_doprev_message ); int amii_doprev_message (void);
void FDECL(amii_display_nhwindow, (winid , boolean )); void amii_display_nhwindow(winid , boolean );
void FDECL(amii_display_file, (const char * , boolean )); void amii_display_file(const char * , boolean );
void FDECL(amii_curs, (winid , int , int )); void amii_curs(winid , int , int );
void FDECL(amii_print_glyph, (winid , xchar , xchar , int, int )); void amii_print_glyph(winid , xchar , xchar , int, int );
void FDECL(DoMenuScroll, (int , int )); void DoMenuScroll(int , int );
void FDECL(DisplayData, (int , int , int )); void DisplayData(int , int , int );
void FDECL(SetPropInfo, (struct Window * , struct Gadget * , long , long , long )); void SetPropInfo(struct Window * , struct Gadget * , long , long , long );
void FDECL(kill_nhwindows, (int )); void kill_nhwindows(int );
void FDECL(amii_cl_end, (struct amii_WinDesc * , int )); void amii_cl_end(struct amii_WinDesc * , int );
void FDECL(cursor_off, (winid )); void cursor_off(winid );
void FDECL(cursor_on, (winid )); void cursor_on(winid );
void NDECL(amii_getret ); void amii_getret (void);
void FDECL(amii_getlin, (const char * , char *)); void amii_getlin(const char * , char *);
void FDECL(getlind, (const char * , char * , const char *)); void getlind(const char * , char * , const char *);
void FDECL(amii_suspend_nhwindows, (char * )); void amii_suspend_nhwindows(char * );
void NDECL(amii_resume_nhwindows); void amii_resume_nhwindows(void);
void NDECL(amii_bell); void amii_bell(void);
void NDECL(EditColor); void EditColor(void);
void FDECL(DrawCol, ( struct Window *, int, UWORD * ) ); void DrawCol( struct Window *, int, UWORD * ) ;
void FDECL( DispCol, ( struct Window *w, int idx, UWORD * ) ); void DispCol( struct Window *w, int idx, UWORD * ) ;
void FDECL( SetBorder, (struct Gadget *) ); void SetBorder(struct Gadget *) ;
void NDECL( port_help ); void port_help (void);
void FDECL( dismiss_nhwindow, (winid) ); void dismiss_nhwindow(winid) ;
+5 -5
View File
@@ -40,10 +40,10 @@ void amii_getret(void);
/* winmenu.c */ /* winmenu.c */
void amii_start_menu(winid window, unsigned long); void amii_start_menu(winid window, unsigned long);
void FDECL(amii_add_menu, (winid, int, const anything *, CHAR_P, CHAR_P, int, void amii_add_menu(winid, int, const anything *, CHAR_P, CHAR_P, int,
const char *, unsigned int)); const char *, unsigned int);
void FDECL(amii_end_menu, (winid, const char *)); void amii_end_menu(winid, const char *);
int FDECL(amii_select_menu, (winid, int, menu_item **)); int amii_select_menu(winid, int, menu_item **);
int DoMenuScroll(int win, int blocking, int how, menu_item **); int DoMenuScroll(int win, int blocking, int how, menu_item **);
void ReDisplayData(winid win); void ReDisplayData(winid win);
void DisplayData(winid win, int start); void DisplayData(winid win, int start);
@@ -142,7 +142,7 @@ void Abort(long rc);
#endif #endif
/* amirip.c */ /* amirip.c */
void FDECL(amii_outrip, (winid tmpwin, int how, time_t when)); void amii_outrip(winid tmpwin, int how, time_t when);
/* winchar.c */ /* winchar.c */
void SetMazeType(MazeType); void SetMazeType(MazeType);
+3 -3
View File
@@ -24,9 +24,9 @@ static char *nh_HE = "\033q";
#include <ctype.h> #include <ctype.h>
static char NDECL(DOSgetch); static char DOSgetch(void);
static char NDECL(BIOSgetch); static char BIOSgetch(void);
static void NDECL(init_aline); static void init_aline(void);
char *_a_line; /* for Line A variables */ char *_a_line; /* for Line A variables */
#ifdef TEXTCOLOR #ifdef TEXTCOLOR
boolean colors_changed = FALSE; boolean colors_changed = FALSE;
+5 -5
View File
@@ -41,11 +41,11 @@ typedef struct handlefile {
Handle data; /* The resource, purgeable */ Handle data; /* The resource, purgeable */
} HandleFile; } HandleFile;
static HandleFile *FDECL(IsHandleFile, (int)); static HandleFile *IsHandleFile(int);
static int FDECL(OpenHandleFile, (const unsigned char *, long)); static int OpenHandleFile(const unsigned char *, long);
static int FDECL(CloseHandleFile, (int)); static int CloseHandleFile(int);
static int FDECL(ReadHandleFile, (int, void *, unsigned)); static int ReadHandleFile(int, void *, unsigned);
static long FDECL(SetHandleFilePos, (int, short, long)); static long SetHandleFilePos(int, short, long);
HandleFile theHandleFiles[MAX_HF]; HandleFile theHandleFiles[MAX_HF];
MacDirs theDirs; /* also referenced in macwin.c */ MacDirs theDirs; /* also referenced in macwin.c */
+16 -16
View File
@@ -79,22 +79,22 @@ static pascal OSStatus GlobalEvent(EventHandlerCallRef, EventRef, void *);
#else #else
static void FDECL(GeneralKey, (EventRecord *, WindowPtr)); static void GeneralKey(EventRecord *, WindowPtr);
static void FDECL(macKeyMenu, (EventRecord *, WindowPtr)); static void macKeyMenu(EventRecord *, WindowPtr);
static void FDECL(macKeyText, (EventRecord *, WindowPtr)); static void macKeyText(EventRecord *, WindowPtr);
static void FDECL(macClickMessage, (EventRecord *, WindowPtr)); static void macClickMessage(EventRecord *, WindowPtr);
static void FDECL(macClickTerm, (EventRecord *, WindowPtr)); static void macClickTerm(EventRecord *, WindowPtr);
static void FDECL(macClickMenu, (EventRecord *, WindowPtr)); static void macClickMenu(EventRecord *, WindowPtr);
static void FDECL(macClickText, (EventRecord *, WindowPtr)); static void macClickText(EventRecord *, WindowPtr);
static short FDECL(macDoNull, (EventRecord *, WindowPtr)); static short macDoNull(EventRecord *, WindowPtr);
static short FDECL(macUpdateMessage, (EventRecord *, WindowPtr)); static short macUpdateMessage(EventRecord *, WindowPtr);
static short FDECL(macUpdateMenu, (EventRecord *, WindowPtr)); static short macUpdateMenu(EventRecord *, WindowPtr);
static short FDECL(GeneralUpdate, (EventRecord *, WindowPtr)); static short GeneralUpdate(EventRecord *, WindowPtr);
static void FDECL(macCursorTerm, (EventRecord *, WindowPtr, RgnHandle)); static void macCursorTerm(EventRecord *, WindowPtr, RgnHandle);
static void FDECL(GeneralCursor, (EventRecord *, WindowPtr, RgnHandle)); static void GeneralCursor(EventRecord *, WindowPtr, RgnHandle);
#endif #endif
static void TextUpdate(NhWindow *wind); static void TextUpdate(NhWindow *wind);
@@ -215,12 +215,12 @@ Boolean small_screen = 0;
#endif #endif
#define NHW_BASE 0 #define NHW_BASE 0
static int FDECL(filter_scroll_key, (const int, NhWindow *)); static int filter_scroll_key(const int, NhWindow *);
#if 1 //!TARGET_API_MAC_CARBON #if 1 //!TARGET_API_MAC_CARBON
static void FDECL(DoScrollBar, (Point, short, ControlHandle, NhWindow *)); static void DoScrollBar(Point, short, ControlHandle, NhWindow *);
#endif #endif
static pascal void FDECL(MoveScrollBar, (ControlHandle, short)); static pascal void MoveScrollBar(ControlHandle, short);
#if 1 //!TARGET_API_MAC_CARBON #if 1 //!TARGET_API_MAC_CARBON
typedef void (*CbFunc)(EventRecord *, WindowPtr); typedef void (*CbFunc)(EventRecord *, WindowPtr);
+2 -2
View File
@@ -9,9 +9,9 @@
#include "macpopup.h" #include "macpopup.h"
#include "func_tab.h" #include "func_tab.h"
extern int NDECL(extcmd_via_menu); /* cmd.c */ extern int extcmd_via_menu(void); /* cmd.c */
typedef Boolean FDECL((*key_func), (unsigned char)); typedef Boolean (*key_func)(unsigned char);
int int
get_line_from_key_queue(char *bufp) get_line_from_key_queue(char *bufp)
+1 -1
View File
@@ -66,7 +66,7 @@ signed long tmpbuffer;
int emsstatus; int emsstatus;
int xmsstatus; int xmsstatus;
void NDECL(_resizeOvrBuffer); void _resizeOvrBuffer(void);
void void
_resizeOvrBuffer() _resizeOvrBuffer()
+2 -2
View File
@@ -30,8 +30,8 @@
#include <ctype.h> #include <ctype.h>
static char NDECL(DOSgetch); static char DOSgetch(void);
static char NDECL(BIOSgetch); static char BIOSgetch(void);
int int
tgetch() tgetch()
+2 -2
View File
@@ -11,7 +11,7 @@
extern char orgdir[PATHLEN]; /* also used in pcsys.c, amidos.c */ extern char orgdir[PATHLEN]; /* also used in pcsys.c, amidos.c */
extern void FDECL(nethack_exit, (int)); extern void nethack_exit(int);
static TCHAR *_get_cmd_arg(TCHAR *pCmdLine); static TCHAR *_get_cmd_arg(TCHAR *pCmdLine);
// Global Variables: // Global Variables:
@@ -24,7 +24,7 @@ static void win_hack_init(int, char **);
static void __cdecl mswin_moveloop(void *); static void __cdecl mswin_moveloop(void *);
static BOOL setMapTiles(const char *fname); static BOOL setMapTiles(const char *fname);
extern boolean FDECL(pcmain, (int, char **)); extern boolean pcmain(int, char **);
#define MAX_CMDLINE_PARAM 255 #define MAX_CMDLINE_PARAM 255
+1 -1
View File
@@ -7,7 +7,7 @@
#define MAX_CMDLINE_PARAM 255 #define MAX_CMDLINE_PARAM 255
extern int FDECL(main, (int, char **)); extern int main(int, char **);
static TCHAR *_get_cmd_arg(TCHAR *pCmdLine); static TCHAR *_get_cmd_arg(TCHAR *pCmdLine);
int APIENTRY int APIENTRY
+1 -1
View File
@@ -26,7 +26,7 @@ tileedit: tileedit.cpp $(TEXT_IO)
extern "C" { extern "C" {
#include "config.h" #include "config.h"
#include "tile.h" #include "tile.h"
extern const char *FDECL(tilename, (int, int)); extern const char *tilename(int, int);
} }
#define TILES_ACROSS 20 #define TILES_ACROSS 20
+2 -2
View File
@@ -18,8 +18,8 @@
/* #define COLORS_IN_USE MAXCOLORMAPSIZE /* 256 colors */ /* #define COLORS_IN_USE MAXCOLORMAPSIZE /* 256 colors */
#define COLORS_IN_USE 16 /* 16 colors */ #define COLORS_IN_USE 16 /* 16 colors */
extern char *FDECL(tilename, (int, int)); extern char *tilename(int, int);
static void FDECL(build_ximgtile, (pixel(*) [TILE_X])); static void build_ximgtile(pixel(*) [TILE_X]);
void get_color(unsigned int colind, struct RGB *rgb); void get_color(unsigned int colind, struct RGB *rgb);
void get_pixel(int x, int y, unsigned int *colind); void get_pixel(int x, int y, unsigned int *colind);
+2 -2
View File
@@ -18,8 +18,8 @@
static char nullstr[] = "", winpanicstr[] = "Bad window id %d"; static char nullstr[] = "", winpanicstr[] = "Bad window id %d";
static int curr_status_line; static int curr_status_line;
static char *FDECL(copy_of, (const char *)); static char *copy_of(const char *);
static void FDECL(bail, (const char *)); /* __attribute__((noreturn)) */ static void bail(const char *); /* __attribute__((noreturn)) */
extern int mar_set_tile_mode(int); extern int mar_set_tile_mode(int);
extern void mar_set_font(int, const char *, int); extern void mar_set_font(int, const char *, int);