Catching errors / calloc / free

emacstheviking <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <CAEiEuUKUR5f_br=Z93YuH33muh-X5OM3-esWU=7sYi2C_ULKsA@mail.gmail.com>
If I have used Pl_Rd_Proper_List_Check, and then during iteration I use
Pl_Rd_Atom_Check to ensure I have a list of atoms only, how can I ensure I
don't leak memory if a non-atom is passed?

Currently the only way I can see is to use the non _Check version and
manage it myself.

And what on earth is ...
#define PL_ERR_TYPE                X1_24706C5F6572725F74797065

Awesome!
:)

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.