export PLStream stuff.
This commit is contained in:
parent
698498a12f
commit
2c00c4a00b
@ -447,14 +447,13 @@ UNICODE file functions.
|
|||||||
|
|
||||||
#define PL_DIFF_LIST 0x20000 /* PL_unify_chars() */
|
#define PL_DIFF_LIST 0x20000 /* PL_unify_chars() */
|
||||||
|
|
||||||
|
|
||||||
#ifdef SIO_MAGIC /* defined from <SWI-Stream.h> */
|
#ifdef SIO_MAGIC /* defined from <SWI-Stream.h> */
|
||||||
extern X_API int PL_unify_stream(term_t t, IOSTREAM *s);
|
/* Make IOSTREAM known to Prolog */
|
||||||
#define PL_open_stream PL_unify_stream
|
#define PL_open_stream PL_unify_stream /* compatibility */
|
||||||
extern X_API int PL_get_stream_handle(term_t t, IOSTREAM **s);\
|
PL_EXPORT(int) PL_unify_stream(term_t t, IOSTREAM *s);
|
||||||
extern X_API IOSTREAM *Snew(void *handle,int flags,IOFUNCTIONS *functions);
|
PL_EXPORT(int) PL_get_stream_handle(term_t t, IOSTREAM **s);
|
||||||
extern X_API int Sgetcode(IOSTREAM *);
|
PL_EXPORT(int) PL_release_stream(IOSTREAM *s);
|
||||||
extern X_API int Sfeof(IOSTREAM *);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define succeed return TRUE
|
#define succeed return TRUE
|
||||||
|
Reference in New Issue
Block a user