Adjusted blank lines in DOS interface code.
authorDavid Griffith <dave@661.org>
Thu, 25 May 2023 07:23:20 +0000 (00:23 -0700)
committerDavid Griffith <dave@661.org>
Thu, 25 May 2023 07:23:20 +0000 (00:23 -0700)
src/dos/dosinit.c
src/dos/dosinput.c
src/dos/dosmouse.c
src/dos/dospic.c
src/dos/dossampl.c
src/dos/dostext.c

index 7533097a0025515c34ed759a424e4cd7d0e591c9..1b38ffcdd1839e44628f322373c8128ea8a32650 100644 (file)
@@ -105,6 +105,7 @@ static bool test_enhanced_keyboard(unsigned char b)
        return b == regs.h.al;
 }
 
+
 /*
  * os_init_setup
  *
@@ -276,6 +277,7 @@ void os_warn (const char *s, ...)
        return;
 } /* os_warn */
 
+
 /*
  * os_fatal
  *
@@ -397,6 +399,7 @@ static void parse_options(int argc, char **argv)
 
 } /* parse_options */
 
+
 static char *malloc_filename(char *story_name, char *extension)
 {
        int length = strlen(story_name) + strlen(extension) + 2;
@@ -408,6 +411,7 @@ static char *malloc_filename(char *story_name, char *extension)
        return filename;
 }
 
+
 /*
  * os_process_arguments
  *
index 17c7fd0f350f10e2e94559788cce9a77a6979924..e9a10e8703173770cab98bc5f449deb367fe8a64 100644 (file)
@@ -65,6 +65,7 @@ static bool overwrite = FALSE;
 
 volatile int end_of_sound_flag;
 
+
 /*
  * swap_colours
  *
@@ -482,9 +483,9 @@ static void input_move(zchar newc, zchar oldc)
        if (newc != 0)
                cursor_right();
 } /* input_move */
-
 #undef H
 
+
 /*
  * delete_char
  *
@@ -745,7 +746,6 @@ no_further:
  * to implement word completion (similar to tcsh under Unix).
  *
  */
-
 #define new_history_search() \
     { history.prefix_len = input.pos; history.current = history.latest; }
 
@@ -834,6 +834,7 @@ zchar os_read_line(int max, zchar *buf, int timeout, int width, int continued)
 #undef new_history_search()
 #endif
 
+
 /*
  * os_read_key
  *
@@ -875,7 +876,6 @@ zchar os_read_key(int timeout, bool cursor)
  * print_string and read_string to ask for a file name.
  *
  */
-
 char *os_read_file_name (const char *default_name, int flag)
 {
        char *extension;
index 35c23186a246b65685b86a11c38fac6c6e3e5459..317890ae2b9bc6cbd32d71d1390622c97d9fd425 100644 (file)
@@ -23,6 +23,7 @@
 #include "frotz.h"
 #include "dosfrotz.h"
 
+
 /*
  * detect_mouse
  *
@@ -38,7 +39,6 @@ bool detect_mouse(void)
        asm int 0x33
        return _AX;
 #endif
-
 } /* detect_mouse */
 
 
@@ -86,7 +86,6 @@ int read_mouse(void)
                mouse_x = _CX;
                mouse_y = _DX;
 #endif
-
                if (display <= _TEXT_) {
                        mouse_x /= 8;
                        mouse_y /= 8;
@@ -98,7 +97,6 @@ int read_mouse(void)
                mouse_x++;
                mouse_y++;
        }
-
        /* Return single or double click */
        return click;
 } /* read_mouse */
index d1707f42e9368918cf8be649eb042af37123c89f..056865125f45a97beeb36edb4ed0abf759163392 100644 (file)
@@ -85,6 +85,7 @@ static byte _huge *info = NULL;
 static byte far *info = NULL;
 #endif
 
+
 /*
  * open_graphics_file
  *
@@ -772,7 +773,6 @@ int os_peek_colour(void)
  * pictures and the release number instead.
  *
  */
-
 bool os_picture_data(int picture, int *height, int *width)
 {
        bool avail;
index d2ce5d28ff61f0cb577f5eed10b180313c26aeb7..a539fc27093e8e0635c042bf0985b69d8daa381a 100644 (file)
@@ -64,6 +64,7 @@ static long sample_adr2 = 0;
 static word sample_len1 = 0;
 static word sample_len2 = 0;
 
+
 /*
  * start_of_dma
  *
@@ -228,6 +229,7 @@ void dos_reset_sound(void)
 
 } /* dos_reset_sound */
 
+
 /*
  * os_init_sound
  *
@@ -391,6 +393,7 @@ void os_finish_with_sample(int UNUSED(id))
        os_stop_sample(0);      /* we keep 64KB allocated all the time */
 } /* os_finish_with_sample */
 
+
 #else /* NO_SOUND */
 
 /* Do-nothing stubs for when sound support is disabled. */
@@ -405,6 +408,7 @@ bool dos_init_sound(void) { return TRUE; }
 
 #endif /* NO_SOUND */
 
+
 /*
  * os_beep
  *
index 193048f63da3c5ee9d02a3f97b872820192b2798..ca93545e0b51abe916f318471947fa1c3be266fe 100644 (file)
@@ -89,6 +89,7 @@ static byte _far *graphics_font = NULL;
 
 static char name[] = "FONTS/FONT0.FNT";
 
+
 /*
  * available_bios
  *
@@ -134,6 +135,7 @@ static int available_bios(void)
 
 }
 
+
 /*
  * set_user_tfont
  *
@@ -186,6 +188,7 @@ static void set_user_gfont(word offset, word height)
        }
 }
 
+
 /*
  * read_font
  *
@@ -204,6 +207,7 @@ static void read_font(word offset, size_t nmemb)
        }
 }
 
+
 /*
  * load_fonts
  *
@@ -606,7 +610,8 @@ void write_pattern(volatile byte _far * screen, byte val, byte mask)
  * indentation). The screen should not be scrolled after printing to the
  * bottom right corner.
  *
- */ void os_display_char(zchar c)
+ */
+void os_display_char(zchar c)
 {
        int width = os_char_width(c);
 
@@ -998,6 +1003,7 @@ int os_from_true_colour(zword colour)
        return 0;
 }
 
+
 /*
  * os_to_true_colour
  *