* 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)
commitb7d650f8fe1c5a42946ae9f0f6854978d510ed6f
tree470f10adb25d42d2728056b2be19bf3d57372077
parent5be90381bf67a833edd640da0d67400b3bb0f111
* src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr, createIval): implement symbol independant "flexible array member",
(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
ChangeLog
src/SDCCast.c
src/SDCCglue.c
src/SDCCsymt.c
src/SDCCsymt.h
support/Util/SDCCerr.c
support/Util/SDCCerr.h
support/regression/tests/structflexarray.c [new file with mode: 0644]
support/valdiag/tests/structflexiblearray.c [new file with mode: 0644]