|
Lugaru's Epsilon Programmer's Editor 14.04
Context:
|
Epsilon User's Manual and Reference > Epsilon Extension Language > Global Definitionsprogram:global-definition global-definition program global-definition: function-definition global-variable-definition keytable-definition typedef-definition color-class-definition Each file of EEL code consists of a series of definitions for global variables and functions. Global variable definitions have the same format as local variable definitions. The first definition of a global variable Epsilon receives determines the initial value of the variable, and later initializations have no effect, unless you use the volatile keyword when defining the variable (see Initialization). If the first definition provides no explicit
initialization, the variable is filled with zeros or null pointers as
appropriate, depending on its type.
You can declare any global variable (except a key table or color
class) to be buffer-specific by
placing the keyword
Similarly, you can declare any global variable except a key table or
color class to be
window-specific by placing the keyword
Epsilon's write-state command writes a new state
file containing all variables, EEL functions, macros, colors, and so
forth that Epsilon knows about. The file includes the current values
of all numeric variables, all global character array variables, and
any structures or unions containing just these types. But Epsilon
doesn't save the values of variables containing pointers or spots,
and sets these to zero as it writes a state file. You can put the
In commands like set-variable, Epsilon distinguishes between
user variables and system variables, and only shows the former in its
list of variables you can set. By default, each global variable you
define is a system variable that users will not see. Put the
|