mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
The LPC compiler needs to differentiate between global identifiers that are for the current program only (lfuns, global variables, structs), and identifiers that are driver-global (efuns, simul-efuns). The former need to be removed after compilation, the latter only cleaned. The handling of this was spread throughout the code and done in different ways, and sometimes not done at all (eg. for struct definitions).
6 lines
190 B
C
6 lines
190 B
C
/* Check that the struct definition from test.c didn't persist.
|
|
* This would conflict with the following definition.
|
|
*/
|
|
struct sefunF001 { int i;};
|
|
|
|
struct sefunF001 x = (<sefunF001> 42);
|