What limitations are imposed when a C module
- instantiates its own core
struct
(as a singleton) and user code accesses this usingextern
VS.
- has user code instantiate the singleton
struct
instead
?
For example, one limitation of the former is that the user cannot choose the allocation method.
EDIT The reason for the question is that I have hit some walls with approach no. 1 in the past (C language limitations) but have now forgotten what they were!