|
RE: Re[2]: [CEDET-devel] variable arguments(...)
From: Berndl, Klaus <klaus.berndl@sd...> - 2003-05-15 11:53
|
Eric, could you please apply this small patch to the semantic 1.4 sources too?!
Thanks a lot,
Klaus
-----Original Message-----
From: Eric M. Ludlam [mailto:eric@...]
Sent: Thursday, May 15, 2003 1:31 PM
To: Masatake YAMATO
Cc: cedet-devel@...
Subject: Re[2]: [CEDET-devel] variable arguments(...)
>>> Masatake YAMATO <jet@...> seems to think that:
>> C lang's variable expressed as "..." is supported in semantic?
>I found its definition in c.by.
>However, an error is raised from
>semantic-tag.el/semantic--tag-expand/semantic--tag-set-overlay/setcar
>because (semantic--tag-overlay-cdr tag) returns nil.
>
>raw TAG value in `semantic--tag-expand' is like
>("..." 20 23)
>.
>The list is too short.
>
>You can reproduce the error with the following short code:
>
>void foo (int argv, ...);
[ ... ]
Hi,
Thanks for doing more research. What you discovered made finding a
fix easy. Thanks. For semantic 2.0 (in CVS) the following patch may
fix it, though. I don't have time to try it out right now though.
I don't recall my ... syntax just now, the type of the ... ends up
being a vararg type or some such, yes?
Apply patch, and press "C-c C-c" in the c.by buffer.
Eric
-------------------
*** c.by.~1.12.~ Fri Apr 4 22:42:54 2003
--- c.by Thu May 15 07:27:40 2003
***************
*** 968,974 ****
: variablearg
( ,$1 )
| PERIOD PERIOD PERIOD RPAREN
! ( "..." )
| COMA
( nil )
| LPAREN
--- 968,974 ----
: variablearg
( ,$1 )
| PERIOD PERIOD PERIOD RPAREN
! (VARIABLE-TAG "..." "vararg" nil)
| COMA
( nil )
| LPAREN
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
http://www.enterpriselinuxforum.com
_______________________________________________
Cedet-devel mailing list
Cedet-devel@...
https://lists.sourceforge.net/lists/listinfo/cedet-devel
|
| Thread | Author | Date |
|---|---|---|
| RE: Re[2]: [CEDET-devel] variable arguments(...) | Berndl, Klaus <klaus.berndl@sd...> |