[Ecls-list] "In function TEST, checking types of arguments FN."
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Sun Feb 7 12:43:45 UTC 2010
All the information about source locations is stored in the compiler
condition. Currently they are internal symbols in the C package but that can
be changed.
(define-condition compiler-message (simple-condition)
((prefix :initform "Note" :accessor compiler-message-prefix)
(file :initarg :file :initform *compile-file-pathname*
:accessor compiler-message-file)
(position :initarg :file :initform *compile-file-position*
:accessor compiler-message-file-position)
(toplevel-form :initarg :form :initform *current-toplevel-form*
:accessor compiler-message-toplevel-form)
(form :initarg :form :initform *current-form*
:accessor compiler-message-form))
On Sun, Feb 7, 2010 at 1:01 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:
> Juan Jose Garcia-Ripoll writes:
>
> > Use .ecl or .eclrc and add COMPILER-NOTE to the type
> > C:*suppress-compiler-messages* (this is a lisp type specifier, not a
> list)
> > which represents the type of notes and messages that are suppressed, or
> set
> > C::*SUPPRESS-COMPILER-NOTES* to T and get rid of everything which is not
> a
> > warning or an error.
> >
> > Juanjo
>
> Btw. is there a way to get at the source location of a condition
> signaled by the compiler? E.g. for a "variable not used" style-warning,
> the source position of the toplevel form? (The closer the position to
> the actual place of offence the better, i.e. best would be the actual
> position of the symbol name, second-best the position of the containing
> form, and still-good the position of the toplevel form.)
>
> If not, contemplate adding something because that can be made good use
> of in Slime.
>
> -T.
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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/20100207/baf62085/attachment.html>
More information about the ecl-devel
mailing list