首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian英文资料 >> Tips Tricks >> 正文
The difference between LOCAL_C and LOCAL_D
作者:佚名    文章来源:不详    更新时间:2006-5-7 11:26:51

LOCAL_C, LOCAL_D, GLREF_C, GLREF_D, GLDEF_C and GLDEF_D are all defined in e32def.h as:


#define GLREF_D extern
#define GLDEF_D
#define LOCAL_D static
#define GLREF_C extern
#define GLDEF_C
#define LOCAL_C static

The _C and _D suffixes are a convention. _D indicates a data declaration, and _C a code one.

So LOCAL_D is used to indicate a static data while LOCAL_C indicates static code.

By contrast, GLREF_C and GLREF_D, by contrast, are used to indicated GLobal REFerences (i.e. extern), and GLDEF_C and GLDEF_D indicate GLobal DEFinitions. These terms don’t have a formal definition but are used as markers for functions or variables which have been declared as GLREF_C or GLREF_D respectively elsewhere.



The original answer comes from the old Symbian support site: http://www2.epocworld.com
相关文章:
Writable Static Data (WSD): Problem Definition and Solutions
The difference between LOCAL_C and LOCAL_D
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号