Re[2]: [CEDET-devel] variable arguments(...)
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2003-05-15 11:34:10
|
>>> Masatake YAMATO <je...@gy...> 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: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |