handleSymbolRedeclarations

ImportC allows redeclarations of C variables, functions and typedefs. extern int x; int x = 3; and: extern void f(); void f() { } Attempt to merge them.

handleSymbolRedeclarations

Parameters

sc Scope

context

s Dsymbol

symbol to add to symbol table

s2 Dsymbol

existing declaration

sds ScopeDsymbol

symbol table

Return Value

Type: Dsymbol

if s and s2 are successfully put in symbol table then return the merged symbol, null if they conflict

Meta