From: Sam S. <sd...@gn...> - 2005-09-06 15:13:29
|
> * Hoehle, Joerg-Cyril <Wbret-Plevy.Ubruyr@g-flfgrzf.pbz> [2005-09-06 13:52:30 +0200]: > > Sam Steingold wrote: > >>pari module cannot be built with c++: > [because FFI does not generate "const" in C wrappers & declarations] > > Couldn't some "extern C" be used to ignore C++ headaches, when the FFI > clearly has no clue about C++? I don't think so. "const" is as much an issue with C as with C++. > Why is it a necessity to generate the exact matching prototypes, > including all "const" at the right places fo PARI? because the C file produced by "clisp -c" does not compile with C unless all the "const" things are just right. >>(def-call-in pari-puts >> (:name "clispPuts") >> (:return-type nil) >> (:arguments (s c-string :in :malloc-free)) ;; WHY NOT :alloca?! > Please send me URL about PARI documentation to look up to answer such > questions. please follow CLISP home page -> impnotes -> CLISP PARI doc -> PARI home thanks. -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.honestreporting.com> <http://www.savegushkatif.org> <http://ffii.org/> <http://truepeace.org> <http://www.jihadwatch.org/> Murphy's Law was probably named after the wrong guy. |