zbyte bitmap[16];
} myglyph = {8,8,8,0,-2};
-static void nodestroy(SFONT *s){}
-static int myheight(SFONT *s){ return 8;}
-static int myascent(SFONT *s){ return 6;}
-static int mydescent(SFONT *s){ return 2;}
-static int myminchar(SFONT *s){ return 32;}
-static int mymaxchar(SFONT *s){ return 126;}
-static int myhasglyph(SFONT *s, zword c, int allowdef)
+static void nodestroy(SFONT * UNUSED (s)){}
+static int myheight(SFONT * UNUSED (s)){ return 8;}
+static int myascent(SFONT * UNUSED (s)){ return 6;}
+static int mydescent(SFONT * UNUSED (s)){ return 2;}
+static int myminchar(SFONT * UNUSED (s)){ return 32;}
+static int mymaxchar(SFONT * UNUSED (s)){ return 126;}
+static int myhasglyph(SFONT * UNUSED (s), zword c, int allowdef)
{
return (c >= 32 && c <= 126) || allowdef;
}
-static SF_glyph * mygetglyph(SFONT *s, zword c, int allowdef)
+static SF_glyph * mygetglyph(SFONT * UNUSED (s), zword c, int allowdef)
{
zbyte *src;
if (c < 32 || c > 126) {
SFONT * SF_font3 = &myfont3;
-static int myheight2(SFONT *s){ return 16;}
-static int myascent2(SFONT *s){ return 14;}
-static int mydescent2(SFONT *s){ return 2;}
-static SF_glyph * mygetglyph2(SFONT *s, zword c, int allowdef)
+static int myheight2(SFONT * UNUSED (s)){ return 16;}
+static int myascent2(SFONT * UNUSED (s)){ return 14;}
+static int mydescent2(SFONT * UNUSED (s)){ return 2;}
+static SF_glyph * mygetglyph2(SFONT * UNUSED (s), zword c, int allowdef)
{
zbyte *src, *dst; int i;
if (c < 32 || c > 126) {
*
*
*/
-int os_check_unicode(int font, zchar c)
+int os_check_unicode(int UNUSED (font), zchar c)
{
return ((current.font->hasglyph(current.font, c, 0) != 0) ? 3 : 2);
}
* Return non-zero if the window should have text wrapped.
*
*/
-int os_wrap_window(int win)
+int os_wrap_window(int UNUSED (win))
{
return 1;
}
* Called when the height of a window is changed.
*
*/
-void os_window_height(int win, int height)
+void os_window_height(int UNUSED (win), int UNUSED (height))
{
+ /* Not implemented */
}
} /* readPNGData */
-static int loadpng(zbyte * data, int length, sf_picture * graphic)
+static int loadpng(zbyte * data, int UNUSED (length), sf_picture * graphic)
{
png_bytep *rowPointers = NULL;
png_structp png_ptr = NULL;
free(rowPointers);
return 1;
-} /* loadpng * /
+} /* loadpng */
/****************************************************************************
/* Memory Data Source */
-static void memJPEGInit(j_decompress_ptr unused)
+static void memJPEGInit(j_decompress_ptr UNUSED (unused))
{
/* Nothing here */
} /* memJPEGInit */
-static int memJPEGFillInput(j_decompress_ptr unused)
+static int memJPEGFillInput(j_decompress_ptr UNUSED (unused))
{
return 0;
} /* memJPEGFillInput */
} /* memJPEGSkipInput */
-static void memJPEGTerm(j_decompress_ptr unused)
+static void memJPEGTerm(j_decompress_ptr UNUSED (unused))
{
/* Nothing here */
} /* memJPEGTerm */
****************************************************************************
*/
-static int loadrect(zbyte * data, int length, sf_picture * graphic)
+static int loadrect(zbyte * data, int UNUSED (length), sf_picture * graphic)
{
graphic->width =
(data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3];
} /* checkmouse */
-STATIC zword Zup(int x, int y)
+STATIC zword Zup(int UNUSED (x), int UNUSED (y))
{
goup();
return 0;
} /* Zup */
-STATIC zword Zok(int x, int y)
+STATIC zword Zok(int UNUSED (x), int UNUSED (y))
{
return ZC_RETURN;
} /* Zok */
-STATIC zword Zcanc(int x, int y)
+STATIC zword Zcanc(int UNUSED (x), int UNUSED (y))
{
return ZC_ESCAPE;
} /* Zcanc */
/* simplified fnmatch - only allows a single * at beginning */
-STATIC int myfnmatch(const char *pattern, const char *p, int dummy)
+STATIC int myfnmatch(const char *pattern, const char *p, int UNUSED (dummy))
{
int lpat, lp;
if (!pattern)
* MENU_REMOVE - Remove the menu at the given index
*
*/
-void os_menu(int action, int menu, const zword * text)
+void os_menu(int UNUSED (action), int UNUSED (menu), const zword * UNUSED (text))
{
/* switch (action)
{
return NULL;
} /* getsigname */
-static void bt_sighandler(int sig, siginfo_t * info, void *secret)
+static void bt_sighandler(int sig, siginfo_t * info, void * UNUSED (secret))
{
void *trace[16];
} /* startmodule */
-static EFFECT *getaiff(FILE * f, size_t pos, int len, int num)
+static EFFECT *getaiff(FILE * f, size_t pos, int UNUSED (len), int num)
{
EFFECT *res = NULL;
} /* getaiff */
-static EFFECT *getmodule(FILE * f, size_t pos, int len, int num)
+static EFFECT *getmodule(FILE * f, size_t pos, int UNUSED (len), int num)
{
EFFECT *res;
zbyte h[2];
* or low-pitched (number == 2).
*
*/
-void os_beep(int number)
+void os_beep(int UNUSED (number))
{
if (m_no_sound)
return;
* Load the given sample from the disk.
*
*/
-void os_prepare_sample(int number)
+void os_prepare_sample(int UNUSED (number))
{
if (!SFaudiorunning)
return;
static char buf[FILENAME_MAX];
-static const char *getnumbername(const char *def, char *ext)
+static const char *getnumbername(const char * UNUSED(def), char *ext)
{
int len, number = 0;
strcpy(buf, f_setup.story_name);
} /* getnumbername */
-static const char *getdatename(const char *def, char *ext)
+static const char *getdatename(const char * UNUSED (def), char *ext)
{
int len;
#define pshort( b) (((int)((b)[1]) << 8) + (int)((b)[0]))
-static unsigned myin(void *d, zbyte ** b)
+static unsigned myin(void * UNUSED (d), zbyte ** UNUSED (b))
{
return 0;
} /* myin */
* being erased.
*
*/
-void os_erase_area(int top, int left, int bottom, int right, int win)
+void os_erase_area(int top, int left, int bottom, int right, int UNUSED (win))
{
sf_flushtext();
sf_fillrect((sf_curtextsetting())->back, left - 1, top - 1,
} /* os_scroll_area */
-bool os_repaint_window(int win, int ypos_old, int ypos_new, int xpos,
- int ysize, int xsize)
+bool os_repaint_window(int UNUSED (win), int UNUSED (ypos_old),
+ int UNUSED (ypos_new), int UNUSED (xpos),
+ int UNUSED (ysize), int UNUSED (xsize))
{
/* TODO */
return FALSE;
static SDL_TimerID timerid = 0;
static Uint32 refreshEventType = 0;
-static Uint32 SDLCALL mytimer(Uint32 inter, void *parm)
+static Uint32 SDLCALL mytimer(Uint32 inter, void * UNUSED (parm))
{
SDL_AtomicSet(&SFticked, 1);
SDL_Event event = {0};