Kouhei Sutou
null+****@clear*****
Thu Aug 7 12:21:48 JST 2014
Kouhei Sutou 2014-08-07 12:21:48 +0900 (Thu, 07 Aug 2014) New Revision: bc3a4b7541c927c548d526521cf544281f287262 https://github.com/groonga/groonga/commit/bc3a4b7541c927c548d526521cf544281f287262 Message: mrb: use symbol for name Modified files: lib/mrb/scripts/context/rc.rb Modified: lib/mrb/scripts/context/rc.rb (+74 -74) =================================================================== --- lib/mrb/scripts/context/rc.rb 2014-08-07 12:04:03 +0900 (4d1eaae) +++ lib/mrb/scripts/context/rc.rb 2014-08-07 12:21:48 +0900 (7fa1228) @@ -11,80 +11,80 @@ module Groonga @code end - SUCCESS = new("success", 0) - END_OF_DATA = new("end-of-data", 1) - UNKNOWN_ERROR = new("unknown-error", -1) - OPERATION_NOT_PERMITTED = new("operation-not-permitted", -2) - NO_SUCH_FILE_OR_DIRECTORY = new("no-such-file-or-directory", -3) - NO_SUCH_PROCESS = new("no-such-process", -4) - INTERRUPTED_FUNCTION_CALL = new("interrupted-function-call", -5) - INPUT_OUTPUT_ERROR = new("input-output-error", -6) - NO_SUCH_DEVICE_OR_ADDRESS = new("no-such-device-or-address", -7) - ARG_LIST_TOO_LONG = new("arg-list-too-long", -8) - EXEC_FORMAT_ERROR = new("exec-format-error", -9) - BAD_FILE_DESCRIPTOR = new("bad-file-descriptor", -10) - NO_CHILD_PROCESSES = new("no-child-processes", -11) - RESOURCE_TEMPORARILY_UNAVAILABLE = new("resource-temporarily-unavailable", -12) - NOT_ENOUGH_SPACE = new("not-enough-space", -13) - PERMISSION_DENIED = new("permission-denied", -14) - BAD_ADDRESS = new("bad-address", -15) - RESOURCE_BUSY = new("resource-busy", -16) - FILE_EXISTS = new("file-exists", -17) - IMPROPER_LINK = new("improper-link", -18) - NO_SUCH_DEVICE = new("no-such-device", -19) - NOT_A_DIRECTORY = new("not-a-directory", -20) - IS_A_DIRECTORY = new("is-a-directory", -21) - INVALID_ARGUMENT = new("invalid-argument", -22) - TOO_MANY_OPEN_FILES_IN_SYSTEM = new("too-many-open-files-in-system", -23) - TOO_MANY_OPEN_FILES = new("too-many-open-files", -24) - INAPPROPRIATE_I_O_CONTROL_OPERATION = new("inappropriate-i-o-control-operation", -25) - FILE_TOO_LARGE = new("file-too-large", -26) - NO_SPACE_LEFT_ON_DEVICE = new("no-space-left-on-device", -27) - INVALID_SEEK = new("invalid-seek", -28) - READ_ONLY_FILE_SYSTEM = new("read-only-file-system", -29) - TOO_MANY_LINKS = new("too-many-links", -30) - BROKEN_PIPE = new("broken-pipe", -31) - DOMAIN_ERROR = new("domain-error", -32) - RESULT_TOO_LARGE = new("result-too-large", -33) - RESOURCE_DEADLOCK_AVOIDED = new("resource-deadlock-avoided", -34) - NO_MEMORY_AVAILABLE = new("no-memory-available", -35) - FILENAME_TOO_LONG = new("filename-too-long", -36) - NO_LOCKS_AVAILABLE = new("no-locks-available", -37) - FUNCTION_NOT_IMPLEMENTED = new("function-not-implemented", -38) - DIRECTORY_NOT_EMPTY = new("directory-not-empty", -39) - ILLEGAL_BYTE_SEQUENCE = new("illegal-byte-sequence", -40) - SOCKET_NOT_INITIALIZED = new("socket-not-initialized", -41) - OPERATION_WOULD_BLOCK = new("operation-would-block", -42) - ADDRESS_IS_NOT_AVAILABLE = new("address-is-not-available", -43) - NETWORK_IS_DOWN = new("network-is-down", -44) - NO_BUFFER = new("no-buffer", -45) - SOCKET_IS_ALREADY_CONNECTED = new("socket-is-already-connected", -46) - SOCKET_IS_NOT_CONNECTED = new("socket-is-not-connected", -47) - SOCKET_IS_ALREADY_SHUTDOWNED = new("socket-is-already-shutdowned", -48) - OPERATION_TIMEOUT = new("operation-timeout", -49) - CONNECTION_REFUSED = new("connection-refused", -50) - RANGE_ERROR = new("range-error", -51) - TOKENIZER_ERROR = new("tokenizer-error", -52) - FILE_CORRUPT = new("file-corrupt", -53) - INVALID_FORMAT = new("invalid-format", -54) - OBJECT_CORRUPT = new("object-corrupt", -55) - TOO_MANY_SYMBOLIC_LINKS = new("too-many-symbolic-links", -56) - NOT_SOCKET = new("not-socket", -57) - OPERATION_NOT_SUPPORTED = new("operation-not-supported", -58) - ADDRESS_IS_IN_USE = new("address-is-in-use", -59) - ZLIB_ERROR = new("zlib-error", -60) - LZO_ERROR = new("lzo-error", -61) - STACK_OVER_FLOW = new("stack-over-flow", -62) - SYNTAX_ERROR = new("syntax-error", -63) - RETRY_MAX = new("retry-max", -64) - INCOMPATIBLE_FILE_FORMAT = new("incompatible-file-format", -65) - UPDATE_NOT_ALLOWED = new("update-not-allowed", -66) - TOO_SMALL_OFFSET = new("too-small-offset", -67) - TOO_LARGE_OFFSET = new("too-large-offset", -68) - TOO_SMALL_LIMIT = new("too-small-limit", -69) - CAS_ERROR = new("cas-error", -70) - UNSUPPORTED_COMMAND_VERSION = new("unsupported-command-version", -71) - NORMALIZER_ERROR = new("normalizer-error", -72) + SUCCESS = new(:success, 0) + END_OF_DATA = new(:end_of_data, 1) + UNKNOWN_ERROR = new(:unknown_error, -1) + OPERATION_NOT_PERMITTED = new(:operation_not_permitted, -2) + NO_SUCH_FILE_OR_DIRECTORY = new(:no_such_file_or_directory, -3) + NO_SUCH_PROCESS = new(:no_such_process, -4) + INTERRUPTED_FUNCTION_CALL = new(:interrupted_function_call, -5) + INPUT_OUTPUT_ERROR = new(:input_output_error, -6) + NO_SUCH_DEVICE_OR_ADDRESS = new(:no_such_device_or_address, -7) + ARG_LIST_TOO_LONG = new(:arg_list_too_long, -8) + EXEC_FORMAT_ERROR = new(:exec_format_error, -9) + BAD_FILE_DESCRIPTOR = new(:bad_file_descriptor, -10) + NO_CHILD_PROCESSES = new(:no_child_processes, -11) + RESOURCE_TEMPORARILY_UNAVAILABLE = new(:resource_temporarily_unavailable, -12) + NOT_ENOUGH_SPACE = new(:not_enough_space, -13) + PERMISSION_DENIED = new(:permission_denied, -14) + BAD_ADDRESS = new(:bad_address, -15) + RESOURCE_BUSY = new(:resource_busy, -16) + FILE_EXISTS = new(:file_exists, -17) + IMPROPER_LINK = new(:improper_link, -18) + NO_SUCH_DEVICE = new(:no_such_device, -19) + NOT_A_DIRECTORY = new(:not_a_directory, -20) + IS_A_DIRECTORY = new(:is_a_directory, -21) + INVALID_ARGUMENT = new(:invalid_argument, -22) + TOO_MANY_OPEN_FILES_IN_SYSTEM = new(:too_many_open_files_in_system, -23) + TOO_MANY_OPEN_FILES = new(:too_many_open_files, -24) + INAPPROPRIATE_I_O_CONTROL_OPERATION = new(:inappropriate_i_o_control_operation, -25) + FILE_TOO_LARGE = new(:file_too_large, -26) + NO_SPACE_LEFT_ON_DEVICE = new(:no_space_left_on_device, -27) + INVALID_SEEK = new(:invalid_seek, -28) + READ_ONLY_FILE_SYSTEM = new(:read_only_file_system, -29) + TOO_MANY_LINKS = new(:too_many_links, -30) + BROKEN_PIPE = new(:broken_pipe, -31) + DOMAIN_ERROR = new(:domain_error, -32) + RESULT_TOO_LARGE = new(:result_too_large, -33) + RESOURCE_DEADLOCK_AVOIDED = new(:resource_deadlock_avoided, -34) + NO_MEMORY_AVAILABLE = new(:no_memory_available, -35) + FILENAME_TOO_LONG = new(:filename_too_long, -36) + NO_LOCKS_AVAILABLE = new(:no_locks_available, -37) + FUNCTION_NOT_IMPLEMENTED = new(:function_not_implemented, -38) + DIRECTORY_NOT_EMPTY = new(:directory_not_empty, -39) + ILLEGAL_BYTE_SEQUENCE = new(:illegal_byte_sequence, -40) + SOCKET_NOT_INITIALIZED = new(:socket_not_initialized, -41) + OPERATION_WOULD_BLOCK = new(:operation_would_block, -42) + ADDRESS_IS_NOT_AVAILABLE = new(:address_is_not_available, -43) + NETWORK_IS_DOWN = new(:network_is_down, -44) + NO_BUFFER = new(:no_buffer, -45) + SOCKET_IS_ALREADY_CONNECTED = new(:socket_is_already_connected, -46) + SOCKET_IS_NOT_CONNECTED = new(:socket_is_not_connected, -47) + SOCKET_IS_ALREADY_SHUTDOWNED = new(:socket_is_already_shutdowned, -48) + OPERATION_TIMEOUT = new(:operation_timeout, -49) + CONNECTION_REFUSED = new(:connection_refused, -50) + RANGE_ERROR = new(:range_error, -51) + TOKENIZER_ERROR = new(:tokenizer_error, -52) + FILE_CORRUPT = new(:file_corrupt, -53) + INVALID_FORMAT = new(:invalid_format, -54) + OBJECT_CORRUPT = new(:object_corrupt, -55) + TOO_MANY_SYMBOLIC_LINKS = new(:too_many_symbolic_links, -56) + NOT_SOCKET = new(:not_socket, -57) + OPERATION_NOT_SUPPORTED = new(:operation_not_supported, -58) + ADDRESS_IS_IN_USE = new(:address_is_in_use, -59) + ZLIB_ERROR = new(:zlib_error, -60) + LZO_ERROR = new(:lzo_error, -61) + STACK_OVER_FLOW = new(:stack_over_flow, -62) + SYNTAX_ERROR = new(:syntax_error, -63) + RETRY_MAX = new(:retry_max, -64) + INCOMPATIBLE_FILE_FORMAT = new(:incompatible_file_format, -65) + UPDATE_NOT_ALLOWED = new(:update_not_allowed, -66) + TOO_SMALL_OFFSET = new(:too_small_offset, -67) + TOO_LARGE_OFFSET = new(:too_large_offset, -68) + TOO_SMALL_LIMIT = new(:too_small_limit, -69) + CAS_ERROR = new(:cas_error, -70) + UNSUPPORTED_COMMAND_VERSION = new(:unsupported_command_version, -71) + NORMALIZER_ERROR = new(:normalizer_error, -72) end end end -------------- next part -------------- HTML����������������������������... Télécharger