ack/util/ceg/defaults/pseudo/C_open.c

20 lines
290 B
C
Raw Normal View History

#define CODE_EXPANDER
1989-01-27 16:41:04 +00:00
#include <back.h>
1987-11-20 10:41:03 +00:00
#include <assert.h>
#include <system.h>
1989-01-26 13:24:23 +00:00
extern int B_busy;
1987-11-20 10:41:03 +00:00
int C_open( filename)
char *filename;
{
1989-01-26 13:24:23 +00:00
assert( !B_busy);
1987-11-20 10:41:03 +00:00
1988-05-03 13:03:07 +00:00
if ( !open_back( filename)) {
1987-11-20 10:41:03 +00:00
fprint( STDERR, "Couldn't open %s\n", filename);
1988-02-03 12:55:36 +00:00
return( 0);
1987-11-20 10:41:03 +00:00
}
else
return( 1);
}