s/chtype/chartype/g so this builds on FreeBSD/Alpha too.

This commit is contained in:
Steve Price 1999-09-20 02:07:43 +00:00
parent 421dbe26a2
commit f392532992
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21803
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- empire.h.orig Sat Sep 18 18:34:59 1999
+++ empire.h Sat Sep 18 18:35:39 1999
@@ -25,7 +25,7 @@
#ifndef SYSV
#define memcpy(dst,src,len) bcopy((src),(dst),(len))
#define strchr(s,c) index(s,c)
-typedef char chtype;
+typedef char chartype;
#define beep() (putchar('\7'))
#define napms(d) (usleep((d)*1000))
#else

View file

@ -0,0 +1,38 @@
--- display.c.orig Sat Sep 18 18:35:53 1999
+++ display.c Sat Sep 18 18:36:16 1999
@@ -236,7 +236,7 @@
for (r = 0; jnkbuf[r] != '\0'; r++) {
if (r+NUMTOPS >= MAP_HEIGHT) break;
(void) move (r+NUMTOPS, cols-NUMSIDES+4);
- (void) addch ((chtype)jnkbuf[r]);
+ (void) addch ((chartype)jnkbuf[r]);
}
}
@@ -278,7 +278,7 @@
break;
}
#endif /* A_COLOR */
- (void) addch ((chtype)vp->contents);
+ (void) addch ((chartype)vp->contents);
#ifdef A_COLOR
attrset(0);
attron(COLOR_PAIR(COLOR_WHITE));
@@ -420,7 +420,7 @@
cell = vmap[row_col_loc(r,c)].contents;
(void) move (row/row_inc + NUMTOPS, col/col_inc);
- (void) addch ((chtype)cell);
+ (void) addch ((chartype)cell);
}
/*
@@ -498,7 +498,7 @@
print_zoom_cell (vmap, row, col, row_inc, col_inc);
else {
(void) move (row/row_inc + NUMTOPS, col/col_inc);
- (void) addch ((chtype)cell);
+ (void) addch ((chartype)cell);
}
}

View file

@ -0,0 +1,9 @@
--- game.c.orig Sat Sep 18 18:36:29 1999
+++ game.c Sat Sep 18 18:36:40 1999
@@ -850,5 +850,5 @@
cell = mbuf[row_col_loc(r,c)];
(void) move (row/row_inc + NUMTOPS, col/col_inc);
- (void) addch ((chtype)cell);
+ (void) addch ((chartype)cell);
}