iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/error.c
/*
 * jpgalleg_error_string:
 *  Returns the latest error message string.
 */
Returns the latest error message string.
Returns the latest error message string .
const char *jpgalleg_error_string(void)
{
	switch (jpgalleg_error) {
		case JPG_ERROR_NONE:				return "No error";
		case JPG_ERROR_READING_FILE:			return "File read error";
		case JPG_ERROR_WRITING_FILE:			return "File write error";
		case JPG_ERROR_INPUT_BUFFER_TOO_SMALL:		return "Input memory buffer too small";
		case JPG_ERROR_OUTPUT_BUFFER_TOO_SMALL:		return "Output memory buffer too small";
		case JPG_ERROR_HUFFMAN:				return "Huffman compression error";
		case JPG_ERROR_NOT_JPEG:			return "Not a valid JPEG";
		case JPG_ERROR_UNSUPPORTED_ENCODING:		return "Unsupported encoding";
		case JPG_ERROR_UNSUPPORTED_COLOR_SPACE:		return "Unsupported color space";
		case JPG_ERROR_UNSUPPORTED_DATA_PRECISION:	return "Unsupported data precision";
		case JPG_ERROR_BAD_IMAGE:			return "Image data is corrupted";
		case JPG_ERROR_OUT_OF_MEMORY:			return "Out of memory";
	}
	return "Unknown error";
}
const char * jpgalleg_error_string ( void ) { switch ( jpgalleg_error ) { case JPG_ERROR_NONE : return " " ; case JPG_ERROR_READING_FILE : return " " ; case JPG_ERROR_WRITING_FILE : return " " ; case JPG_ERROR_INPUT_BUFFER_TOO_SMALL : return " " ; case JPG_ERROR_OUTPUT_BUFFER_TOO_SMALL : return " " ; case JPG_ERROR_HUFFMAN : return " " ; case JPG_ERROR_NOT_JPEG : return " " ; case JPG_ERROR_UNSUPPORTED_ENCODING : return " " ; case JPG_ERROR_UNSUPPORTED_COLOR_SPACE : return " " ; case JPG_ERROR_UNSUPPORTED_DATA_PRECISION : return " " ; case JPG_ERROR_BAD_IMAGE : return " " ; case JPG_ERROR_OUT_OF_MEMORY : return " " ; } return " " ; }
jpgalleg_error_string:
  Returns the latest error message string.
jpgalleg_error_string : Returns the latest error message string .