X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fscansbr.c;h=3d66bcf5bc9c4bb84262decaf47d72dc403bc71e;hb=2b7b705f7d986903b6e2190b559e7211e8e79f49;hp=7eef85f97ecfa378b116cd27df52834cd2ca905c;hpb=bd4fca3a8a15b35a04bdc333503c901d677c12eb;p=mmh diff --git a/uip/scansbr.c b/uip/scansbr.c index 7eef85f..3d66bcf 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -58,7 +58,11 @@ char *scanl = 0; /* text of most recent scanline */ */ static int mh_fputs(char *, FILE *); +#ifdef MULTIBYTE_SUPPORT #define SCAN_CHARWIDTH MB_CUR_MAX +#else +#define SCAN_CHARWIDTH 1 +#endif int scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, @@ -357,19 +361,6 @@ finished: } -/* - * Cheat: we are loaded with adrparse, which wants a routine called - * OfficialName(). We call adrparse:getm() with the correct arguments - * to prevent OfficialName() from being called. Hence, the following - * is to keep the loader happy. - */ -char * -OfficialName (char *name) -{ - return name; -} - - static int mh_fputs(char *s, FILE *stream) {