while (1)
{
fd_set tmp_fdset;
- struct timeval tmp_tv;
int result;
tmp_fdset = fdset;
- tmp_tv = tv;
/* ¥½¥±¥Ã¥È¤Ë¥Ç¡¼¥¿¤ò½ñ¤¹þ¤á¤ë¤«¤É¤¦¤«Ä´¤Ù¤ë */
select(sd+1, (fd_set *)NULL, &tmp_fdset, (fd_set *)NULL, &tv);
}
sig_int_saved = signal(SIGINT, interrupt_report);
sig_alm_saved = signal(SIGALRM, interrupt_report);
-
+
/* ¥¿¥¤¥à¥¢¥¦¥È¤Î»þ´Ö¤òÀßÄê */
setitimer(ITIMER_REAL, &val, NULL);
+#else
+ /* Unused in Windows */
+ (void)timeout;
#endif
/* ¥×¥í¥¥·¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¥×¥í¥¥·¤Ë·Ò¤° */
/* Forget the old font (if needed) */
if (td->font_id) DeleteObject(td->font_id);
-#ifndef JP
+#ifdef JP
+ /* Unused */
+ (void)path;
+
+ /* Create the font (using the 'base' of the font file name!) */
+ td->font_id = CreateFontIndirect(&(td->lf));
+ wid = td->lf.lfWidth;
+ hgt = td->lf.lfHeight;
+ if (!td->font_id) return (1);
+#else
/* Forget old font */
if (td->font_file)
{
td->font_file = NULL;
}
-
/* No path given */
if (!path) return (1);
-
/* Local copy */
strcpy(buf, path);
/* Remove the "suffix" */
base[strlen(base)-4] = '\0';
-#endif
/* Create the font (using the 'base' of the font file name!) */
-#ifdef JP
- td->font_id = CreateFontIndirect(&(td->lf));
- wid = td->lf.lfWidth;
- hgt = td->lf.lfHeight;
- if (!td->font_id) return (1);
-#else
td->font_id = CreateFont(hgt, wid, 0, 0, FW_DONTCARE, 0, 0, 0,
ANSI_CHARSET, OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
FIXED_PITCH | FF_DONTCARE, base);
#endif
-
/* Hack -- Unknown size */
if (!wid || !hgt)
{
*/
static errr Term_user_win(int n)
{
+ /* Unused */
+ (void)n;
+
/* Success */
return (0);
}
HDC hdc;
MSG msg;
+ /* Unused */
+ (void)nCmdShow;
+
/* Save globally */
hInstance = hInst;