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
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "bold help\n\nTurns text into bold\n"
|
41
|
+
#define HELP_STR "\e[1m" HELP_STR_NO_COLOR "\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[1m"
|
43
|
+
#define SECOND_COLOR "\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
@@ -0,0 +1,192 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
time = Time.new
|
5
|
+
|
6
|
+
LIST = %w[%s_underline %s_bold %s_bold_underline].freeze
|
7
|
+
|
8
|
+
if ARGV[0] == "clean"
|
9
|
+
puts "Cleaning and exiting"
|
10
|
+
Dir.glob("*") do |i|
|
11
|
+
if i.end_with? ".rb"
|
12
|
+
puts i
|
13
|
+
else
|
14
|
+
File.unlink i
|
15
|
+
end
|
16
|
+
end
|
17
|
+
exit 0
|
18
|
+
end
|
19
|
+
|
20
|
+
ENDR = " }
|
21
|
+
|
22
|
+
|
23
|
+
end:
|
24
|
+
fputs(SECOND_COLOR, stdout);
|
25
|
+
return 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
"
|
30
|
+
|
31
|
+
FIRST = "/*
|
32
|
+
* BSD 2-Clause License
|
33
|
+
*
|
34
|
+
* Copyright (c) 2023, Gregory Cohen
|
35
|
+
* All rights reserved.
|
36
|
+
*
|
37
|
+
* Redistribution and use in source and binary forms, with or without
|
38
|
+
* modification, are permitted provided that the following conditions are met:
|
39
|
+
*
|
40
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
41
|
+
* list of conditions and the following disclaimer.
|
42
|
+
*
|
43
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
44
|
+
* this list of conditions and the following disclaimer in the documentation
|
45
|
+
* and/or other materials provided with the distribution.
|
46
|
+
*
|
47
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"
|
48
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
49
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
50
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
51
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
52
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
53
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
54
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
55
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
56
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
57
|
+
*/
|
58
|
+
|
59
|
+
#include <stdio.h>
|
60
|
+
#include <string.h>
|
61
|
+
|
62
|
+
#ifdef __linux__
|
63
|
+
#define fputs fputs_unlocked
|
64
|
+
#define getchar getchar_unlocked
|
65
|
+
#define putchar putchar_unlocked
|
66
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
67
|
+
#endif
|
68
|
+
|
69
|
+
|
70
|
+
#define HELP_STR_NO_COLOR \"%s help\\n\\nTurns text into %s\\n\"
|
71
|
+
#define HELP_STR %s HELP_STR_NO_COLOR %s
|
72
|
+
#define FIRST_COLOR %s
|
73
|
+
#define SECOND_COLOR %s
|
74
|
+
|
75
|
+
int main(int argc, char** argv) {
|
76
|
+
fputs(FIRST_COLOR, stdout);
|
77
|
+
|
78
|
+
|
79
|
+
if (argc != 1) {
|
80
|
+
for (int i = 1; i < argc; ++i) {
|
81
|
+
if (!strcmp(argv[i], \"-h\") || !strcmp(argv[i], \"--help\")) {
|
82
|
+
fputs(HELP_STR, stdout);
|
83
|
+
} else {
|
84
|
+
fputs(argv[i], stdout);
|
85
|
+
if (i != argc - 1) putchar(' ');
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
putchar('\\n');
|
90
|
+
|
91
|
+
goto end;
|
92
|
+
}
|
93
|
+
|
94
|
+
for (;;) {
|
95
|
+
const int c = getchar();
|
96
|
+
|
97
|
+
if (c == EOF) goto end;
|
98
|
+
|
99
|
+
"
|
100
|
+
|
101
|
+
N = 1
|
102
|
+
|
103
|
+
COLORS = %w[black blue cyan green magenta red white yellow].freeze
|
104
|
+
|
105
|
+
require "colored"
|
106
|
+
|
107
|
+
COLORS.each do |color|
|
108
|
+
$file = File.open("#{color}.c", "w")
|
109
|
+
|
110
|
+
list = "TXT".send(color).split("TXT")
|
111
|
+
$file << (FIRST % ([color, color, list[0].dump, list[1].dump, list[0].dump, list[1].dump] * N))
|
112
|
+
|
113
|
+
list.each_with_index do |c, index|
|
114
|
+
$file << " putchar(c);\n" if index == 1
|
115
|
+
end
|
116
|
+
|
117
|
+
$file << ENDR
|
118
|
+
$file.close
|
119
|
+
end
|
120
|
+
|
121
|
+
COLORS.each do |color|
|
122
|
+
list = "TXT".send(color).underline.split("TXT")
|
123
|
+
c2 = "#{color}, underlined"
|
124
|
+
$file = File.open((LIST[0] % (color)) + ".c", "w")
|
125
|
+
$file << (FIRST % ([LIST[0] % (color), c2, list[0].dump, list[1].dump, list[0].dump, list[1].dump] * N))
|
126
|
+
list.each_with_index do |c, index|
|
127
|
+
$file << " putchar(c);\n" if index == 1
|
128
|
+
end
|
129
|
+
|
130
|
+
$file << ENDR
|
131
|
+
$file.close
|
132
|
+
end
|
133
|
+
|
134
|
+
COLORS.each do |color|
|
135
|
+
c2 = "#{color}, bolded"
|
136
|
+
list = "TXT".send(color).bold.split("TXT")
|
137
|
+
$file = File.open((LIST[1] % (color)) + ".c", "w")
|
138
|
+
$file << (FIRST % ([LIST[1] % (color), c2, list[0].dump, list[1].dump, list[0].dump, list[1].dump] * N))
|
139
|
+
|
140
|
+
list.each_with_index do |c, q|
|
141
|
+
$file << " putchar(c);\n" if q == 1
|
142
|
+
end
|
143
|
+
|
144
|
+
$file << ENDR
|
145
|
+
$file.close
|
146
|
+
end
|
147
|
+
|
148
|
+
COLORS.each do |color|
|
149
|
+
color2 = "#{color}, bolded and underlined"
|
150
|
+
list = "TXT".send(color).bold.underline.split("TXT")
|
151
|
+
$file = File.open((LIST[2] % (color)) + ".c", "w")
|
152
|
+
$file << (FIRST % ([LIST[2] % color, color2, list[0].dump, list[1].dump, list[0].dump, list[1].dump] * N))
|
153
|
+
|
154
|
+
list.each_with_index do |c, index|
|
155
|
+
$file << " putchar(c);\n" if index == 1
|
156
|
+
end
|
157
|
+
|
158
|
+
$file << ENDR
|
159
|
+
$file.close
|
160
|
+
end
|
161
|
+
|
162
|
+
%w[bold underline].each do |type|
|
163
|
+
list = "TXT".send(type).split("TXT")
|
164
|
+
$file = File.open("#{type}.c", "w")
|
165
|
+
$file << (FIRST % ([type, type, list[0].dump, list[1].dump, list[0].dump, list[1].dump] * N))
|
166
|
+
|
167
|
+
list.each_with_index do |c, index|
|
168
|
+
$file << " putchar(c);\n" if index == 1
|
169
|
+
end
|
170
|
+
|
171
|
+
$file << ENDR
|
172
|
+
$file.close
|
173
|
+
end
|
174
|
+
|
175
|
+
txt = +""
|
176
|
+
|
177
|
+
glob = Dir.glob("*.c").sort
|
178
|
+
|
179
|
+
glob.each do |file|
|
180
|
+
name = file.sub(/\.c$/, "")
|
181
|
+
# txt << "(musl-gcc -O2 --static -s -fwhole-program -Wall -Wextra #{file} -o #{name} && cp -v #{name} ../../bin/#{name}) || "
|
182
|
+
txt << "(gcc -O3 -s -fwhole-program -Wall -Wextra #{file} -o #{name} && cp -v #{name} ../../bin/#{name})\n"
|
183
|
+
end
|
184
|
+
#abort txt
|
185
|
+
|
186
|
+
IO.popen("sh", "w") do |i|
|
187
|
+
i << txt
|
188
|
+
end
|
189
|
+
|
190
|
+
time2 = Time.new
|
191
|
+
|
192
|
+
puts "Took #{time2 - time} seconds for #{glob.size}"
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "cyan help\n\nTurns text into cyan\n"
|
41
|
+
#define HELP_STR "\e[36m" HELP_STR_NO_COLOR "\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[36m"
|
43
|
+
#define SECOND_COLOR "\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "cyan_bold help\n\nTurns text into cyan, bolded\n"
|
41
|
+
#define HELP_STR "\e[1m\e[36m" HELP_STR_NO_COLOR "\e[0m\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[1m\e[36m"
|
43
|
+
#define SECOND_COLOR "\e[0m\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "cyan_bold_underline help\n\nTurns text into cyan, bolded and underlined\n"
|
41
|
+
#define HELP_STR "\e[4m\e[1m\e[36m" HELP_STR_NO_COLOR "\e[0m\e[0m\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[4m\e[1m\e[36m"
|
43
|
+
#define SECOND_COLOR "\e[0m\e[0m\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "cyan_underline help\n\nTurns text into cyan, underlined\n"
|
41
|
+
#define HELP_STR "\e[4m\e[36m" HELP_STR_NO_COLOR "\e[0m\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[4m\e[36m"
|
43
|
+
#define SECOND_COLOR "\e[0m\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/*
|
2
|
+
* BSD 2-Clause License
|
3
|
+
*
|
4
|
+
* Copyright (c) 2023, Gregory Cohen
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
*
|
10
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
11
|
+
* list of conditions and the following disclaimer.
|
12
|
+
*
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
15
|
+
* and/or other materials provided with the distribution.
|
16
|
+
*
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#include <stdio.h>
|
30
|
+
#include <string.h>
|
31
|
+
|
32
|
+
#ifdef __linux__
|
33
|
+
#define fputs fputs_unlocked
|
34
|
+
#define getchar getchar_unlocked
|
35
|
+
#define putchar putchar_unlocked
|
36
|
+
int fputs_unlocked(const char *s, FILE *stream);
|
37
|
+
#endif
|
38
|
+
|
39
|
+
|
40
|
+
#define HELP_STR_NO_COLOR "green help\n\nTurns text into green\n"
|
41
|
+
#define HELP_STR "\e[32m" HELP_STR_NO_COLOR "\e[0m"
|
42
|
+
#define FIRST_COLOR "\e[32m"
|
43
|
+
#define SECOND_COLOR "\e[0m"
|
44
|
+
|
45
|
+
int main(int argc, char** argv) {
|
46
|
+
fputs(FIRST_COLOR, stdout);
|
47
|
+
|
48
|
+
|
49
|
+
if (argc != 1) {
|
50
|
+
for (int i = 1; i < argc; ++i) {
|
51
|
+
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
|
+
fputs(HELP_STR, stdout);
|
53
|
+
} else {
|
54
|
+
fputs(argv[i], stdout);
|
55
|
+
if (i != argc - 1) putchar(' ');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
putchar('\n');
|
60
|
+
|
61
|
+
goto end;
|
62
|
+
}
|
63
|
+
|
64
|
+
for (;;) {
|
65
|
+
const int c = getchar();
|
66
|
+
|
67
|
+
if (c == EOF) goto end;
|
68
|
+
|
69
|
+
putchar(c);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
end:
|
74
|
+
fputs(SECOND_COLOR, stdout);
|
75
|
+
return 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
Binary file
|