Added I/O stuff

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@1085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2001-04-24 02:53:30 +00:00
commit b78219ef58

View file

@ -209,13 +209,14 @@ static DohObjInfo DohFileType = {
* Create a new file from a given filename and mode.
* ----------------------------------------------------------------------------- */
static int init = 0;
DOH *
NewFile(DOH *fn, char *mode)
{
DohFile *f;
FILE *file;
char *filename;
static int init = 0;
if (!init) {
DohRegisterType(DOHTYPE_FILE, &DohFileType);
@ -247,7 +248,7 @@ DOH *
NewFileFromFile(FILE *file)
{
DohFile *f;
static int init = 0;
if (!init) {
DohRegisterType(DOHTYPE_FILE, &DohFileType);
init = 1;
@ -270,7 +271,6 @@ DOH *
NewFileFromFd(int fd)
{
DohFile *f;
static int init = 0;
if (!init) {
DohRegisterType(DOHTYPE_FILE, &DohFileType);
init = 1;