Use stdio instead of print module
This commit is contained in:
parent
3a0c4d8704
commit
6a02543de2
|
@ -50,8 +50,7 @@
|
||||||
#define set_local_visible B_stlocvis
|
#define set_local_visible B_stlocvis
|
||||||
#define symbol_definition B_symdef
|
#define symbol_definition B_symdef
|
||||||
#define switchseg B_switchseg
|
#define switchseg B_switchseg
|
||||||
|
#define not_implemented B_not_implemented
|
||||||
extern File *codefile;
|
|
||||||
|
|
||||||
extern char *extnd_name(), *extnd_dnam(), *extnd_dlb(), *extnd_ilb(),
|
extern char *extnd_name(), *extnd_dnam(), *extnd_dlb(), *extnd_ilb(),
|
||||||
*extnd_hol(), *extnd_ext(), *extnd_pro(), *extnd_start(),
|
*extnd_hol(), *extnd_ext(), *extnd_pro(), *extnd_start(),
|
||||||
|
@ -67,3 +66,19 @@ extern char *extnd_name(), *extnd_dnam(), *extnd_dlb(), *extnd_ilb(),
|
||||||
#define SEGHOL -1 /* Does not exist */
|
#define SEGHOL -1 /* Does not exist */
|
||||||
|
|
||||||
#define ABSOLUTE 1
|
#define ABSOLUTE 1
|
||||||
|
|
||||||
|
#define fprint fprintf
|
||||||
|
#define sprint sprintf
|
||||||
|
#define print printf
|
||||||
|
#undef STDOUT
|
||||||
|
#define STDOUT stdout
|
||||||
|
#undef STDERR
|
||||||
|
#define STDERR stderr
|
||||||
|
#undef STDIN
|
||||||
|
#define STDIN stdin
|
||||||
|
#undef File
|
||||||
|
#define File FILE
|
||||||
|
#define sys_close fclose
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
extern File *codefile;
|
||||||
|
|
|
@ -6,6 +6,10 @@ char *filename;
|
||||||
if ( filename == (char *) 0)
|
if ( filename == (char *) 0)
|
||||||
codefile= STDOUT;
|
codefile= STDOUT;
|
||||||
else
|
else
|
||||||
|
#ifndef sys_close
|
||||||
return( sys_open( filename, OP_WRITE, &codefile));
|
return( sys_open( filename, OP_WRITE, &codefile));
|
||||||
|
#else
|
||||||
|
return (codefile = fopen(filename, "w")) != NULL;
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue