[Ecls-list] Using @'nil' and etc.

Yaroslav Kavenchuk kavenchuk at gmail.com
Mon Oct 22 12:52:57 UTC 2007


Hi!

Example:

$ cat /g/Work/Lisp/ecl-iconv/test.lisp

(ffi:clines "

#include <ecl/ecl.h>

static cl_object test()
{
  cl_object ret_str;
  ret_str = si_make_vector(@'character', MAKE_FIXNUM(512), @'t',
                           MAKE_FIXNUM(0), @'nil', @'nil');
  return ret_str;
};

")

$ ./ecl.exe -norc
...
Type :h for Help.  Top level.
> (compile-file "G:/Work/Lisp/test.lisp")
;;; Loading #P"c:/ECL/cmp.fas"
;;; Loading #P"c:/ECL/sysfun.lsp"
;;; Compiling G:/Work/Lisp/test.lisp.
;;; End of Pass 1.
;;; Calling the C compiler...
;;; Note: Invoking external command:
;;; gcc-dw2.exe  -O3  -D_THREAD_SAFE -Ic:/gnu/local/include
-fstrict-aliasing -Dmingw32 -O "-Ic:/ECL" -w -c "G:/Work/Lisp/test.c"
-o "G:/Work/Lisp/test.o"

In file included from G:/Work/Lisp/test.c:3:
G:/Work/Lisp/test.h: In function 'test':
G:/Work/Lisp/test.h:11: error: stray '@' in program
G:/Work/Lisp/test.h:11: error: stray '@' in program
G:/Work/Lisp/test.h:12: error: stray '@' in program
G:/Work/Lisp/test.h:12: error: stray '@' in program
...

How use @'nil', @'t'?
@'character' - it is valid instruction?
Where can I see any information about this?

Thanks!

-- 
WBR, Yaroslav Kavenchuk.




More information about the ecl-devel mailing list