ack/mach/sparc/ce/back.src/do_open.c
1993-11-10 12:57:16 +00:00

25 lines
426 B
C

#include "header.h"
open_back( filename)
char *filename;
{
if ( filename == (char *) 0) {
codefile= STDOUT;
#ifdef __solaris__
fprint(codefile, ".section \".text\"\n");
#endif
return 1;
}
#ifndef sys_close
if ( sys_open( filename, OP_WRITE, &codefile)) {
#else
if ((codefile = fopen(filename, "w")) != NULL) {
#endif
#ifdef __solaris__
fprint(codefile, ".section \".text\"\n");
#endif
return 1;
}
return 0;
}