[Ecls-list] Lisp errors & ERRNO
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Mon Mar 15 18:19:25 UTC 2010
Any new symbol you add to the C file has to be defined in
src/c/symbols_list.h This is the list that the preprocessor uses. Without a
definition in it, there is no way to tell where the symbol is going to be
located in the core library!
Juanjo
On Mon, Mar 15, 2010 at 7:10 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:
> Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> writes:
>
> > On Mon, Mar 15, 2010 at 6:31 PM, Tobias C. Rittweiler <tcr at freebits.de
> >wrote:
> >
> >>
> >> SYSCALL-ERROR is probably a better name; the slot reader name
> >> SYSCALL-ERROR-ERRNO looks way better than the stuttering
> >> ERROR-WITH-ERRNO-ERRNO.
> >>
> >>
> > This name also has the advantage that it can be reused for other system
> > errors, such as Windows errors.
> >
> > Juanjo
>
> I'm trying to add the EXT:STRERROR but I'm failing miserably:
>
> Adding
>
> @(defun ext::strerror (errno)
> @
> return make_constant_base_string(strerror(fixint(errno)));
> @)
>
> to src/c/error.d results in
>
> ../src/c/error.d:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘:’ token
>
> What am I missing?
>
> -T.
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100315/d1abe629/attachment.html>
More information about the ecl-devel
mailing list