X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fyow.c;h=399d070b9c86500096b99a8ee0cb9c54ad36c68f;hb=84cf28ef3a72b8902e12a9f23cc0a31ffe105c60;hp=f5b74107c324802b153874f2b60ffb069706396f;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/lib-src/yow.c b/lib-src/yow.c index f5b7410..399d070 100644 --- a/lib-src/yow.c +++ b/lib-src/yow.c @@ -9,7 +9,8 @@ /* Synched up with: FSF 19.28. */ -#include <../src/config.h> +#define DONT_ENCAPSULATE +#include #include #include @@ -32,7 +33,7 @@ void yow (FILE *fp); void setup_yow (FILE *fp); -#ifdef MSDOS +#ifdef WIN32_NATIVE #define rootrelativepath(rel) \ ({\ static char res[BUFSIZE], *p;\ @@ -90,8 +91,7 @@ static long header_len; /* Sets len and header_len */ void -setup_yow(fp) - FILE *fp; +setup_yow (FILE *fp) { int c; @@ -119,13 +119,12 @@ setup_yow(fp) /* go to a random place in the file and print the quotation there */ void -yow (fp) - FILE *fp; +yow (FILE *fp) { long offset; int c, i = 0; char *buf; - unsigned int bufsize; + int bufsize; offset = rand() % len + header_len; if (fseek(fp, offset, 0) == -1) {