The difference between LOCAL_C and LOCAL_D
2009-03-06 16:23
501 查看
The difference between LOCAL_C and LOCAL_D
Posted on 18 January 2004 by Eric Bustarret
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.
Posted on 18 January 2004 by Eric Bustarret
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 differences between local and shared object repositories
- What was the difference between LocalAlloc and ...
- What's the difference between “local” and “my” in Perl
- The difference between the 'Local System' account and the 'Network Service' account?
- What is the difference between SLC and MLC?
- What are the difference between DDL, DML and DCL commands?
- The difference between null and DBNull.Value
- What is therelationship between @EJB and ejb-ref/ejb-local-ref?
- What is the difference between application server and web server?
- What’s the difference between Taxonomies and Ontologies? - Ask Dr. Search
- Oracle 11g: The difference between WHERE and HAVING
- the difference between imperative style and functional style
- the differences between transparent, pooled, and cluster tables
- The Difference Between “Add Web Reference” and “Add Service Reference”
- What is the difference between a soft reference and a weak reference in Java?
- what is the difference between json and javascript object.
- What is the difference between DAO and DAL?
- In C++, what’s the difference between an inline function and a macro?
- 转:The Difference Between a LayoutTransform and a RenderTransform