fix parameters for open
This commit is contained in:
parent
5d27ad0243
commit
5f7101a9e3
@ -3413,16 +3413,16 @@ openStream(term_t file, term_t mode, term_t options)
|
|||||||
int reposition = TRUE;
|
int reposition = TRUE;
|
||||||
atom_t alias = NULL_ATOM;
|
atom_t alias = NULL_ATOM;
|
||||||
atom_t eof_action = ATOM_eof_code;
|
atom_t eof_action = ATOM_eof_code;
|
||||||
|
int close_on_abort = TRUE;
|
||||||
atom_t buffer = ATOM_full;
|
atom_t buffer = ATOM_full;
|
||||||
atom_t lock = ATOM_none;
|
atom_t lock = ATOM_none;
|
||||||
int wait = TRUE;
|
int wait = TRUE;
|
||||||
atom_t encoding = NULL_ATOM;
|
atom_t encoding = NULL_ATOM;
|
||||||
|
int bom = -1;
|
||||||
|
int scripting = FALSE;
|
||||||
#ifdef O_LOCALE
|
#ifdef O_LOCALE
|
||||||
PL_locale *locale = NULL;
|
PL_locale *locale = NULL;
|
||||||
#endif
|
#endif
|
||||||
int close_on_abort = TRUE;
|
|
||||||
int bom = -1;
|
|
||||||
int scripting = FALSE;
|
|
||||||
char how[10];
|
char how[10];
|
||||||
char *h = how;
|
char *h = how;
|
||||||
char *path;
|
char *path;
|
||||||
|
@ -35,7 +35,7 @@ Variable argument list:
|
|||||||
#define MAXOPTIONS 32
|
#define MAXOPTIONS 32
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{ bool *b; /* boolean value */
|
{ int *b; /* boolean value */
|
||||||
long *l; /* long value */
|
long *l; /* long value */
|
||||||
int *i; /* integer value */
|
int *i; /* integer value */
|
||||||
uintptr_t *sz; /* size_t value */
|
uintptr_t *sz; /* size_t value */
|
||||||
|
Reference in New Issue
Block a user