examples: fix threads example

Do not include `gc.h' in the example (only ecl/ecl.h). Things work as
expected whatsoever and we don't put gc.h anywhere for quite a
while. Fixes #136.

Also replace obsolete Cnil with ECL_NIL.
This commit is contained in:
Daniel Kochmański 2016-10-05 12:38:51 +02:00
parent 1c2942d15d
commit 69a28761d9
2 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ thread_entry_point(void *data)
* in this thread.
*/
ecl_import_current_thread(Cnil, Cnil);
ecl_import_current_thread(ECL_NIL, ECL_NIL);
/*
* Here we execute some lisp code code.