Added function name comment to end of each function in src/common/.
authorDavid Griffith <dave@661.org>
Thu, 25 May 2023 20:15:23 +0000 (13:15 -0700)
committerDavid Griffith <dave@661.org>
Thu, 25 May 2023 20:15:23 +0000 (13:15 -0700)
src/common/buffer.c
src/common/err.c
src/common/fastmem.c
src/common/input.c
src/common/math.c
src/common/missing.c
src/common/process.c
src/common/quetzal.c
src/common/screen.c
src/common/sound.c

index e3ccd29d45b79a71cf5e56264e4d1cdf3368eb0b..3dc0c17e064da694f8f043b84d75da406e63f83a 100644 (file)
@@ -43,7 +43,7 @@ void init_buffer(void)
        memset(buffer, 0, sizeof (zchar) * TEXT_BUFFER_SIZE);
        bufpos = 0;
        prev_c = 0;
-}
+} /* init_buffer */
 
 
 /*
index 1ca38bca162bac4c4a6daa0efda518cc5836f9dd..98a2bb043cdbd51b381bb6c2c07487168facdad4 100644 (file)
@@ -81,7 +81,7 @@ void init_err(void)
        /* Initialize the counters. */
        for (i = 0; i < ERR_NUM_ERRORS; i++)
        error_count[i] = 0;
-}
+} /* init_err */
 
 
 /*
index c73ef989f67ab40074f9b3edc438bb6b480574ed..fbc5cb4cc0a336d0a6c619409ce4887d39d8084b 100644 (file)
@@ -103,7 +103,7 @@ void huge *zrealloc(void huge *p, long size, size_t old_size)
        _fmemcpy(q, p, size < old_size ? size : old_size);
        zfree(p);
        return q;
-}
+} /* zrealloc */
 #endif /* __WATCOMC__ */
 
 
@@ -250,7 +250,7 @@ void init_header(void)
        /* Claim to support Z-machine Standard 1.1. */
        z_header.standard_high = 1;
        z_header.standard_low = 1;
-}
+} /* init_header */
 
 
 void init_setup(void)
@@ -271,7 +271,7 @@ void init_setup(void)
        f_setup.story_path = NULL;
        f_setup.zcode_path = NULL;
        f_setup.restricted_path = NULL;
-}
+} /* init_setup */
 
 
 /*
index 86052694e373b56130ff3b5717822baf4b3618a9..8c41852b30cc2afc832340ccdcfcef46bbab46fa 100644 (file)
@@ -340,4 +340,4 @@ static bool truncate_question_mark(void)
        if (story_id == SUSPECT) return TRUE;
 
        return FALSE;
-}
+} /* truncate_question_mark */
index 2fb103e8833cdcb874f70d83ec9b6aeeba6c69e3..cb7874700e77b39ea36285e2cac5bebcdf1c490a 100644 (file)
@@ -342,4 +342,4 @@ short s16(zword z) {
        if ((sz > 0 ) && (sz > 32767))
                sz = - (65536 - sz );
        return sz;
-}
+} /* s16 */
index 63248479d968309b2af307039c3e2b0cfc51fb57..4a011cc487be9d806722689966b4a20ab15859fc 100644 (file)
@@ -43,7 +43,7 @@ void *my_memmove(void *dest, const void *src, size_t n)
                while(n--) *d++=*s++;
 
        return dest;
-}
+} /* my_memmove */
 #endif /* NO_MEMMOVE */
 
 
@@ -67,7 +67,7 @@ char *my_strdup(const char *src)
        *p++ = *src++;
        *p = '\0';
        return str;
-}
+} /* my_strdup */
 
 char *my_strndup(const char *src, size_t n)
 {
@@ -84,5 +84,5 @@ char *my_strndup(const char *src, size_t n)
        }
        *p = '\0';
        return str;
-}
+} /* my_strndup */
 #endif /* NO_STRDUP */
index cc899f3954fa48fb35272ce29c885fb8542e05c5..3a3d4efa20f2af2dc15c96a30301c462544fa185 100644 (file)
@@ -179,7 +179,7 @@ void (*ext_opcodes[0x1d])(void) = {
 void init_process(void)
 {
        finished = 0;
-}
+} /* init_process */
 
 
 /*
@@ -584,7 +584,7 @@ void z_catch(void)
 #else
        store(frame_count);
 #endif
-}  /* z_catch */
+} /* z_catch */
 
 
 /*
index 135271b073635bf959d2442675cd48a0ff3251e8..b27315069b4c92d1b9fe8e65380dd4a1dc167778 100644 (file)
@@ -94,7 +94,7 @@ static bool read_word(FILE * f, zword * result)
 
        *result = ((zword) a << 8) | (zword) b;
        return TRUE;
-}
+} /* read_word */
 
 
 /* Read one long from file; return TRUE if OK. */
@@ -121,7 +121,7 @@ static bool read_long(FILE * f, zlong * result)
            ((zlong) c << 8) | (zlong) d;
 
        return TRUE;
-}
+} /* read_long */
 
 
 /*
@@ -429,7 +429,7 @@ zword restore_quetzal(FILE * svf, FILE * stf)
                    ("error: no valid memory (`CMem' or `UMem') chunk in file.\n");
 
        return (progress == GOT_ALL ? 2 : fatal);
-}
+} /* restore_quetzal */
 
 
 /*
@@ -596,4 +596,4 @@ zword save_quetzal(FILE * svf, FILE * stf)
 
        /* After all that, still nothing went wrong! */
        return 1;
-}
+} /* save_quetzal */
index 78c8a3005042cf3877789068f4f750b081528e31..a7e9904ab728ef909550c8f13868bb1f8add3073 100644 (file)
@@ -55,7 +55,7 @@ static Zwindow wp[8], *cwp = wp;
 Zwindow *curwinrec()
 {
        return cwp;
-}
+} /* curwinrec */
 
 
 /*
@@ -177,7 +177,7 @@ static bool amiga_screen_model (void)
                }
        }
        return FALSE;
-}/* amiga_screen_model */
+} /* amiga_screen_model */
 
 
 /*
@@ -1947,4 +1947,4 @@ void reset_window(void)
 {
        set_window(0);
        new_line();
-}
+} /* reset_window */
index f6020a3a05345bf8a4eb6aa0b01b347fce863f68..986499aaae6c0f22727d6b2a2b8149324202c3f1 100644 (file)
@@ -235,5 +235,5 @@ void z_sound_effect(void)
        if (number == 1 || number == 2)
                os_beep(number);
        return;
-}
+} /* z_sound_effect */
 #endif