Added function name comment to end of each function in src/dos/.
authorDavid Griffith <dave@661.org>
Thu, 25 May 2023 20:05:13 +0000 (13:05 -0700)
committerDavid Griffith <dave@661.org>
Thu, 25 May 2023 20:05:13 +0000 (13:05 -0700)
src/dos/dosblorb.c
src/dos/dosinit.c
src/dos/dosinput.c
src/dos/dossampl.c
src/dos/dosscrn.c
src/dos/dostext.c

index dd99b19dcccbe8e4fcf9fa13fb8a8ebec4ccf8a2..177aa0237464fad5ac4cc543b00f94a2b3fbb175 100644 (file)
@@ -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 */
index d7ea44d8661dcc95df6d091342ae063e691f9f9f..26213904ea954e26dcd286cb949d0400fd0b8cd6 100644 (file)
@@ -103,7 +103,7 @@ static bool test_enhanced_keyboard(unsigned char b)
        regs.h.ah = 0x12;
        int86(0x16, &regs, &regs);
        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 */
index e9a10e8703173770cab98bc5f449deb367fe8a64..c0148bb3775f10aa73130838dfee4bfb471a4cb6 100644 (file)
@@ -992,4 +992,4 @@ finished:
 void os_tick(void)
 {
        /* do nothing */
-}
+} /* os_tick */
index a539fc27093e8e0635c042bf0985b69d8daa381a..46b1af7efbf46d2e7e62141baee8fe34325927d9 100644 (file)
@@ -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
index 3381ed76b6cc091d6eb494424d608fa3b41f4557..2a801ebb4c298c4461d2433a4a3b342dc0b6f0cd 100644 (file)
@@ -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 */
index ca93545e0b51abe916f318471947fa1c3be266fe..077fc86ac4043c039cfb42eb5e57f8ec4d6460fd 100644 (file)
@@ -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 */