class C_PRETTY_PRINTER
Summary
Overview
Creation features
Exported features
Code generators
C-related type properties
Set of features to bufferize the next C function to be generated:
Low-level set of feature to be used when one cannot use the pending_c_function mode, i.e. when one is not defining some code inside some C function:
Printing Current, local or argument :
header_pass_0: C_HEADER_PASS_0
writable attribute
header_pass_1: C_HEADER_PASS_1
writable attribute
header_pass_2: C_HEADER_PASS_2
writable attribute
header_pass_3: C_HEADER_PASS_3
writable attribute
header_pass_4: C_HEADER_PASS_4
writable attribute
live_type_compiler: C_LIVE_TYPE_COMPILER
writable attribute
mapper: C_MAPPER
writable attribute
initializer: C_INITIALIZER
writable attribute
target_mapper: C_TARGET_MAPPER
writable attribute
arg_mapper: C_ARG_MAPPER
writable attribute
code_compiler: C_CODE_COMPILER
writable attribute
compound_expression_compiler: C_COMPOUND_EXPRESSION_COMPILER
writable attribute
writable attribute
native_function_mapper: C_NATIVE_FUNCTION_MAPPER
writable attribute
native_procedure_mapper: C_NATIVE_PROCEDURE_MAPPER
writable attribute
native_c_definition: C_NATIVE_C_DEFINITION
writable attribute
introspection_function: C_INTROSPECTION_FUNCTION
writable attribute
introspection_display: C_INTROSPECTION_DISPLAY
writable attribute
target_type: C_TYPE_FOR_TARGET
writable attribute
result_type: C_TYPE_FOR_RESULT
writable attribute
external_type: C_TYPE_FOR_EXTERNAL
writable attribute
argument_type: C_TYPE_FOR_ARGUMENT
writable attribute
va_arg_type: C_TYPE_FOR_VA_ARG
writable attribute
need_struct: C_NEED_STRUCT
writable attribute
native_need_wrapper: C_NATIVE_NEED_WRAPPER
writable attribute
pending_c_function: BOOLEAN
writable attribute
Indicates that a new C function is being prepared.
has_closures: BOOLEAN
writable attribute
Indicates that the new C function creates closures (locals are not generated in the same way)
pending_c_function_signature: STRING
once function
The signature of the pending_c_function being prepared.
pending_c_function_body: STRING
once function
The body of the pending_c_function being prepared.
pending_c_function_counter: INTEGER_32
writable attribute
Changed each time a new pending_c_function is generated.
prepare_c_function
effective procedure
Start the preparation of the next C function.
dump_pending_c_function (shared: BOOLEAN)
effective procedure
Actually dump the pending_c_function on out_h / out_c.
pending_c_function_lock_local (type: TYPE, tag: STRING): INTERNAL_C_LOCAL
effective function
Reuse some un-locked variable of the pending_c_function_locals or add/create a new one.
out_h_buffer: STRING
once function
Common buffer to write on the *.h file.
write_out_h_buffer
effective procedure
Actually write the out_h_buffer.
out_c_buffer: STRING
once function
Common buffer to write on the *.c file.
write_out_c_buffer
effective procedure
Actually write the out_c_buffer.
prepare_memory
effective procedure
write_extern_0 (type_variable: STRING)
effective procedure
write_extern_1 (type_variable: STRING)
effective procedure
write_extern_2 (type_variable: STRING, init: STRING)
effective procedure
write_extern_array_1 (type_variable: STRING, array_size: INTEGER_32, array_content: STRING)
effective procedure
write_extern_array_2 (type_variable: STRING, array_size: INTEGER_32)
effective procedure
put_position (p: POSITION)
effective procedure
put_position_in_ds (p: POSITION)
effective procedure
put_target_as_target (target_formal_type: TYPE)
effective procedure
Produce C code to pass the current stacked target as a target of a new call: user expanded are passed by address and class invariant code is produced.
put_target_as_value
effective procedure
Produce C code for a simple access to the stacked target.
put_error0 (msg: STRING)
effective procedure
Print msg and then stop execution.
put_position_comment (p: POSITION)
effective procedure
define_main (rf3: RUN_FEATURE_3)
effective procedure
put_arguments (arguments_count: INTEGER_32)
effective procedure
Produce code to access to the whole effective arguments list.
put_ith_argument (index: INTEGER_32)
effective procedure
Produce code to access to the ith argument.
print_current
effective procedure
print_argument (rank: INTEGER_32)
effective procedure
print_local (name: STRING)
effective procedure
class_invariant_call_opening (type_of_target: TYPE, extra_cast_flag: BOOLEAN): INTEGER_32
effective function
Add extra code to call the class invariant when type_of_target actually has an invariant.
class_invariant_call_closing (integer_flag: INTEGER_32, semicolon_flag: BOOLEAN)
effective procedure
macro_def (str: STRING, id: INTEGER_32)
effective procedure
put_direct (type: TYPE, dynamic_feature: RUN_FEATURE, target: EXPRESSION, arguments: EFFECTIVE_ARG_LIST)
effective procedure
sys_runtime_h_and_c (name: STRING)
effective procedure
Inline corresponding SmartEiffel/sys/runtime/name.[hc] file.
include_register (origin: POSITION, include_name: STRING)
effective procedure
set_dump_stack_top_for (t: TYPE, ds: STRING, comment: STRING)
effective procedure
add_include (include: STRING)
effective procedure
incr_real_procedure_count
effective procedure
incr_procedure_count
effective procedure
incr_real_function_count
effective procedure
incr_function_count
effective procedure
incr_precursor_routine_count
effective procedure
pop
effective procedure
smart_eiffel: SMART_EIFFEL
frozen
once function
eiffel_parser: EIFFEL_PARSER
frozen
once function
ace: ACE
frozen
once function
ini_parser: INI_PARSER
frozen
once function
plugin_config: INI_PARSER
frozen
once function
error_handler: ERROR_HANDLER
frozen
once function
string_aliaser: STRING_ALIASER
frozen
once function
cpp: C_PRETTY_PRINTER
frozen
once function
pretty_printer: PRETTY_PRINTER
frozen
once function
mini_buffer: MINI_BUFFER
frozen
once function
nb_errors: INTEGER_32
effective function
system_tools: SYSTEM_TOOLS
frozen
once function
introspection_handler: INTROSPECTION_HANDLER
frozen
once function
assignment_test_pool: ASSIGNMENT_TEST_POOL
frozen
once function
precomputable_routine_detector: PRECOMPUTABLE_ROUTINE_DETECTOR
frozen
once function
feature_accumulator: FEATURE_ACCUMULATOR
frozen
once function
live_type_extra_collectors: FAST_ARRAY[LIVE_TYPE_EXTRA_COLLECTOR]
frozen
once function
id_provider: ID_PROVIDER
frozen
once function
manifest_string_pool: MANIFEST_STRING_POOL
frozen
once function
manifest_generic_pool: MANIFEST_GENERIC_POOL
frozen
once function
once_routine_pool: ONCE_ROUTINE_POOL
frozen
once function
agent_pool: AGENT_POOL
frozen
once function
cecil_pool: CECIL_POOL
frozen
effective function
cecil_pool_memory: REFERENCE[CECIL_POOL]
frozen
once function
set_cecil_pool
frozen
once procedure
short_printer: SHORT_PRINTER
frozen
once function
echo: ECHO
frozen
once function
assignment_handler: ASSIGNMENT_HANDLER
frozen
once function
thread_pool: THREAD_POOL
frozen
once function
exceptions: EXCEPTIONS
frozen
writable attribute
exceptions_handler: EXCEPTIONS_HANDLER
frozen
once function
nb_warnings: INTEGER_32
effective function
tmp_path: STRING
once function
tmp_file_read: TEXT_FILE_READ
once function
class_any: CLASS_TEXT
once function
omitted_client_list: CLIENT_LIST
frozen
once function
(To avoid multiple creation(s).)
any_default_create_fs: FEATURE_STAMP
once function
any_default_rescue_fs: FEATURE_STAMP
once function
any_copy_fs: FEATURE_STAMP
once function
any_is_equal_fs: FEATURE_STAMP
once function
any_deep_twin_fs: FEATURE_STAMP
once function
any_is_deep_equal_fs: FEATURE_STAMP
once function
boolean_and_then_fs: FEATURE_STAMP
once function
manifest_make_name: HASHED_STRING
once function
manifest_put_name: HASHED_STRING
once function
manifest_semicolon_check_name: HASHED_STRING
once function
manifest_initialize_name: HASHED_STRING
once function
calloc_name: HASHED_STRING
once function
put_name: HASHED_STRING
once function
item_name: HASHED_STRING
once function
is_empty_name: HASHED_STRING
once function
make_name: HASHED_STRING
once function
from_external_sized_copy_name: HASHED_STRING
once function
count_name: HASHED_STRING
once function
storage_name: HASHED_STRING
once function
capacity_name: HASHED_STRING
once function
storage_lower_name: HASHED_STRING
once function
mark_item_name: HASHED_STRING
once function
mark_native_arrays_name: HASHED_STRING
once function
and_then_name: HASHED_STRING
once function
or_else_name: HASHED_STRING
once function
twin_name: HASHED_STRING
once function
copy_name: HASHED_STRING
once function
is_equal_name: HASHED_STRING
once function
deep_twin_name: HASHED_STRING
once function
deep_twin_from_name: HASHED_STRING
once function
is_deep_equal_name: HASHED_STRING
once function
deep_memcmp_name: HASHED_STRING
once function
se_atexit_name: HASHED_STRING
once function
default_rescue_name: HASHED_STRING
once function
default_create_name: HASHED_STRING
once function
flush_name: HASHED_STRING
once function
clear_all_name: HASHED_STRING
once function
from_pointer_name: HASHED_STRING
once function
no_errors: BOOLEAN
effective function
character_coding (c: CHARACTER, str: STRING)
effective procedure
Append in str the Eiffel coding of the character (Table in chapter 25 of ETL, page 423).%%%%%%%%
eiffel_suffix: STRING
is ".e"
constant attribute
Eiffel Source file suffix.
c_suffix: STRING
is ".c"
constant attribute
C files suffix.
h_suffix: STRING
is ".h"
constant attribute
Heading C files suffix.
c_plus_plus_suffix: STRING
is ".cpp"
constant attribute
C++ files suffix.
backup_suffix: STRING
is ".bak"
constant attribute
Backup suffix for command pretty.
class_suffix: STRING
is ".class"
constant attribute
dot_precedence: INTEGER_32
is 12
constant attribute
The highest precedence value according to ETL.
atomic_precedence: INTEGER_32
is 13
constant attribute
Used for atomic elements.
append_u1 (str: STRING, u1: INTEGER_32)
effective procedure
append_u2 (str: STRING, u2: INTEGER_32)
effective procedure
append_u4 (str: STRING, u4: INTEGER_32)
effective procedure
is_install: BOOLEAN
effective function
set_install
effective procedure
install_memory: REFERENCE[BOOLEAN]
once function
unrelated_code: INTEGER_8
is 0
constant attribute
inserts_code: INTEGER_8
is 1
constant attribute
inherits_code: INTEGER_8
is 2
constant attribute
once function