-/* File: main-ibm.c */
+/* File: main-ibm.c */
/*
* Copyright (c) 1997 Ben Harrison, and others
#ifdef JP
/* Dump the text */
for (i = 0; i < n; i++) {
- if (iskanji(cp[i])) {
- char jbuf[3];
- jbuf[0] = cp[i++];
- jbuf[1] = cp[i];
- jbuf[2] = '\0';
- cputs(jbuf);
- } else {
- putch(cp[i]);
- }
+ if (iskanji(cp[i])) {
+ char jbuf[3];
+ jbuf[0] = cp[i++];
+ jbuf[1] = cp[i];
+ jbuf[2] = '\0';
+ cputs(jbuf);
+ } else {
+ putch(cp[i]);
+ }
}
#else
- /* Dump the text */
- for (i = 0; i < n; i++) putch(cp[i]);
+ /* Dump the text */
+ for (i = 0; i < n; i++) putch(cp[i]);
#endif
#else /* USE_CONIO */
*
* The given parameters are "valid".
*/
-#ifdef USE_TRANSPARENCY
static errr Term_pict_ibm(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp)
-#else /* USE_TRANSPARENCY */
-static errr Term_pict_ibm(int x, int y, int n, const byte *ap, const char *cp)
-#endif /* USE_TRANSPARENCY */
{
register int i;
register byte attr;
#define _farsetsel(x) __dpmi_sel=(x)
extern void _farnspokeb(unsigned long offset, unsigned char value);
#pragma aux _farnspokeb = \
- "push fs" \
- "mov fs,__dpmi_sel" \
- "mov fs:[eax],bl" \
- "pop fs" \
- parm [eax] [bl];
+ "push fs" \
+ "mov fs,__dpmi_sel" \
+ "mov fs:[eax],bl" \
+ "pop fs" \
+ parm [eax] [bl];
#else /* USE_WAT */