diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-07 16:16:21 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-07 16:16:21 +0800 |
commit | 66654cf0343e89d43cdab80c19bbba58bd777400 (patch) | |
tree | 156d05ab75500ef989fd7fe1f0ad3456b1c943fa | |
parent | fff079be810b639034f66cb1556d84ab6bae4fcc (diff) | |
download | pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar.gz pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar.bz2 pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar.lz pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar.xz pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.tar.zst pttbbs-66654cf0343e89d43cdab80c19bbba58bd777400.zip |
pmore: some old compilers does not allow variables declared in
C++ flavor (outside block entry).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2787 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/pmore.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 6dd291ce..3a2aea8d 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -1443,6 +1443,15 @@ pmore(char *fpath, int promptend) int ch = 0; int invalidate = 1; + /* simple re-entrant hack + * I don't want to write pointers everywhere, + * and pmore should be simple enough (inside itself) + * so we can do so. + */ + + MmappedFile bkmf; + MF_PrettyFormattedHeader bkfh; + #ifdef PMORE_USE_ASCII_MOVIE float frameclk = 1.0f; @@ -1450,15 +1459,7 @@ pmore(char *fpath, int promptend) moviemode = MFDISP_MOVIE_UNKNOWN; #endif - MmappedFile bkmf; - MF_PrettyFormattedHeader bkfh; - - /* simple re-entrant hack - * I don't want to write pointers everywhere, - * and pmore should be simple enough (inside itself) - * so we can do so. - */ - bkmf = mf; + bkmf = mf; /* simple re-entrant hack */ bkfh = fh; RESETMF(); RESETFH(); |