/**
* Reset the view to the end of history.
*/
-void gen_history_reset()
+void gen_history_reset(void)
{
history_view = history_next;
} /* gen_history_reset */
}
-static void cleanfonts()
+static void cleanfonts(void)
{
int i;
for (i = 0; i < 8; i++)
}
-SF_textsetting *sf_curtextsetting()
+SF_textsetting *sf_curtextsetting(void)
{
return ¤t;
}
-void sf_pushtextsettings()
+void sf_pushtextsettings(void)
{
if (tsstackptr < MAXSTACK) {
tsstack[tsstackptr] = current;
}
-void sf_poptextsettings()
+void sf_poptextsettings(void)
{
if (tsstackptr) {
tsstackptr--;
/* ensure a font loaded */
-void sf_initfonts()
+void sf_initfonts(void)
{
int i, j, size = 0;
zbyte *cfont, *bmp;
/* get pointer from cache */
sf_picture *sf_getpic(int num);
-void sf_flushtext();
+void sf_flushtext(void);
/* glyph */
typedef struct {
double sf_GetProfileDouble(const char *sect, const char *id, double def);
char *sf_GetProfileString(const char *sect, const char *id, char *def);
-void sf_readsettings();
+void sf_readsettings(void);
zlong sf_GetColour(int colour);
zlong sf_GetDefaultColour(bool fore);
static int inited = 0, initerr = 0;
static FT_Library library;
-static void libfinish()
+static void libfinish(void)
{
if (!inited)
return;
} /* libfinish */
-static void libinit()
+static void libinit(void)
{
if (initerr)
return;
/****************************************/
-void sf_initloader()
+void sf_initloader(void)
{
ttfontloader = sf_loadftype;
} /* sf_initloader */
static sf_picture cached[MAXCACHE];
static int cacheinited = 0;
-static void cacheflush()
+static void cacheflush(void)
{
int i;
if (!cacheinited)
} /* cacheflush */
-static void cacheinit()
+static void cacheinit(void)
{
int i;
if (cacheinited)
#define HTEXT 18
STATIC void cleanlist(ENTRY * t);
-STATIC void drawlist();
+STATIC void drawlist(void);
STATIC ENTRY *dodir(char *dirname, char *pattern, char *resdir, int size,
int *ndirs, int *ntot);
static int Numdirs, Numtot, First;
static ENTRY *curdir = NULL, *selected;
-STATIC void updatelist()
+STATIC void updatelist(void)
{
if (curdir)
cleanlist(curdir);
drawlist();
} /* updatelist */
-STATIC void goright();
-STATIC void goleft();
+STATIC void goright(void);
+STATIC void goleft(void);
/* assumes a / at end */
-STATIC void goup()
+STATIC void goup(void)
{
char *p;
if (strlen(lastdir) < 2)
} /* drawnames */
-STATIC void drawlist()
+STATIC void drawlist(void)
{
BAREA *a = bareas + A_list, *b = bareas + A_dir;
} /* drawlist */
-STATIC void goright()
+STATIC void goright(void)
{
if (First + Nrows * Ncols > Numtot)
return;
} /* goright */
-STATIC void goleft()
+STATIC void goleft(void)
{
if (!First)
return;
bb_resolution_t *reso;
-static void checkwidths()
+static void checkwidths(void)
{
reso = bb_get_resolution(blorb_map);
if (reso) {
return fp;
}
return NULL; /* give up */
-} /* os_path_open() */
+} /* os_path_open */
/*
#define DEFAULT_GAMMA 2.2
double m_gamma = DEFAULT_GAMMA;
-void sf_initcolours()
+void sf_initcolours(void)
{
int i;
/* If true, running one of Infocom's V6 games */
-bool sf_IsInfocomV6()
+bool sf_IsInfocomV6(void)
{
switch (story_id) {
case ARTHUR:
} /* cleanLLENTRY */
-static void cleanlocallist()
+static void cleanlocallist(void)
{
cleanLLENTRY(Lpics);
Lpics = NULL;
#ifdef WIN32
-static void resethandlers()
+static void resethandlers(void)
{
signal(SIGINT, SIG_DFL);
signal(SIGFPE, SIG_DFL);
} /* myhandler */
-void sf_installhandlers()
+void sf_installhandlers(void)
{
signal(SIGINT, myhandler);
signal(SIGFPE, myhandler);
} /* bt_sighandler */
-void sf_installhandlers()
+void sf_installhandlers(void)
{
/* Install our signal handler */
static Uint16 audio_format;
static int bits;
-static void finishaudio()
+static void finishaudio(void)
{
if (!SFaudiorunning)
return;
* whether sound is desired and has no means for indicating whether sound is
* available. See sf_initsound for the real init.
*/
-void os_init_sound()
+void os_init_sound(void)
{
} /* os_init_sound */
-int sf_initsound()
+int sf_initsound(void)
{
if (SFaudiorunning)
return 1;
} /* channel_finished */
-static void stopsample()
+static void stopsample(void)
{
if (!e_sfx)
return;
} /* stopsample */
-static void stopmodule()
+static void stopmodule(void)
{
if (!e_mod)
return;
} /* stopmodule */
-static void startsample()
+static void startsample(void)
{
if (!e_sfx)
return;
} /* startsample */
-static void startmodule()
+static void startmodule(void)
{
if (!e_mod)
return;
} /* os_stop_sample */
-void sf_checksound()
+void sf_checksound(void)
{
if ((e_sfx) && (e_sfx->ended)) {
e_sfx->ended = 0;
} /* sf_regcleanfunc */
-void sf_cleanup_all()
+void sf_cleanup_all(void)
{
while (cflist) {
cfrec *n = cflist->next;
static char *rc = NULL;
-void sf_FinishProfile()
+void sf_FinishProfile(void)
{
if (!rc)
return;
extern bool sdl_active;
-static void sf_quitconf();
+static void sf_quitconf(void);
static bool ApplyPalette(sf_picture *);
static zlong screen_palette[16];
} /* mywcslen */
-static void myGrefresh()
+static void myGrefresh(void)
{
SDL_RenderClear(renderer);
SDL_RenderCopy(renderer, texture, NULL, NULL);
} /* sf_rect */
-void sf_flushtext()
+void sf_flushtext(void)
{
SF_textsetting *ts = sf_curtextsetting();
ts->cx += ts->oh;
* Update the display if contents have changed.
* Return whether contents had changed, i.e., display was updated.
*/
-bool sf_flushdisplay()
+bool sf_flushdisplay(void)
{
if (dirty) {
SDL_UpdateTexture(texture, NULL, sbuffer,
} /* mytimer */
-static void cleanvideo()
+static void cleanvideo(void)
{
if (timerid)
SDL_RemoveTimer(timerid);
#define GM 0x00ff00
#define BM 0xff0000
-static void sf_toggle_fullscreen()
+static void sf_toggle_fullscreen(void)
{
if (SDL_SetWindowFullscreen
(window, isfullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP))
extern zword sf_yesnooverlay(int xc, int yc, char *t, int sr);
-static void sf_quitconf()
+static void sf_quitconf(void)
{
if (sf_yesnooverlay(ewidth / 2, eheight / 2, "Quit: are you sure?", 1)
== ZC_RETURN) {
} /* sf_quitconf */
-void os_tick()
+void os_tick(void)
{
sf_checksound();
if (SDL_AtomicSet(&SFticked, 0)) {