projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(U-000200B3): Use `ideographic-{radical|strokes}@daikanwa' instead of
[chise/xemacs-chise.git-]
/
lib-src
/
yow.c
diff --git
a/lib-src/yow.c
b/lib-src/yow.c
index
79d4635
..
399d070
100644
(file)
--- a/
lib-src/yow.c
+++ b/
lib-src/yow.c
@@
-33,7
+33,7
@@
void yow (FILE *fp);
void setup_yow (FILE *fp);
void yow (FILE *fp);
void setup_yow (FILE *fp);
-#ifdef MSDOS
+#ifdef WIN32_NATIVE
#define rootrelativepath(rel) \
({\
static char res[BUFSIZE], *p;\
#define rootrelativepath(rel) \
({\
static char res[BUFSIZE], *p;\
@@
-91,8
+91,7
@@
static long header_len;
/* Sets len and header_len */
void
/* Sets len and header_len */
void
-setup_yow(fp)
- FILE *fp;
+setup_yow (FILE *fp)
{
int c;
{
int c;
@@
-120,13
+119,12
@@
setup_yow(fp)
/* go to a random place in the file and print the quotation there */
void
/* 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;
{
long offset;
int c, i = 0;
char *buf;
- unsigned int bufsize;
+ int bufsize;
offset = rand() % len + header_len;
if (fseek(fp, offset, 0) == -1) {
offset = rand() % len + header_len;
if (fseek(fp, offset, 0) == -1) {