The flag ATS_STATIC_PREFIX, if set, determines the prefix for the names
of static variables and functions in the C code generated from ATS source.
Say ATS_STATIC_PREFIX is defined as follows in some DATS-file:
#define ATS_STATIC_PREFIX “foo_”
When the DATS-file is compiled into C, the prefix ‘foo__’ is attached to
the original names
of static variables and functions in the generated C code.
This feature can be very useful if one wants to mix the C code generated
from multiple ATS
source files as doing so is likely to result in name conflicts among static
variables and
functions in the C code. Such conflicts can be resolved by properly setting
ATS_STATIC_PREFIX.
The same applies to loading PHP code generated from ATS source.