diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-09-17 02:41:55 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-09-17 02:41:55 +0800 |
commit | 2c244129ac12bfe6d58bee71288c2b8746dab755 (patch) | |
tree | e49592872c8b3aaa8aa2b05ef227477833a9a804 /mbbsd/pmore.c | |
parent | 5f36f8a8fb4424a5b75f6c2e478a4a398ec1492a (diff) | |
download | pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.gz pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.bz2 pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.lz pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.xz pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.zst pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.zip |
enum usage fix, saved few bytes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3414 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r-- | mbbsd/pmore.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 7459a6a4..33364e28 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -231,16 +231,16 @@ MmappedFile mf = { }; // current file /* mf_* navigation commands return value meanings */ -enum { +enum MF_NAV_COMMANDS { MFNAV_OK, // navigation ok MFNAV_EXCEED, // request exceeds buffer -} MF_NAV_COMMANDS; +}; /* Navigation units (dynamic, so not in enum const) */ #define MFNAV_PAGE (t_lines-2) // when navigation, how many lines in a page to move /* Display system */ -enum { +enum MF_DISP_CONST { /* newline method (because of poor BBS implementation) */ MFDISP_NEWLINE_CLEAR = 0, // \n and cleartoeol MFDISP_NEWLINE_SKIP, @@ -264,7 +264,7 @@ enum { MFDISP_RAW_MODES, // MFDISP_RAW_NOFMT, // this is rarely used sinde we have ansi and plain -} MF_DISP_CONST; +}; #define MFDISP_PAGE (t_lines-1) // the real number of lines to be shown. #define MFDISP_DIRTY() { mf.oldlineno = -1; } @@ -319,10 +319,10 @@ typedef struct MF_SearchRecord sr = { 0, strncmp, NULL}; -enum { +enum MFSEARCH_DIRECTION { MFSEARCH_FORWARD, MFSEARCH_BACKWARD, -} MFSEARCH_DIRECTION; +}; // Reset structures #define RESETMF() { memset(&mf, 0, sizeof(mf)); \ @@ -336,14 +336,14 @@ enum { // --------------------------------------------- <Optional Modules> #ifdef PMORE_USE_ASCII_MOVIE -enum { +enum _MFDISP_MOVIE_MODES { MFDISP_MOVIE_UNKNOWN= 0, MFDISP_MOVIE_DETECTED, MFDISP_MOVIE_YES, MFDISP_MOVIE_NO, MFDISP_MOVIE_PLAYING, MFDISP_MOVIE_PLAYING_OLD, -} _MFDISP_MOVIE_MODES; +}; typedef struct { struct timeval frameclk; |