[cffi-devel] New patches: 17-Apr-2006
![](https://secure.gravatar.com/avatar/5243970803cb1967bdf6ea217d3ab211.jpg?s=120&d=mm&r=g)
Mon Apr 17 21:13:51 EDT 2006 Luis Oliveira <loliveira@common-lisp.net> tagged 0.9.1 Mon Apr 17 21:13:09 EDT 2006 Luis Oliveira <loliveira@common-lisp.net> * Make release.sh more suitable for versioned releases M ./scripts/release.sh -3 +3 Mon Apr 17 21:10:01 EDT 2006 Luis Oliveira <loliveira@common-lisp.net> * More minor changes to cffi-tests - add asdf:test-op to the cffi system - mark a couple more cmucl failures - get rid of the warning in libtest.c about comparing void* and function pointer M ./cffi.asd +4 M ./tests/callbacks.lisp -2 +2 M ./tests/libtest.c -4 +4 An updated tarball of CFFI's source can be downloaded here: http://common-lisp.net/project/cffi/tarballs/cffi-060417.tar.gz Darcsweb URL: http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cffi;a=summary
![](https://secure.gravatar.com/avatar/85707c170bca7964097b9ee08480188d.jpg?s=120&d=mm&r=g)
Mon Apr 17 21:10:01 EDT 2006 Luis Oliveira <loliveira@common-lisp.net> * More minor changes to cffi-tests
- add asdf:test-op to the cffi system - mark a couple more cmucl failures - get rid of the warning in libtest.c about comparing void* and function pointer
M ./cffi.asd +4 M ./tests/callbacks.lisp -2 +2 M ./tests/libtest.c -4 +4
Windows 2000 sp4, MSVCToolkit: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3052 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. libtest.c libtest.c(761) : error C2146: syntax error : missing ')' before identifier 'p' libtest.c(761) : error C2144: syntax error : '<Unknown>' should be preceded by ' <Unknown>' libtest.c(761) : error C2144: syntax error : '<Unknown>' should be preceded by ' <Unknown>' libtest.c(761) : error C2143: syntax error : missing ')' before 'identifier' libtest.c(761) : error C2061: syntax error : identifier 'p' libtest.c(761) : error C2059: syntax error : ';' libtest.c(761) : error C2059: syntax error : ')' libtest.c(762) : error C2449: found '{' at file scope (missing function header?) libtest.c(764) : error C2059: syntax error : '}' libtest.c(771) : error C2146: syntax error : missing ')' before identifier 'p' libtest.c(771) : error C2144: syntax error : '<Unknown>' should be preceded by ' <Unknown>' libtest.c(771) : error C2144: syntax error : '<Unknown>' should be preceded by ' <Unknown>' libtest.c(771) : error C2143: syntax error : missing ')' before 'identifier' libtest.c(771) : error C2061: syntax error : identifier 'p' libtest.c(771) : error C2059: syntax error : ';' libtest.c(771) : error C2059: syntax error : ')' libtest.c(772) : error C2449: found '{' at file scope (missing function header?) libtest.c(774) : error C2059: syntax error : '}' Thanks! -- WBR, Yaroslav Kavenchuk.
![](https://secure.gravatar.com/avatar/326b108ffcc42f27628703b0c11ed239.jpg?s=120&d=mm&r=g)
Yaroslav Kavenchuk <kavenchuk@jenty.by> writes:
libtest.c(774) : error C2059: syntax error : '}'
Hmm, do you have any suggestion for fixing this? -- Luís Oliveira luismbo (@) gmail (.) com Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
![](https://secure.gravatar.com/avatar/85707c170bca7964097b9ee08480188d.jpg?s=120&d=mm&r=g)
Luís Oliveira wrote:
Yaroslav Kavenchuk <kavenchuk@jenty.by> writes:
libtest.c(774) : error C2059: syntax error : '}'
Hmm, do you have any suggestion for fixing this?
libtest.c(761) : error C2146: syntax error : missing ')' before identifier 'p' 761: DLLEXPORT int compare_against_abs(intptr_t p) may be msvctoolkit not know about intptr_t? I do not have other ideas... -- WBR, Yaroslav Kavenchuk.
![](https://secure.gravatar.com/avatar/85707c170bca7964097b9ee08480188d.jpg?s=120&d=mm&r=g)
Luís Oliveira wrote:
Yaroslav Kavenchuk <kavenchuk@jenty.by> writes:
libtest.c(774) : error C2059: syntax error : '}'
Hmm, do you have any suggestion for fixing this?
gcc report: $ make gcc -o libtest.dll -shared -lm -Wall -std=c99 -pedantic libtest.c libtest.c:761: error: syntax error before "p" libtest.c: In function `compare_against_abs': libtest.c:763: error: `p' undeclared (first use in this function) libtest.c:763: error: (Each undeclared identifier is reported only once libtest.c:763: error: for each function it appears in.) libtest.c:763: error: `intptr_t' undeclared (first use in this function) libtest.c:763: error: syntax error before "abs" libtest.c: At top level: libtest.c:772: error: syntax error before "p" libtest.c: In function `compare_against_xpto_fun': libtest.c:774: error: `p' undeclared (first use in this function) libtest.c:774: error: `intptr_t' undeclared (first use in this function) libtest.c:774: error: syntax error before "xpto_fun" make: *** [libtest.dll] Error 1 `intptr_t' defined in stdint.h (msys) or in io.h (msvctoolkit) If append #include <io.h> to libtest.c library build on both systems. Thanks! -- WBR, Yaroslav Kavenchuk.
![](https://secure.gravatar.com/avatar/326b108ffcc42f27628703b0c11ed239.jpg?s=120&d=mm&r=g)
Yaroslav Kavenchuk <kavenchuk@jenty.by> writes:
`intptr_t' defined in stdint.h (msys) or in io.h (msvctoolkit) If append #include <io.h> to libtest.c library build on both systems.
<stdint.h> is the standard header though, does it not work for MSVC using that? -- Luís Oliveira luismbo (@) gmail (.) com Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
![](https://secure.gravatar.com/avatar/85707c170bca7964097b9ee08480188d.jpg?s=120&d=mm&r=g)
Luís Oliveira wrote:
Yaroslav Kavenchuk <kavenchuk@jenty.by> writes:
`intptr_t' defined in stdint.h (msys) or in io.h (msvctoolkit) If append #include <io.h> to libtest.c library build on both systems.
<stdint.h> is the standard header though, does it not work for MSVC using that?
<stdint.h> is not present in MSVCToolkit -- WBR, Yaroslav Kavenchuk.
participants (3)
-
loliveira@common-lisp.net
-
Luís Oliveira
-
Yaroslav Kavenchuk