Catching errors / calloc / free

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Catching errors / calloc / free

emacstheviking
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
[hidden email]
https://lists.gnu.org/mailman/listinfo/users-prolog