From: johanknol Date: Mon, 12 Nov 2001 13:40:45 +0000 (+0000) Subject: size of a function is the size of a code pointer X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=43b2ad2eaedf25d3b9e0b873951bb645fd9ea96d;hp=e582683bfcb421e470ccc5854e77507295648830;p=fw%2Fsdcc size of a function is the size of a code pointer git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1574 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index ab5d588e..7432c3cb 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -782,8 +782,6 @@ getSize (sym_link * p) /* this is a specifier */ switch (DCL_TYPE (p)) { - case FUNCTION: - return 2; case ARRAY: return DCL_ELEM (p) * getSize (p->next); case IPOINTER: @@ -793,6 +791,7 @@ getSize (sym_link * p) case EEPPOINTER: case FPOINTER: case CPOINTER: + case FUNCTION: return (FPTRSIZE); case GPOINTER: return (GPTRSIZE);