This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 78596 - *Code Model* va_arg must handle not only built-in types
Summary: *Code Model* va_arg must handle not only built-in types
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 13:54 UTC by Vladimir Voskresensky
Modified: 2010-02-01 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-06-20 13:54:27 UTC
the following using of va_arg should be supported (extracts from mico, ddd,
Python, litesql, my-sql, clucene)
void cf(void* cc, ...){
    va_list ap;
    va_start(ap, cc);
    B  b1 = va_arg(ap, B);
    const A::C *c = va_arg(ap,const A::C*);
    A::C c1=*va_arg(ap, A::C*);
    B* b = (B*)va_arg(ap, B *);
    (void) va_arg(*p_va, B ***);
    (void) va_arg(*p_va, const B **);
    va_end(ap);
}
Comment 1 Vladimir Voskresensky 2006-06-20 14:29:29 UTC
fixed by adding new valid alternatives to fun_call_param rule.

Checking in cppparser.g;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/antlr2/Attic/cppparser.g,v
 <--  cppparser.g
new revision: 1.1.2.42; previous revision: 1.1.2.41
done