From: David Griffith Date: Thu, 25 May 2023 20:05:13 +0000 (-0700) Subject: Added function name comment to end of each function in src/dos/. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=2b5d8e4aedb00090107299932e8d35d654730cc8;p=liskon_frotz.git Added function name comment to end of each function in src/dos/. --- diff --git a/src/dos/dosblorb.c b/src/dos/dosblorb.c index dd99b19..177aa02 100644 --- a/src/dos/dosblorb.c +++ b/src/dos/dosblorb.c @@ -121,7 +121,7 @@ bb_err_t dos_blorb_init(char *filename) } return blorb_err; -} +} /* dos_blorb_init */ /* @@ -148,6 +148,6 @@ static int isblorb(FILE *fp) return 0; return 1; -} +} /* isblorb */ #endif /* NO_BLORB */ diff --git a/src/dos/dosinit.c b/src/dos/dosinit.c index d7ea44d..2621390 100644 --- a/src/dos/dosinit.c +++ b/src/dos/dosinit.c @@ -103,7 +103,7 @@ static bool test_enhanced_keyboard(unsigned char b) regs.h.ah = 0x12; int86(0x16, ®s, ®s); return b == regs.h.al; -} +} /* test_enhanced_keyboard */ /* @@ -237,7 +237,7 @@ void os_quit(int status) { cleanup(); exit(status); -} +} /* os_quit */ static void print_c_string (const char *s) @@ -409,7 +409,7 @@ static char *malloc_filename(char *story_name, char *extension) strcat(filename, extension); } return filename; -} +} /* malloc_filename */ /* @@ -1006,7 +1006,7 @@ FILE *os_load_story(void) #else return fopen(f_setup.story_file, "rb"); #endif -} +} /* os_load_story */ /* @@ -1034,7 +1034,7 @@ int os_storyfile_seek(FILE * fp, long offset, int whence) } #endif return fseek(fp, offset, whence); -} +} /* os_storyfile_seek */ /* @@ -1049,4 +1049,4 @@ int os_storyfile_tell(FILE * fp) return ftell(fp) - blorb_res.data.startpos; #endif return ftell(fp); -} +} /* os_storyfile_tell */ diff --git a/src/dos/dosinput.c b/src/dos/dosinput.c index e9a10e8..c0148bb 100644 --- a/src/dos/dosinput.c +++ b/src/dos/dosinput.c @@ -992,4 +992,4 @@ finished: void os_tick(void) { /* do nothing */ -} +} /* os_tick */ diff --git a/src/dos/dossampl.c b/src/dos/dossampl.c index a539fc2..46b1af7 100644 --- a/src/dos/dossampl.c +++ b/src/dos/dossampl.c @@ -240,10 +240,8 @@ void dos_reset_sound(void) * somehow work around the ifs. * */ -void os_init_sound(void) -{ - /* do nothing */ -} +void os_init_sound(void) { /* do nothing */ } + /* * os_prepare_sample diff --git a/src/dos/dosscrn.c b/src/dos/dosscrn.c index 3381ed7..2a801eb 100644 --- a/src/dos/dosscrn.c +++ b/src/dos/dosscrn.c @@ -317,4 +317,4 @@ bool os_repaint_window(int win, int ypos_old, int ypos_new, int xpos, int ysize, int xsize) { return FALSE; -} +} /* os_repaint_window */ diff --git a/src/dos/dostext.c b/src/dos/dostext.c index ca93545..077fc86 100644 --- a/src/dos/dostext.c +++ b/src/dos/dostext.c @@ -133,7 +133,7 @@ static int available_bios(void) return (_AX); #endif -} +} /* available_bios */ /* @@ -161,7 +161,8 @@ static void set_user_tfont(word offset, byte height) int 10h pop bp } -} +} /* set_user */ + /* * set_user_gfont @@ -186,7 +187,7 @@ static void set_user_gfont(word offset, word height) int 10h pop bp } -} +} /* set_user_gfont */ /* @@ -205,7 +206,7 @@ static void read_font(word offset, size_t nmemb) fread(font_data+offset, 1, nmemb, fp); fclose(fp); } -} +} /* read_font */ /* @@ -1001,7 +1002,7 @@ int os_from_true_colour(zword colour) } #endif return 0; -} +} /* os_from_true_colour */ /* @@ -1034,4 +1035,4 @@ zword os_to_true_colour(int index) #else return 0; #endif -} +} /* os_to_true_colour */