diff options
Diffstat (limited to 'tinySIGCOMP/src/tcomp_nack_codes.h')
-rwxr-xr-x | tinySIGCOMP/src/tcomp_nack_codes.h | 68 |
1 files changed, 33 insertions, 35 deletions
diff --git a/tinySIGCOMP/src/tcomp_nack_codes.h b/tinySIGCOMP/src/tcomp_nack_codes.h index 76eb33f..20fa12e 100755 --- a/tinySIGCOMP/src/tcomp_nack_codes.h +++ b/tinySIGCOMP/src/tcomp_nack_codes.h @@ -2,19 +2,19 @@ * Copyright (C) 2010-2011 Mamadou Diop. * * Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org> -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with DOUBANGO. * @@ -95,41 +95,39 @@ #define NACK_FRAMING_ERROR 25 -typedef struct tcomp_nack_desc_s -{ - int32_t code; - const char* desc; +typedef struct tcomp_nack_desc_s { + int32_t code; + const char* desc; } tcomp_nack_desc_t; -static const tcomp_nack_desc_t TCOMP_NACK_DESCRIPTIONS[] = -{ - { NACK_NONE, "NONE" }, - { NACK_STATE_NOT_FOUND, "STATE_NOT_FOUND" }, - { NACK_CYCLES_EXHAUSTED, "CYCLES_EXHAUSTED" }, - { NACK_USER_REQUESTED, "USER_REQUESTED" }, - { NACK_SEGFAULT, "SEGFAULT" }, - { NACK_TOO_MANY_STATE_REQUESTS, "TOO_MANY_STATE_REQUESTS" }, - { NACK_INVALID_STATE_ID_LENGTH, "INVALID_STATE_ID_LENGTH" }, - { NACK_INVALID_STATE_PRIORITY, "INVALID_STATE_PRIORITY" }, - { NACK_OUTPUT_OVERFLOW, "OUTPUT_OVERFLOW" }, - { NACK_STACK_UNDERFLOW, "STACK_UNDERFLOW" }, - { NACK_BAD_INPUT_BITORDER, "BAD_INPUT_BITORDER" }, - { NACK_DIV_BY_ZERO, "DIV_BY_ZERO" }, - { NACK_SWITCH_VALUE_TOO_HIGH, "SWITCH_VALUE_TOO_HIGH" }, - { NACK_TOO_MANY_BITS_REQUESTED, "TOO_MANY_BITS_REQUESTED" }, - { NACK_INVALID_OPERAND, "INVALID_OPERAND" }, - { NACK_HUFFMAN_NO_MATCH, "HUFFMAN_NO_MATCH" }, - { NACK_MESSAGE_TOO_SHORT, "MESSAGE_TOO_SHORT" }, - { NACK_INVALID_CODE_LOCATION, "INVALID_CODE_LOCATION" }, - { NACK_BYTECODES_TOO_LARGE, "BYTECODES_TOO_LARGE" }, - { NACK_INVALID_OPCODE, "INVALID_OPCODE" }, - { NACK_INVALID_STATE_PROBE, "INVALID_STATE_PROBE" }, - { NACK_ID_NOT_UNIQUE, "ID_NOT_UNIQUE" }, - { NACK_MULTILOAD_OVERWRITTEN, "MULTILOAD_OVERWRITTEN" }, - { NACK_STATE_TOO_SHORT, "STATE_TOO_SHORT" }, - { NACK_INTERNAL_ERROR, "INTERNAL_ERROR" }, - { NACK_FRAMING_ERROR, "FRAMING_ERROR" } +static const tcomp_nack_desc_t TCOMP_NACK_DESCRIPTIONS[] = { + { NACK_NONE, "NONE" }, + { NACK_STATE_NOT_FOUND, "STATE_NOT_FOUND" }, + { NACK_CYCLES_EXHAUSTED, "CYCLES_EXHAUSTED" }, + { NACK_USER_REQUESTED, "USER_REQUESTED" }, + { NACK_SEGFAULT, "SEGFAULT" }, + { NACK_TOO_MANY_STATE_REQUESTS, "TOO_MANY_STATE_REQUESTS" }, + { NACK_INVALID_STATE_ID_LENGTH, "INVALID_STATE_ID_LENGTH" }, + { NACK_INVALID_STATE_PRIORITY, "INVALID_STATE_PRIORITY" }, + { NACK_OUTPUT_OVERFLOW, "OUTPUT_OVERFLOW" }, + { NACK_STACK_UNDERFLOW, "STACK_UNDERFLOW" }, + { NACK_BAD_INPUT_BITORDER, "BAD_INPUT_BITORDER" }, + { NACK_DIV_BY_ZERO, "DIV_BY_ZERO" }, + { NACK_SWITCH_VALUE_TOO_HIGH, "SWITCH_VALUE_TOO_HIGH" }, + { NACK_TOO_MANY_BITS_REQUESTED, "TOO_MANY_BITS_REQUESTED" }, + { NACK_INVALID_OPERAND, "INVALID_OPERAND" }, + { NACK_HUFFMAN_NO_MATCH, "HUFFMAN_NO_MATCH" }, + { NACK_MESSAGE_TOO_SHORT, "MESSAGE_TOO_SHORT" }, + { NACK_INVALID_CODE_LOCATION, "INVALID_CODE_LOCATION" }, + { NACK_BYTECODES_TOO_LARGE, "BYTECODES_TOO_LARGE" }, + { NACK_INVALID_OPCODE, "INVALID_OPCODE" }, + { NACK_INVALID_STATE_PROBE, "INVALID_STATE_PROBE" }, + { NACK_ID_NOT_UNIQUE, "ID_NOT_UNIQUE" }, + { NACK_MULTILOAD_OVERWRITTEN, "MULTILOAD_OVERWRITTEN" }, + { NACK_STATE_TOO_SHORT, "STATE_TOO_SHORT" }, + { NACK_INTERNAL_ERROR, "INTERNAL_ERROR" }, + { NACK_FRAMING_ERROR, "FRAMING_ERROR" } }; #endif /* TCOMP_NACKCODES_H */ |