handle null ptrs

This commit is contained in:
vscosta 2016-04-08 01:21:22 -07:00
parent 948c8e7cbb
commit 6ee452f0c5

View File

@ -135,7 +135,7 @@ int Yap_open_buf_write_stream(char *nbuf, size_t nchars, encoding_t *encp,
Term Yap_ReadFromAtom(Atom a, Term opts); Term Yap_ReadFromAtom(Atom a, Term opts);
FILE *Yap_GetInputStream(Term t, const char *m); FILE *Yap_GetInputStream(Term t, const char *m);
FILE *Yap_GetOutputStream(Term t, const char *m); FILE *Yap_GetOutputStream(Term t, const char *m);
char *Yap_guessFileName(int f, int sno, char *nameb, size_t max); char *Yap_guessFileName(FILE *f, int sno, char *nameb, size_t max);
void Yap_plwrite(Term t, struct stream_desc *mywrite, int max_depth, int flags, void Yap_plwrite(Term t, struct stream_desc *mywrite, int max_depth, int flags,
int priority); int priority);