[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Runtime error (already posted to the main group, sorry)
From: |
Marius Vollmer |
Subject: |
Re: Runtime error (already posted to the main group, sorry) |
Date: |
14 Nov 2002 20:51:21 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
jblazi <address@hidden> writes:
> scm_eval_string((scm_unused_struct*)"(test_function 4)");
You can not just cast a char* to a SCM. Where did you get that idea?
(Maybe there is some misleading stuff in the manual, that's why I
ask.)
You should either use scm_c_eval_string,
scm_c_eval_string ("(test_function 4)");
wich can work directly with C strings, or use scm_str2string to
convert the C string into a Scheme string:
scm_c_eval_string (scm_str2string ("(test_function 4)"));
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405