Following global constants are defined:
OpenEuphoria 4.1 running on 64-bit Linux
OpenEuphoria 4.1 running on 32-bit Linux
OpenEuphoria 4.0 running on Linux
always considered as 32-bit even on 64-bit OSes
Euphoria 3.1 running on Linux
always considered as 32-bit even on 64-bit OSes
OpenEuphoria 4.1 running on 64-bit Windows
OpenEuphoria 4.1 running on 32-bit Windows
OpenEuphoria 4.0 running on Windows
always considered as 32-bit even on 64-bit OSes
Euphoria 3.1 running on Windows
always considered as 32-bit even on 64-bit OSes
Following global variables are defined:
One of following constants:
EU_4_1_LNX_64, EU_4_1_LNX_32, EU_4_0_LNX, EU_3_1_LNX,
EU_4_1_WIN_64, EU_4_1_WIN_32, EU_4_0_WIN, EU_3_1_WIN
system architecture detected by _version_.e
* "x86" or "AMD64" on Windows
* "i686" or "x86_64" on Linux
* "unknown" on others OSes
address length for pointers detected by _version_.e
* 4 on 32-bit OSes
* 8 on 64-bit OSes
default debug file handle: defaults to 0 (no_debug)
set f_debug to 1 to debug on standard output
open a file in write text mode "w" and set f_debug to its handle
to debug to a fileex: f_debug = open("debug.log", "w")
if set, log_puts and log_printf will write to debug file
defaults to 1 (write to debug file)
directory where the program is located. Defaults to ".".
Dummy object used when function return value is unusedex: void = change_directory("..")
file path separator
dafults to '\\' on Windows and '/' on Linux
Following global procedures are defined:
puts a sequence in the debug file if open
Params:the message to put in the debug file
log_printf
prints a formatted sequence in the debug file if open
Params:the format of the value to put in the debug file
the value to put in the debug file
log_puts
logs an error
Params:error message to log/display
abort (1) or not (0)
logs an error and displays a warning
then abort if quit is set
if atom(o) then
error_message(sprintf("Unknown option '%d'", {option}), 1)
end if
Following global functions are defined:
extracts an option value form a list of options
Params:name associated to a value
list of pairs {name, value}
object: value associated with specified mane
with_coords = get_option("with_coords", optional, 0)
returns optional value associated with "with_coords" in sequence optional
defaults to 0 if not found
example of a call to the parent function:
o = find_text(buffer, st, en, {
{"with_tags", with_tags},
{"with_coords", 1}
})
returns eu_version as a string
Return:One of following strings:
"EU_4_1_LNX_64", "EU_4_1_LNX_32", "EU_4_0_LNX", "EU_3_1_LNX",
"EU_4_1_WIN_64", "EU_4_1_WIN_32", "EU_4_0_WIN", "EU_3_1_WIN"
printf(1, "eu_version_name() = %s\n", {eu_version_name()})
eu_version_name() = EU_3_1_WIN