Edit

kc3-lang/kc3/misc/sizes.c

Branch :

  • misc/sizes.c
  • #include <stdio.h>
    #include "libkc3/types.h"
    
    int main() {
        printf("s_arg: %zu\n", sizeof(s_arg));
        printf("s_array: %zu\n", sizeof(s_array));
        printf("s_array_dimension: %zu\n", sizeof(s_array_dimension));
        printf("s_binding: %zu\n", sizeof(s_binding));
        printf("s_block: %zu\n", sizeof(s_block));
        printf("s_buf: %zu\n", sizeof(s_buf));
        printf("s_buf_fd: %zu\n", sizeof(s_buf_fd));
        printf("s_buf_rw: %zu\n", sizeof(s_buf_rw));
        printf("s_buf_save: %zu\n", sizeof(s_buf_save));
        printf("s_call: %zu\n", sizeof(s_call));
        printf("s_callable: %zu\n", sizeof(s_callable));
        printf("s_cfn: %zu\n", sizeof(s_cfn));
        printf("s_complex: %zu\n", sizeof(s_complex));
        printf("s_counter: %zu\n", sizeof(s_counter));
        printf("s_cow: %zu\n", sizeof(s_cow));
        printf("s_do_block: %zu\n", sizeof(s_do_block));
        printf("s_env: %zu\n", sizeof(s_env));
        printf("s_error_handler: %zu\n", sizeof(s_error_handler));
        printf("s_fact: %zu\n", sizeof(s_fact));
        printf("s_fact_action: %zu\n", sizeof(s_fact_action));
        printf("s_fact_list: %zu\n", sizeof(s_fact_list));
        printf("s_fact_w: %zu\n", sizeof(s_fact_w));
        printf("s_facts: %zu\n", sizeof(s_facts));
        printf("s_facts_acceptor: %zu\n", sizeof(s_facts_acceptor));
        printf("s_facts_connection: %zu\n", sizeof(s_facts_connection));
        printf("s_facts_cursor: %zu\n", sizeof(s_facts_cursor));
        printf("s_facts_log_item: %zu\n", sizeof(s_facts_log_item));
        printf("s_facts_remove_log: %zu\n", sizeof(s_facts_remove_log));
        printf("s_facts_spec_cursor: %zu\n", sizeof(s_facts_spec_cursor));
        printf("s_facts_transaction: %zu\n", sizeof(s_facts_transaction));
        printf("s_facts_with_cursor: %zu\n", sizeof(s_facts_with_cursor));
        printf("s_facts_with_cursor_level: %zu\n", sizeof(s_facts_with_cursor_level));
        printf("s_file_stat: %zu\n", sizeof(s_file_stat));
        printf("s_fn: %zu\n", sizeof(s_fn));
        printf("s_fn_clause: %zu\n", sizeof(s_fn_clause));
        printf("s_frame: %zu\n", sizeof(s_frame));
        printf("s_ht: %zu\n", sizeof(s_ht));
        printf("s_ht_iterator: %zu\n", sizeof(s_ht_iterator));
        printf("s_ident: %zu\n", sizeof(s_ident));
        printf("s_integer: %zu\n", sizeof(s_integer));
        printf("s_list: %zu\n", sizeof(s_list));
        printf("s_log: %zu\n", sizeof(s_log));
        printf("s_log_hook: %zu\n", sizeof(s_log_hook));
        printf("s_loop_context: %zu\n", sizeof(s_loop_context));
        printf("s_map: %zu\n", sizeof(s_map));
        printf("s_marshall: %zu\n", sizeof(s_marshall));
        printf("s_marshall_header: %zu\n", sizeof(s_marshall_header));
        printf("s_marshall_read: %zu\n", sizeof(s_marshall_read));
        printf("s_memleak: %zu\n", sizeof(s_memleak));
        printf("s_mutex: %zu\n", sizeof(s_mutex));
        printf("s_op: %zu\n", sizeof(s_op));
        printf("s_ops: %zu\n", sizeof(s_ops));
        printf("s_pointer: %zu\n", sizeof(s_pointer));
        printf("s_pretty: %zu\n", sizeof(s_pretty));
        printf("s_pretty_save: %zu\n", sizeof(s_pretty_save));
        printf("s_queue: %zu\n", sizeof(s_queue));
        printf("s_quote: %zu\n", sizeof(s_quote));
        printf("s_ratio: %zu\n", sizeof(s_ratio));
        printf("s_rpc_response: %zu\n", sizeof(s_rpc_response));
        printf("s_rwlock: %zu\n", sizeof(s_rwlock));
        printf("s_sequence: %zu\n", sizeof(s_sequence));
        printf("s_sha1: %zu\n", sizeof(s_sha1));
        printf("s_sha2: %zu\n", sizeof(s_sha2));
        printf("s_sha512: %zu\n", sizeof(s_sha512));
        printf("s_socket_buf: %zu\n", sizeof(s_socket_buf));
        printf("s_str: %zu\n", sizeof(s_str));
        printf("s_struct: %zu\n", sizeof(s_struct));
        printf("s_struct_type: %zu\n", sizeof(s_struct_type));
        printf("s_sym: %zu\n", sizeof(s_sym));
        printf("s_sym_list: %zu\n", sizeof(s_sym_list));
        printf("s_tag: %zu\n", sizeof(s_tag));
        printf("s_tag_type_list: %zu\n", sizeof(s_tag_type_list));
        printf("s_time: %zu\n", sizeof(s_time));
        printf("s_tls_buf: %zu\n", sizeof(s_tls_buf));
        printf("s_tls_client: %zu\n", sizeof(s_tls_client));
        printf("s_tls_server: %zu\n", sizeof(s_tls_server));
        printf("s_tuple: %zu\n", sizeof(s_tuple));
        printf("s_type: %zu\n", sizeof(s_type));
        printf("s_unquote: %zu\n", sizeof(s_unquote));
        printf("s_unwind_protect: %zu\n", sizeof(s_unwind_protect));
        printf("s_var: %zu\n", sizeof(s_var));
        printf("u_callable_data: %zu\n", sizeof(u_callable_data));
        printf("u_ptr: %zu\n", sizeof(u_ptr));
        printf("u_ptr_w: %zu\n", sizeof(u_ptr_w));
        printf("u_tag_data: %zu\n", sizeof(u_tag_data));
        printf("s_do_block: %zu\n", sizeof(s_do_block));
        printf("s_log: %zu\n", sizeof(s_log));
        printf("s_error_handler: %zu\n", sizeof(s_error_handler));
        printf("s_facts_connection: %zu\n", sizeof(s_facts_connection));
        return 0;
    }