25 lines
427 B
C
25 lines
427 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, "wb")) != NULL) {
|
|
#endif
|
|
#ifdef __solaris__
|
|
fprint(codefile, ".section \".text\"\n");
|
|
#endif
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|