Do not use '#endif/#else xxx'; it is not allowed for ANSI C

This commit is contained in:
ceriel
1991-12-17 13:12:22 +00:00
parent abb411daac
commit a38be6605e
50 changed files with 261 additions and 261 deletions

View File

@@ -21,7 +21,7 @@
extern arith NewLocal();
#define LocalPtrVar() NewLocal(pointer_size, pointer_align, reg_pointer, REGISTER)
#define LocalIntVar() NewLocal(int_size, int_align, reg_any, REGISTER)
#endif STB
#endif /* STB */
/* Because EM does not support the loading and storing of
objects having other sizes than word fragment and multiple,
@@ -86,7 +86,7 @@ store_block(sz, al)
C_asp(ATW(sz));
FreeLocal(dst);
FreeLocal(src);
#else STB
#else /* STB */
/* address of destination lies on the stack */
/* push address of first byte of block on stack onto
@@ -98,7 +98,7 @@ store_block(sz, al)
C_loc(sz); /* number of bytes to transfer */
C_cal("__stb"); /* call transfer routine */
C_asp(pointer_size + pointer_size + int_size + ATW(sz));
#endif STB
#endif /* STB */
}
}
@@ -124,7 +124,7 @@ load_block(sz, al)
copy_loop(sz, src, dst);
FreeLocal(dst);
FreeLocal(src);
#else STB
#else /* STB */
arith esz = ATW(sz) - pointer_size;
C_asp(-esz); /* allocate stack block */
C_lor((arith)1); /* push & of stack block as dst */
@@ -134,7 +134,7 @@ load_block(sz, al)
C_loc(sz); /* # bytes to copy */
C_cal("__stb"); /* library copy routine */
C_asp(int_size + pointer_size + pointer_size);
#endif STB
#endif /* STB */
}
}
@@ -158,11 +158,11 @@ copy_block(sz, al)
copy_loop(sz, src, dst);
FreeLocal(dst);
FreeLocal(src);
#else STB
#else /* STB */
C_loc(sz); /* # bytes to copy */
C_cal("__stb"); /* library copy routine */
C_asp(int_size + pointer_size + pointer_size);
#endif STB
#endif /* STB */
}
}
@@ -194,7 +194,7 @@ copy_loop(sz, src, dst)
C_df_ilb(l_stop);
FreeLocal(tmp_sz);
}
#endif STB
#endif /* STB */
#endif LINT
#endif /* LINT */