elonmusk 1.0.53 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +14 -9
- data/PP.rb +217 -66
- data/README +1 -1
- data/README.md +76 -117
- data/SONG +156 -0
- data/UCA_cli +0 -0
- data/ULTIMATE_CHAT_APPLICATION.exe +0 -0
- data/ULTIMATE_CHAT_APPLICATION_(LINUX) +0 -0
- data/VERSION_NUMBER +1 -1
- data/bin/DISCOURSE_GENERATOR.exe +0 -0
- data/bin/UCA_cli +0 -0
- data/bin/ULTIMATE_CHAT_APPLICATION.exe +0 -0
- data/bin/ULTIMATE_CHAT_APPLICATION_(LINUX) +0 -0
- data/bin/abs +0 -0
- data/bin/add +0 -0
- data/bin/append +0 -0
- data/bin/args +0 -0
- data/bin/black +0 -0
- data/bin/black_bold +0 -0
- data/bin/black_bold_underline +0 -0
- data/bin/black_underline +0 -0
- data/bin/blue +0 -0
- data/bin/blue_bold +0 -0
- data/bin/blue_bold_underline +0 -0
- data/bin/blue_underline +0 -0
- data/bin/bold +0 -0
- data/bin/clock +0 -0
- data/bin/copy +0 -0
- data/bin/cyan +0 -0
- data/bin/cyan_bold +0 -0
- data/bin/cyan_bold_underline +0 -0
- data/bin/cyan_underline +0 -0
- data/bin/div +0 -0
- data/bin/dump +0 -0
- data/bin/exp +0 -0
- data/bin/floor +0 -0
- data/bin/green +0 -0
- data/bin/green_bold +0 -0
- data/bin/green_bold_underline +0 -0
- data/bin/green_underline +0 -0
- data/bin/gsub +0 -0
- data/bin/gsubip +0 -0
- data/bin/lines +0 -0
- data/bin/magenta +0 -0
- data/bin/magenta_bold +0 -0
- data/bin/magenta_bold_underline +0 -0
- data/bin/magenta_underline +0 -0
- data/bin/mul +0 -0
- data/bin/news +0 -0
- data/bin/nth +0 -0
- data/bin/prepend +0 -0
- data/bin/red +0 -0
- data/bin/red_bold +0 -0
- data/bin/red_bold_underline +0 -0
- data/bin/red_underline +0 -0
- data/bin/rgsub +0 -0
- data/bin/rip +0 -0
- data/bin/rnip +0 -0
- data/bin/selectlines +0 -0
- data/bin/sub +0 -0
- data/bin/swap +0 -0
- data/bin/underline +0 -0
- data/bin/undump +0 -0
- data/bin/white +0 -0
- data/bin/white_bold +0 -0
- data/bin/white_bold_underline +0 -0
- data/bin/white_underline +0 -0
- data/bin/yellow +0 -0
- data/bin/yellow_bold +0 -0
- data/bin/yellow_bold_underline +0 -0
- data/bin/yellow_underline +0 -0
- data/documentation/doc.rb +1 -1
- data/documentation/gsubip +2 -12
- data/documentation/page +61 -54
- data/documentation/rgsub +22 -1
- data/documentation/t +4 -0
- data/gem_data/README +10 -0
- data/gem_data/VERSION_NUMBER +1 -0
- data/gem_data/democracy.gemspec +12 -0
- data/gem_data/push +14 -0
- data/gem_data/version_decrement +1 -0
- data/images/1.png +0 -0
- data/index.html +104 -110
- data/install.sh +4 -3
- data/non_compiled_programs/find_housing +15 -39
- data/other/discourse_generator_desktop_widget/a.sh +18 -0
- data/other/experimental_code/merge +7 -0
- data/other/old_compiler/my_make/my_make.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/append_mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/je_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/output_short_branch_instruction.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/linked_list.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_char.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/program.sl +1 -1
- data/other/old_compiler/shiltiumcomp58/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp58/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp58/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp58/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/append_mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/je_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/output_short_branch_instruction.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/linked_list.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_char.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/program.sl +1 -1
- data/other/old_compiler/shiltiumcomp59/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp59/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp59/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp59/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp76/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp76/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp76/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp76/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp78/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp78/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp78/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp78/ui.cpp +1 -1
- data/other/upload.rb +27 -0
- data/output_data +2 -2
- data/physics +5 -7
- data/push +1 -1
- data/src/- +1 -0
- data/src/--file +0 -0
- data/src/clock +0 -0
- data/src/color_tools/black +0 -0
- data/src/color_tools/black.c +78 -0
- data/src/color_tools/black_bold +0 -0
- data/src/color_tools/black_bold.c +78 -0
- data/src/color_tools/black_bold_underline +0 -0
- data/src/color_tools/black_bold_underline.c +78 -0
- data/src/color_tools/black_underline +0 -0
- data/src/color_tools/black_underline.c +78 -0
- data/src/color_tools/blue +0 -0
- data/src/color_tools/blue.c +78 -0
- data/src/color_tools/blue_bold +0 -0
- data/src/color_tools/blue_bold.c +78 -0
- data/src/color_tools/blue_bold_underline +0 -0
- data/src/color_tools/blue_bold_underline.c +78 -0
- data/src/color_tools/blue_underline +0 -0
- data/src/color_tools/blue_underline.c +78 -0
- data/src/color_tools/bold +0 -0
- data/src/color_tools/bold.c +78 -0
- data/src/color_tools/colors.rb +192 -0
- data/src/color_tools/cyan +0 -0
- data/src/color_tools/cyan.c +78 -0
- data/src/color_tools/cyan_bold +0 -0
- data/src/color_tools/cyan_bold.c +78 -0
- data/src/color_tools/cyan_bold_underline +0 -0
- data/src/color_tools/cyan_bold_underline.c +78 -0
- data/src/color_tools/cyan_underline +0 -0
- data/src/color_tools/cyan_underline.c +78 -0
- data/src/color_tools/green +0 -0
- data/src/color_tools/green.c +78 -0
- data/src/color_tools/green_bold +0 -0
- data/src/color_tools/green_bold.c +78 -0
- data/src/color_tools/green_bold_underline +0 -0
- data/src/color_tools/green_bold_underline.c +78 -0
- data/src/color_tools/green_underline +0 -0
- data/src/color_tools/green_underline.c +78 -0
- data/src/color_tools/magenta +0 -0
- data/src/color_tools/magenta.c +78 -0
- data/src/color_tools/magenta_bold +0 -0
- data/src/color_tools/magenta_bold.c +78 -0
- data/src/color_tools/magenta_bold_underline +0 -0
- data/src/color_tools/magenta_bold_underline.c +78 -0
- data/src/color_tools/magenta_underline +0 -0
- data/src/color_tools/magenta_underline.c +78 -0
- data/src/color_tools/red +0 -0
- data/src/color_tools/red.c +78 -0
- data/src/color_tools/red_bold +0 -0
- data/src/color_tools/red_bold.c +78 -0
- data/src/color_tools/red_bold_underline +0 -0
- data/src/color_tools/red_bold_underline.c +78 -0
- data/src/color_tools/red_underline +0 -0
- data/src/color_tools/red_underline.c +78 -0
- data/src/color_tools/underline +0 -0
- data/src/color_tools/underline.c +78 -0
- data/src/color_tools/white +0 -0
- data/src/color_tools/white.c +78 -0
- data/src/color_tools/white_bold +0 -0
- data/src/color_tools/white_bold.c +78 -0
- data/src/color_tools/white_bold_underline +0 -0
- data/src/color_tools/white_bold_underline.c +78 -0
- data/src/color_tools/white_underline +0 -0
- data/src/color_tools/white_underline.c +78 -0
- data/src/color_tools/yellow +0 -0
- data/src/color_tools/yellow.c +78 -0
- data/src/color_tools/yellow_bold +0 -0
- data/src/color_tools/yellow_bold.c +78 -0
- data/src/color_tools/yellow_bold_underline +0 -0
- data/src/color_tools/yellow_bold_underline.c +78 -0
- data/src/color_tools/yellow_underline +0 -0
- data/src/color_tools/yellow_underline.c +78 -0
- data/src/compilation/abs +286 -0
- data/src/compilation/add +286 -0
- data/src/compilation/append +286 -0
- data/src/compilation/args +286 -0
- data/src/compilation/copy +286 -0
- data/src/compilation/div +286 -0
- data/src/compilation/dump +286 -0
- data/src/compilation/exp +286 -0
- data/src/compilation/floor +286 -0
- data/src/compilation/gsub +286 -0
- data/src/compilation/gsubip +286 -0
- data/src/compilation/last_nth +286 -0
- data/src/compilation/lines +286 -0
- data/src/compilation/mul +286 -0
- data/src/compilation/nth +286 -0
- data/src/compilation/prepend +286 -0
- data/src/compilation/rip +286 -0
- data/src/compilation/rnip +286 -0
- data/src/compilation/selectlines +286 -0
- data/src/compilation/sub +286 -0
- data/src/compilation/swap +286 -0
- data/src/compilation/undump +286 -0
- data/src/compile_all +36 -0
- data/src/gsubip +0 -0
- data/src/news +0 -0
- data/src/programs/abs +0 -0
- data/src/programs/add +0 -0
- data/src/programs/append +0 -0
- data/src/programs/args +0 -0
- data/src/programs/copy +0 -0
- data/src/programs/div +0 -0
- data/src/programs/dump +0 -0
- data/src/programs/exp +0 -0
- data/src/programs/floor +0 -0
- data/src/programs/gsub +0 -0
- data/src/programs/gsubip +0 -0
- data/src/programs/last_nth +0 -0
- data/src/programs/lines +0 -0
- data/src/programs/mul +0 -0
- data/src/programs/news +0 -0
- data/src/programs/nth +0 -0
- data/src/programs/prepend +0 -0
- data/src/programs/rip +0 -0
- data/src/programs/rnip +0 -0
- data/src/programs/selectlines +0 -0
- data/src/programs/sub +0 -0
- data/src/programs/swap +0 -0
- data/src/programs/undump +0 -0
- data/src/rgsub +0 -0
- data/src/rgsub.c +404 -0
- data/src/src/code2 +57 -0
- data/src/src/functions.cr +274 -0
- data/src/src/mk +43 -0
- data/src/test/cat +0 -0
- data/src/test/foo/dog +0 -0
- data/thoughts_on_SIMULATIONS +149 -1
- metadata +172 -114
- data/NOTE +0 -2
- data/YOUTUBE_CHANNEL +0 -1
- data/bin/YOUTUBE_CHANNEL.txt +0 -1
- data/bin/communicate +0 -88
- data/bin/executable +0 -1
- data/bin/foreach +0 -71
- data/documentation/communicate +0 -18
- data/documentation/executable +0 -1
- data/documentation/foreach +0 -24
- data/documentation/inspire +0 -12
- data/documentation/quotes +0 -2
- data/documentation/translate +0 -23
- data/non_compiled_programs/YOUTUBE_CHANNEL.txt +0 -1
- data/non_compiled_programs/communicate +0 -88
- data/non_compiled_programs/executable +0 -1
- data/non_compiled_programs/foreach +0 -71
- data/other/dg_desktop_widget/a.sh +0 -7
- data/source_code/compile_all +0 -15
- data/source_code/programs/abs +0 -0
- data/source_code/programs/add +0 -0
- data/source_code/programs/append +0 -0
- data/source_code/programs/args +0 -0
- data/source_code/programs/black +0 -0
- data/source_code/programs/black_bold +0 -0
- data/source_code/programs/black_bold_underline +0 -0
- data/source_code/programs/black_underline +0 -0
- data/source_code/programs/blue +0 -0
- data/source_code/programs/blue_bold +0 -0
- data/source_code/programs/blue_bold_underline +0 -0
- data/source_code/programs/blue_underline +0 -0
- data/source_code/programs/bold +0 -0
- data/source_code/programs/copy +0 -0
- data/source_code/programs/cyan +0 -0
- data/source_code/programs/cyan_bold +0 -0
- data/source_code/programs/cyan_bold_underline +0 -0
- data/source_code/programs/cyan_underline +0 -0
- data/source_code/programs/div +0 -0
- data/source_code/programs/dump +0 -0
- data/source_code/programs/exp +0 -0
- data/source_code/programs/floor +0 -0
- data/source_code/programs/green +0 -0
- data/source_code/programs/green_bold +0 -0
- data/source_code/programs/green_bold_underline +0 -0
- data/source_code/programs/green_underline +0 -0
- data/source_code/programs/gsub +0 -0
- data/source_code/programs/gsubip +0 -0
- data/source_code/programs/last_nth +0 -0
- data/source_code/programs/lines +0 -0
- data/source_code/programs/magenta +0 -0
- data/source_code/programs/magenta_bold +0 -0
- data/source_code/programs/magenta_bold_underline +0 -0
- data/source_code/programs/magenta_underline +0 -0
- data/source_code/programs/mul +0 -0
- data/source_code/programs/nth +0 -0
- data/source_code/programs/prepend +0 -0
- data/source_code/programs/red +0 -0
- data/source_code/programs/red_bold +0 -0
- data/source_code/programs/red_bold_underline +0 -0
- data/source_code/programs/red_underline +0 -0
- data/source_code/programs/rgsub +0 -0
- data/source_code/programs/rip +0 -0
- data/source_code/programs/rnip +0 -0
- data/source_code/programs/selectlines +0 -0
- data/source_code/programs/sub +0 -0
- data/source_code/programs/swap +0 -0
- data/source_code/programs/underline +0 -0
- data/source_code/programs/undump +0 -0
- data/source_code/programs/white +0 -0
- data/source_code/programs/white_bold +0 -0
- data/source_code/programs/white_bold_underline +0 -0
- data/source_code/programs/white_underline +0 -0
- data/source_code/programs/yellow +0 -0
- data/source_code/programs/yellow_bold +0 -0
- data/source_code/programs/yellow_bold_underline +0 -0
- data/source_code/programs/yellow_underline +0 -0
- data/source_code/source_code/code +0 -1
- data/source_code/source_code/functions.cr +0 -1074
- data/source_code/source_code/mk +0 -66
- /data/documentation/{DISCOURSE_GENERATOR → DISCOURSE_GENERATOR.exe} +0 -0
- /data/documentation/{ULTIMATE_CHAT_APPLICATION → ULTIMATE_CHAT_APPLICATION.exe} +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/.qmake.stash +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/a.cpp +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/a.out +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/dep_win +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/prog +0 -0
- /data/other/{github_project → semantic_metadata}/AI +0 -0
- /data/other/{github_project → semantic_metadata}/APIS +0 -0
- /data/other/{github_project → semantic_metadata}/Dwn_dot_sh +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_keys +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_length_of_keys +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_values +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/dddddddddd +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/json +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/keys_GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/upwards.rb +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/values_GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/LICENSE +0 -0
- /data/other/{github_project → semantic_metadata}/description +0 -0
- /data/other/{github_project → semantic_metadata}/hash +0 -0
- /data/other/{github_project → semantic_metadata}/hash.d +0 -0
- /data/other/{github_project → semantic_metadata}/program.cr +0 -0
- /data/other/{github_project → semantic_metadata}/program.rb +0 -0
- /data/other/{github_project → semantic_metadata}/programold +0 -0
- /data/other/{github_project → semantic_metadata}/run.sh +0 -0
- /data/{source_code → src}/clock.cr +0 -0
- /data/{source_code → src}/news.cr +0 -0
- /data/{source_code/source_code → src/src}/Makefile +0 -0
- /data/{source_code/source_code → src/src}/QQ +0 -0
- /data/{source_code/source_code → src/src}/format_so_it_works +0 -0
data/src/rgsub.c
ADDED
@@ -0,0 +1,404 @@
|
|
1
|
+
#include <libgen.h>
|
2
|
+
|
3
|
+
#include <dirent.h>
|
4
|
+
#include <limits.h>
|
5
|
+
#include <stdbool.h>
|
6
|
+
#include <stdio.h>
|
7
|
+
#include <stdlib.h>
|
8
|
+
#include <string.h>
|
9
|
+
#include <sys/stat.h>
|
10
|
+
|
11
|
+
#define print(s) fputs((s), stdout)
|
12
|
+
#ifdef __cplusplus
|
13
|
+
#define restrict __restrict__
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#if __GNUC__
|
17
|
+
#define likely(x) __builtin_expect(!!(x), true)
|
18
|
+
#define unlikely(x) __builtin_expect(!!(x), false)
|
19
|
+
#else
|
20
|
+
#define likely(x) (x)
|
21
|
+
#define unlikely(x) (x)
|
22
|
+
#endif
|
23
|
+
|
24
|
+
static bool rename_mode = false;
|
25
|
+
static const char *prog_name = NULL;
|
26
|
+
static bool verbose_mode = false;
|
27
|
+
static size_t len1 = 0, len2 = 0;
|
28
|
+
|
29
|
+
static void err() {
|
30
|
+
perror("Error");
|
31
|
+
exit(1);
|
32
|
+
}
|
33
|
+
|
34
|
+
static bool is_valid_utf8(const char *str, size_t len) {
|
35
|
+
size_t i = 0;
|
36
|
+
|
37
|
+
while (i < len) {
|
38
|
+
if ((str[i] & 0x80) == 0) {
|
39
|
+
// ASCII character (0xxxxxxx)
|
40
|
+
i++;
|
41
|
+
} else if ((str[i] & 0xE0) == 0xC0) {
|
42
|
+
// 2-byte UTF-8 character (110xxxxx)
|
43
|
+
if (i + 1 >= len || (str[i + 1] & 0xC0) != 0x80)
|
44
|
+
return 0;
|
45
|
+
i += 2;
|
46
|
+
} else if ((str[i] & 0xF0) == 0xE0) {
|
47
|
+
// 3-byte UTF-8 character (1110xxxx)
|
48
|
+
if (i + 2 >= len || (str[i + 1] & 0xC0) != 0x80 ||
|
49
|
+
(str[i + 2] & 0xC0) != 0x80)
|
50
|
+
return 0;
|
51
|
+
i += 3;
|
52
|
+
} else if ((str[i] & 0xF8) == 0xF0) {
|
53
|
+
// 4-byte UTF-8 character (11110xxx)
|
54
|
+
if (i + 3 >= len || (str[i + 1] & 0xC0) != 0x80 ||
|
55
|
+
(str[i + 2] & 0xC0) != 0x80 || (str[i + 3] & 0xC0) != 0x80)
|
56
|
+
return 0;
|
57
|
+
i += 4;
|
58
|
+
} else {
|
59
|
+
// Invalid UTF-8 encoding
|
60
|
+
return false;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
return true;
|
65
|
+
}
|
66
|
+
|
67
|
+
static void string_replace(const char *source, const char *find,
|
68
|
+
const char *replace, size_t source_len,
|
69
|
+
size_t find_len, size_t replace_len, bool *use_orig,
|
70
|
+
size_t *num_matches, char **new_text) {
|
71
|
+
size_t matches = 0;
|
72
|
+
|
73
|
+
// Count the occurrences of 'find' in 'source'
|
74
|
+
const char *p = source;
|
75
|
+
while ((p = strstr(p, find)) != NULL) {
|
76
|
+
++matches;
|
77
|
+
p += find_len;
|
78
|
+
}
|
79
|
+
|
80
|
+
if (!num_matches) {
|
81
|
+
*use_orig = true;
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
*use_orig = false;
|
85
|
+
*num_matches = matches;
|
86
|
+
|
87
|
+
// Calculate the final length of the replaced string
|
88
|
+
size_t final_len = source_len + matches * (replace_len - find_len);
|
89
|
+
|
90
|
+
// Allocate memory for the replaced string
|
91
|
+
char *result = (char *)malloc(final_len + 1);
|
92
|
+
|
93
|
+
*new_text = result;
|
94
|
+
if (unlikely(result == NULL)) {
|
95
|
+
err();
|
96
|
+
}
|
97
|
+
|
98
|
+
// Perform the replacement
|
99
|
+
char *rp = result;
|
100
|
+
p = source;
|
101
|
+
while ((p = strstr(p, find)) != NULL) {
|
102
|
+
size_t prefix_len = p - source;
|
103
|
+
memcpy(rp, source, prefix_len);
|
104
|
+
rp += prefix_len;
|
105
|
+
memcpy(rp, replace, replace_len);
|
106
|
+
rp += replace_len;
|
107
|
+
p += find_len;
|
108
|
+
source = p;
|
109
|
+
}
|
110
|
+
|
111
|
+
// Copy the remaining part of the source string
|
112
|
+
size_t remaining_len = strlen(source);
|
113
|
+
memcpy(rp, source, remaining_len);
|
114
|
+
rp[remaining_len] = '\0';
|
115
|
+
}
|
116
|
+
|
117
|
+
static void proc_stdin(const char *restrict one, const char *restrict two) {
|
118
|
+
const size_t inc = 4096;
|
119
|
+
size_t size = inc + 1;
|
120
|
+
|
121
|
+
char *data = (char *)malloc(size);
|
122
|
+
|
123
|
+
size_t base = 0;
|
124
|
+
|
125
|
+
size_t num_to_read = inc;
|
126
|
+
|
127
|
+
for (;;) {
|
128
|
+
if (base + num_to_read > size) {
|
129
|
+
data = (char *)realloc(
|
130
|
+
data,
|
131
|
+
(base + num_to_read) *
|
132
|
+
1.5); // 1.5 is safe because lowest it coud be is 0 +
|
133
|
+
// 4096 * 1.5, which is always bigger than 4096
|
134
|
+
}
|
135
|
+
size_t br = fread(data + base, 1, num_to_read, stdin);
|
136
|
+
|
137
|
+
base += br;
|
138
|
+
if (br < num_to_read) {
|
139
|
+
data[base] = '\0';
|
140
|
+
break;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
bool use_orig;
|
145
|
+
size_t num_matches;
|
146
|
+
char *new_text;
|
147
|
+
|
148
|
+
string_replace(data, one, two, base, len1, len2, &use_orig, &num_matches,
|
149
|
+
&new_text);
|
150
|
+
print(new_text);
|
151
|
+
|
152
|
+
free(data);
|
153
|
+
|
154
|
+
if (!use_orig) {
|
155
|
+
free(new_text);
|
156
|
+
return;
|
157
|
+
}
|
158
|
+
|
159
|
+
return;
|
160
|
+
}
|
161
|
+
|
162
|
+
static void process_file(const char *restrict filename,
|
163
|
+
const char *restrict one, const char *restrict two) {
|
164
|
+
|
165
|
+
if (!strcmp("/dev/stdin", filename)) {
|
166
|
+
if (verbose_mode) {
|
167
|
+
print("STDIN\n");
|
168
|
+
}
|
169
|
+
proc_stdin(one, two);
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
|
173
|
+
if (!strncmp(filename, "-", 1)) {
|
174
|
+
proc_stdin(one, two);
|
175
|
+
return;
|
176
|
+
}
|
177
|
+
|
178
|
+
FILE *f = fopen(filename, "r");
|
179
|
+
|
180
|
+
if (unlikely(f == NULL)) {
|
181
|
+
printf("Failed to open file: '%s'\n", filename);
|
182
|
+
return;
|
183
|
+
}
|
184
|
+
|
185
|
+
// Get the size of the file
|
186
|
+
fseek(f, 0, SEEK_END);
|
187
|
+
size_t fsize = ftell(f);
|
188
|
+
if (fsize == 0) {
|
189
|
+
fclose(f);
|
190
|
+
return;
|
191
|
+
}
|
192
|
+
fseek(f, 0, SEEK_SET);
|
193
|
+
|
194
|
+
// Allocate memory for the file content
|
195
|
+
// Add to surpress valgrind warnings.
|
196
|
+
char *text = (char *)malloc(fsize + 1);
|
197
|
+
if (unlikely(text == NULL)) {
|
198
|
+
fclose(f);
|
199
|
+
printf("Memory allocation failed\n");
|
200
|
+
return;
|
201
|
+
}
|
202
|
+
|
203
|
+
size_t bytes_read = 0;
|
204
|
+
size_t total_bytes_read = 0;
|
205
|
+
|
206
|
+
// Read the file content in chunks
|
207
|
+
while (total_bytes_read < fsize) {
|
208
|
+
size_t len_to_read = fsize - total_bytes_read;
|
209
|
+
if (len_to_read > 4096) {
|
210
|
+
len_to_read = 4096;
|
211
|
+
}
|
212
|
+
bytes_read = fread(text + total_bytes_read, 1, len_to_read, f);
|
213
|
+
if (unlikely(bytes_read == 0)) {
|
214
|
+
fclose(f);
|
215
|
+
free(text);
|
216
|
+
printf("Failed to read file: '%s'\n", filename);
|
217
|
+
return;
|
218
|
+
}
|
219
|
+
|
220
|
+
if (!is_valid_utf8(text + total_bytes_read, bytes_read)) {
|
221
|
+
// printf("Skipping non-text file '%s'\n", filename);
|
222
|
+
fclose(f);
|
223
|
+
free(text);
|
224
|
+
return;
|
225
|
+
}
|
226
|
+
total_bytes_read += bytes_read;
|
227
|
+
}
|
228
|
+
|
229
|
+
fclose(f);
|
230
|
+
|
231
|
+
text[fsize] = '\0';
|
232
|
+
|
233
|
+
bool use_orig;
|
234
|
+
size_t num_matches;
|
235
|
+
char *new_text;
|
236
|
+
|
237
|
+
string_replace(text, one, two, total_bytes_read, len1, len2, &use_orig,
|
238
|
+
&num_matches, &new_text);
|
239
|
+
|
240
|
+
free(text);
|
241
|
+
|
242
|
+
if (use_orig) {
|
243
|
+
return;
|
244
|
+
}
|
245
|
+
|
246
|
+
const size_t rep_len = strlen(new_text);
|
247
|
+
|
248
|
+
f = fopen(filename, "w");
|
249
|
+
if (unlikely(f == NULL)) {
|
250
|
+
free(text);
|
251
|
+
printf("Failed to open file for writing: '%s'\n", filename);
|
252
|
+
return;
|
253
|
+
}
|
254
|
+
|
255
|
+
// Write the replaced content to the file
|
256
|
+
{
|
257
|
+
size_t bytes_written = fwrite(new_text, 1, rep_len, f);
|
258
|
+
if (bytes_written == 0) {
|
259
|
+
fclose(f);
|
260
|
+
free(new_text);
|
261
|
+
printf("Failed to write file: '%s'\n", filename);
|
262
|
+
return;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
free(new_text);
|
266
|
+
fclose(f);
|
267
|
+
|
268
|
+
if (num_matches == 1) {
|
269
|
+
printf("%s: %s: 1 replacement for %s => %s\n", prog_name, filename, one,
|
270
|
+
two);
|
271
|
+
} else {
|
272
|
+
printf("%s: %s: %ld replacements for %s => %s\n", prog_name, filename,
|
273
|
+
num_matches, one, two);
|
274
|
+
}
|
275
|
+
}
|
276
|
+
|
277
|
+
static void process_directory(const char *dirPath, const char *one,
|
278
|
+
const char *two, bool check_file) {
|
279
|
+
if (strstr(dirPath, "/.")) {
|
280
|
+
// printf("Skipping hidden file '%s'\n", filename);
|
281
|
+
return;
|
282
|
+
}
|
283
|
+
DIR *dir = opendir(dirPath);
|
284
|
+
if (dir == NULL) {
|
285
|
+
if (check_file) {
|
286
|
+
process_file(dirPath, one, two);
|
287
|
+
return;
|
288
|
+
}
|
289
|
+
printf("Failed to open directory: '%s'\n", dirPath);
|
290
|
+
return;
|
291
|
+
}
|
292
|
+
|
293
|
+
struct dirent *entry;
|
294
|
+
while ((entry = readdir(dir)) != NULL) {
|
295
|
+
if ((!strcmp(entry->d_name, ".")) || strcmp(entry->d_name, ".."))
|
296
|
+
continue;
|
297
|
+
|
298
|
+
char path[PATH_MAX];
|
299
|
+
snprintf(path, sizeof(path), "%s/%s", dirPath, entry->d_name);
|
300
|
+
|
301
|
+
if (rename_mode) {
|
302
|
+
bool use_orig;
|
303
|
+
size_t num_matches;
|
304
|
+
char *new_text;
|
305
|
+
|
306
|
+
string_replace(path, one, two, strlen(path), strlen(one), strlen(two),
|
307
|
+
&use_orig, &num_matches, &new_text);
|
308
|
+
|
309
|
+
if (use_orig)
|
310
|
+
continue;
|
311
|
+
printf("%s: Renamed %s => %s\n", prog_name, path, new_text);
|
312
|
+
|
313
|
+
rename(path, new_text);
|
314
|
+
free(new_text);
|
315
|
+
continue;
|
316
|
+
}
|
317
|
+
|
318
|
+
struct stat statbuf;
|
319
|
+
if (stat(path, &statbuf) == -1) {
|
320
|
+
printf("Failed to get file information: %s\n", path);
|
321
|
+
continue;
|
322
|
+
}
|
323
|
+
|
324
|
+
if (S_ISDIR(statbuf.st_mode)) {
|
325
|
+
process_directory(path, one, two, false);
|
326
|
+
} else if (S_ISREG(statbuf.st_mode)) {
|
327
|
+
process_file(path, one, two);
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
closedir(dir);
|
332
|
+
}
|
333
|
+
|
334
|
+
int main(int argc, char **argv) {
|
335
|
+
prog_name = basename(argv[0]);
|
336
|
+
if (argc < 2) {
|
337
|
+
printf(
|
338
|
+
"Usage: %s <find> <replace> [optional list of files instead of "
|
339
|
+
"recursive search]\n\nIf a file is \"-\" or stdin, read from stdin "
|
340
|
+
"and output to stdout.\nOptions"
|
341
|
+
"\n\n\n -r, rename files instead "
|
342
|
+
"of replacing contents of files. find and replace in file and dir "
|
343
|
+
"names instead"
|
344
|
+
"\n\n\n -v, verbose mode\n\n\n -- Indicate end of options.\n\n",
|
345
|
+
prog_name);
|
346
|
+
return 1;
|
347
|
+
}
|
348
|
+
|
349
|
+
char *actual_argv[argc];
|
350
|
+
int actual_argc = 0;
|
351
|
+
bool auto_continue = false;
|
352
|
+
|
353
|
+
size_t lens[argc];
|
354
|
+
|
355
|
+
for (int i = 0; i < argc; ++i) {
|
356
|
+
if (auto_continue)
|
357
|
+
continue;
|
358
|
+
{
|
359
|
+
size_t len;
|
360
|
+
len = strlen(argv[i]);
|
361
|
+
|
362
|
+
if (len == 2) {
|
363
|
+
if (argv[i][0] == '-') {
|
364
|
+
switch (argv[i][1]) {
|
365
|
+
case '-':
|
366
|
+
auto_continue = true;
|
367
|
+
continue;
|
368
|
+
case 'r':
|
369
|
+
rename_mode = true;
|
370
|
+
if (verbose_mode) {
|
371
|
+
print("File name replace mode\n");
|
372
|
+
}
|
373
|
+
continue;
|
374
|
+
case 'v':
|
375
|
+
verbose_mode = true;
|
376
|
+
print("Verbose mode\n");
|
377
|
+
continue;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
lens[actual_argc] = len;
|
383
|
+
|
384
|
+
actual_argv[actual_argc] = argv[i];
|
385
|
+
actual_argc++;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
len1 = lens[1];
|
389
|
+
len2 = lens[2];
|
390
|
+
// printf("%d %d\n", actual_argc, actual_argc);
|
391
|
+
|
392
|
+
if (actual_argc == 3) {
|
393
|
+
process_directory(".", actual_argv[1], actual_argv[2], false);
|
394
|
+
} else if (actual_argc > 3) {
|
395
|
+
for (int i = 3; i < actual_argc; ++i) {
|
396
|
+
if (verbose_mode) {
|
397
|
+
printf("Processing directory '%s'\n", argv[i]);
|
398
|
+
}
|
399
|
+
{}
|
400
|
+
process_directory(actual_argv[i], actual_argv[1], actual_argv[2], true);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
return 0;
|
404
|
+
}
|
data/src/src/code2
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
require "fileutils"
|
2
|
+
|
3
|
+
txt = "$array = {"
|
4
|
+
Dir.glob("/home/a/democracy/documentation/" + "*").each do |i|
|
5
|
+
doc = File.read i
|
6
|
+
i = File.basename i
|
7
|
+
txt<< <<~A
|
8
|
+
"#{i}" => ["#{i}", "[#{i}] [arguments]", #{doc.strip.dump}],
|
9
|
+
A
|
10
|
+
end;
|
11
|
+
|
12
|
+
txt<<"}"
|
13
|
+
|
14
|
+
|
15
|
+
eval txt
|
16
|
+
|
17
|
+
|
18
|
+
def iter(arg)
|
19
|
+
# warn arg
|
20
|
+
FileUtils.mkdir_p("../compilation")
|
21
|
+
name, args = arg.scan(/^def\s+(.+)(\(.*\))\s*$/)[0]
|
22
|
+
args_split = args[1..-2].strip.split(",")
|
23
|
+
invoke_function = if args_split.empty?
|
24
|
+
name
|
25
|
+
else
|
26
|
+
"#{name}(#{["", "ARGV[0]", "ARGV[0], ARGV[1]",
|
27
|
+
"ARGV[0], ARGV[1], ARGV[2]"][args_split.length]})"
|
28
|
+
end
|
29
|
+
|
30
|
+
File.open("../compilation/#{name}", "w") do |file|
|
31
|
+
file << (File.read("functions.cr")) << text = <<CR
|
32
|
+
|
33
|
+
|
34
|
+
def main()
|
35
|
+
if ARGV.size != #{args_split.length}
|
36
|
+
Funcs.argument_data(#{$array[name].to_s[1..-2]})
|
37
|
+
exit 1
|
38
|
+
end
|
39
|
+
|
40
|
+
#{invoke_function}
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
main
|
45
|
+
CR
|
46
|
+
#abort text
|
47
|
+
|
48
|
+
#START
|
49
|
+
system "#notify-send #&"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
File.read("functions.cr").each_line.reject do |i|
|
54
|
+
!i.start_with?("def ")
|
55
|
+
end.each do |arg|
|
56
|
+
iter(arg.strip)
|
57
|
+
end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
#!/usr/bin/crystal
|
2
|
+
require "file_utils"
|
3
|
+
require "json"
|
4
|
+
require "colorize"
|
5
|
+
|
6
|
+
include FileUtils
|
7
|
+
|
8
|
+
def lines()
|
9
|
+
if !STDIN.tty?
|
10
|
+
puts STDIN.gets_to_end.count("\n")
|
11
|
+
else
|
12
|
+
res = `find .`.count("\n") - 1
|
13
|
+
puts res
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def args(arg1)
|
18
|
+
sections = Process.parse_arguments(arg1)
|
19
|
+
program, args = sections[0], sections[1..]
|
20
|
+
|
21
|
+
sections = Process.parse_arguments(arg1)
|
22
|
+
|
23
|
+
program = Process.find_executable(program)
|
24
|
+
if program.nil?
|
25
|
+
puts "Can't find program #{arg1}"
|
26
|
+
raise "Error"
|
27
|
+
end
|
28
|
+
|
29
|
+
lines = STDIN.gets_to_end.strip
|
30
|
+
lines = lines.split "\n"
|
31
|
+
times = (lines.size % 2000000 == 0) ? 2 : 1
|
32
|
+
|
33
|
+
times += lines.size // 2000000
|
34
|
+
n = 0
|
35
|
+
times.times do
|
36
|
+
prog_args = args
|
37
|
+
|
38
|
+
prog_args += lines[n..(n + 2000000 - 1)]; n += 2000000
|
39
|
+
|
40
|
+
if (p = Process.fork).nil?
|
41
|
+
Process.exec(
|
42
|
+
program,
|
43
|
+
prog_args
|
44
|
+
)
|
45
|
+
else
|
46
|
+
p.wait
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def copy()
|
52
|
+
command = "/usr/bin/xclip"
|
53
|
+
args = ["-selection", "c"]
|
54
|
+
Process.run(command, args, output: STDOUT) do |file|
|
55
|
+
file.input.print STDIN.gets_to_end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def mul()
|
60
|
+
t = STDIN.read_line.to_f64
|
61
|
+
|
62
|
+
i = 0f64; STDIN.each_line do |line|
|
63
|
+
t *= line.to_f64
|
64
|
+
end
|
65
|
+
|
66
|
+
puts t
|
67
|
+
end
|
68
|
+
|
69
|
+
def add()
|
70
|
+
t = STDIN.read_line.to_f64
|
71
|
+
|
72
|
+
i = 0f64; STDIN.each_line do |line|
|
73
|
+
t += line.to_f64
|
74
|
+
end
|
75
|
+
|
76
|
+
puts t
|
77
|
+
end
|
78
|
+
|
79
|
+
def div()
|
80
|
+
t = STDIN.read_line.to_f64
|
81
|
+
|
82
|
+
i = 0f64; STDIN.each_line do |line|
|
83
|
+
t /= line.to_f64
|
84
|
+
end
|
85
|
+
|
86
|
+
puts t
|
87
|
+
end
|
88
|
+
|
89
|
+
def sub()
|
90
|
+
t = STDIN.read_line.to_f64
|
91
|
+
|
92
|
+
i = 0f64; STDIN.each_line do |line|
|
93
|
+
t -= line.to_f64
|
94
|
+
end
|
95
|
+
|
96
|
+
puts t
|
97
|
+
end
|
98
|
+
|
99
|
+
def floor()
|
100
|
+
puts STDIN.read_line.to_f64.to_i64
|
101
|
+
end
|
102
|
+
|
103
|
+
def abs()
|
104
|
+
STDIN.each_line do |l|
|
105
|
+
l = l.to_f64.abs
|
106
|
+
puts l
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
def dump()
|
111
|
+
puts STDIN.gets_to_end.dump
|
112
|
+
end
|
113
|
+
|
114
|
+
def undump()
|
115
|
+
puts JSON.parse(STDIN.gets_to_end)
|
116
|
+
end
|
117
|
+
|
118
|
+
def exp()
|
119
|
+
t = STDIN.read_line.to_f64
|
120
|
+
|
121
|
+
STDIN.each_line do |line|
|
122
|
+
t **= line.to_f64
|
123
|
+
end
|
124
|
+
|
125
|
+
puts t
|
126
|
+
end
|
127
|
+
|
128
|
+
def nth(arg1)
|
129
|
+
end_ = arg1.to_u64
|
130
|
+
i = 0u64; STDIN.each_line do |line|
|
131
|
+
i += 1
|
132
|
+
if i == end_
|
133
|
+
puts line
|
134
|
+
break
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
def last_nth(arg1)
|
140
|
+
end_ = arg1.to_u64
|
141
|
+
i = 0u64;
|
142
|
+
t = STDIN.gets_to_end
|
143
|
+
if t[-1] == '\n'
|
144
|
+
t = t[0..-2]
|
145
|
+
end
|
146
|
+
|
147
|
+
t.split("\n").reverse_each do |line|
|
148
|
+
i += 1
|
149
|
+
if i == end_
|
150
|
+
puts line
|
151
|
+
break
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
def gsubip(arg1, arg2, arg3)
|
157
|
+
regex = Regex.new(arg1)
|
158
|
+
text = File.read(arg3).gsub(/#{arg1}/m, arg2)
|
159
|
+
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(arg3).permissions) do |h|
|
160
|
+
h.print text
|
161
|
+
end
|
162
|
+
begin
|
163
|
+
mv t, arg3
|
164
|
+
rescue
|
165
|
+
rm t
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
def rip(arg1, arg2, arg3)
|
170
|
+
text = File.read(arg3).gsub(arg1, arg2)
|
171
|
+
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(arg3).permissions) do |h|
|
172
|
+
h.print text
|
173
|
+
end
|
174
|
+
begin
|
175
|
+
mv t, arg3
|
176
|
+
rescue
|
177
|
+
rm t
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
def gsub(arg1, arg2)
|
182
|
+
print STDIN.gets_to_end.gsub(/#{arg1}/m, arg2)
|
183
|
+
end
|
184
|
+
|
185
|
+
def rnip(arg1, arg2)
|
186
|
+
print STDIN.gets_to_end.gsub(arg1, arg2)
|
187
|
+
end
|
188
|
+
|
189
|
+
def selectlines()
|
190
|
+
STDIN.each_line do |line|
|
191
|
+
if line.strip.size > 0
|
192
|
+
puts line
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
|
198
|
+
def swap(file1, file2)
|
199
|
+
[file1, file2].each do |f|
|
200
|
+
File.exists?(f) || abort("No file named #{f.dump}".colorize(:red))
|
201
|
+
end
|
202
|
+
t = File.tempname("coreutils", "_tmp")
|
203
|
+
|
204
|
+
mv file1, t
|
205
|
+
mv file2, file1
|
206
|
+
mv t, file2
|
207
|
+
end
|
208
|
+
|
209
|
+
def prepend(file)
|
210
|
+
file_data = File.read(file)
|
211
|
+
new_data = STDIN.gets_to_end
|
212
|
+
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(file).permissions) do |h|
|
213
|
+
h << new_data + file_data
|
214
|
+
end
|
215
|
+
|
216
|
+
begin
|
217
|
+
mv t, file
|
218
|
+
rescue
|
219
|
+
rm t
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
def append(file)
|
224
|
+
file_data = File.read(file)
|
225
|
+
new_data = STDIN.gets_to_end
|
226
|
+
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(file).permissions) do |h|
|
227
|
+
h << file_data + new_data
|
228
|
+
end
|
229
|
+
begin
|
230
|
+
mv t, file
|
231
|
+
rescue
|
232
|
+
rm t
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
class Funcs
|
237
|
+
def self.bold(text)
|
238
|
+
text = text.to_s
|
239
|
+
# text += two.to_s
|
240
|
+
|
241
|
+
if STDOUT.tty?
|
242
|
+
return text.colorize.bold.to_s
|
243
|
+
else
|
244
|
+
return "<b>" + text + "</b>"
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
def self.argument_data(program, usage, long_desc)
|
249
|
+
if !(STDOUT.tty?)
|
250
|
+
text = "<div style='border-radius: 50px; border: 10px dotted cyan; padding: 30px;'>\n"
|
251
|
+
else
|
252
|
+
text = ""
|
253
|
+
end
|
254
|
+
|
255
|
+
text += bold("NAME") + "\n\t" + program
|
256
|
+
text += " - "
|
257
|
+
text += program + "\n" * 2 + bold("SYNOPSIS") + "\n"
|
258
|
+
# tebold_("SYNOPSIS_")# + bold("SYNOPSIS")
|
259
|
+
text += "\t"
|
260
|
+
text += bold(program) + " "
|
261
|
+
text += usage + "\n\n"
|
262
|
+
text += long_desc + "\n\n"
|
263
|
+
|
264
|
+
if STDOUT.tty? == false
|
265
|
+
text = text.gsub("\n", "<br/> ").gsub("\t", " " * 5)
|
266
|
+
text += "</div>\n\n"
|
267
|
+
end
|
268
|
+
|
269
|
+
puts text
|
270
|
+
|
271
|
+
# puts "</
|
272
|
+
# puts "</
|
273
|
+
end
|
274
|
+
end
|