* src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr, createIval): imple...
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 29 Nov 2005 21:22:07 +0000 (21:22 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 29 Nov 2005 21:22:07 +0000 (21:22 +0000)
(createIvalCharPtr): implemented flexible array initialisation with a string
* src/SDCCsymt.c (copyStruct): removed, (getSize): fixed comment,
(getAllocSize): removed, the additional allocation size is now in sym->flexArrayLength,
(checkStructFlexArray): new, syntax checks for "flexible array members",
(compStructSize): added syntax checks for "flexible array members"
(copyStruct): removed,
(copyLinkChain): removed inefficient fix for bug 770487
* src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
* src/SDCCsymt.h: added structdef.b_flexArrayMember and symbol->flexArrayLength
* src/SDCCerr.c,
* src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY, E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
* support/regression/tests/structflexarray.c: added
* support/valdiag/tests/structflexiblearray.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3999 4a8a32a2-be11-0410-ad9d-d568d2c75423


No differences found