Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

errdesc.h File Reference

#include <stdarg.h>
#include "print.h"

Defines

#define ERROR_IS_WARNING(err)    (err>99)
#define ERROR_ITOP_SYNTAX   1
#define ERROR_ITOP_FILETYPE   2
#define ERROR_FILE_ROPEN   3
#define ERROR_EOF_IN_BLOCK   4
#define ERROR_EXPECTED_FNAME   5
#define ERROR_MAXFOPTS_EXCEEDED   6
#define ERROR_DUPLICATE_IFILE   7
#define ERROR_NO_IFILE   8
#define ERROR_DUPLICATE_OFILE   9
#define ERROR_EMPTY_OFILE   10
#define ERROR_BEND_EXPECTED   11
#define ERROR_UNKNOWN_OPTION   12
#define ERROR_EXPECTED_KEY   13
#define ERROR_EXPECTED_TED_KEY   14
#define ERROR_BBEGIN_EXPECTED   15
#define ERROR_NUMBER_RANGE   16
#define ERROR_OFILE_SUFFIX   17
#define ERROR_EXPECTED_NUMBER   18
#define ERROR_AMBIGUOUS_NAME   19
#define ERROR_MULTIPLE_W_MOD   20
#define ERROR_TEXDEF_SYNTAX   21
#define ERROR_TEXDEF_SMALL   22
#define ERROR_TEXDEF_WILDCARD   23
#define ERROR_W_IN_AND_OUT   24
#define ERROR_COMMENT_EOF   101
#define ERROR_COMMENT_NOBEGIN   102
#define ERROR_EMPTY_FILEOPT   103
#define ERROR_DUPLICATE_FILEOPT   104
#define ERROR_DUPLICATE_GLOBAL   105
#define ERROR_USELESS_BLOCK   106
#define ERROR_W_ENV_NOT_FOUND   107
#define ERROR_IM_HEADER   108
#define ERROR_TEXDEF_TRAIL   109
#define ERROR_FIN_MATCHES_W   110

Functions

void describe_error (int errnum)
void perror (int level, int errnum, const char *args, ...)

Define Documentation

#define ERROR_AMBIGUOUS_NAME   19
 

Error: Filename is ambiguous

#define ERROR_BBEGIN_EXPECTED   15
 

Error: Expected opening bracket

#define ERROR_BEND_EXPECTED   11
 

Error: End-of-block expected, found trailing garbage

#define ERROR_COMMENT_EOF   101
 

Warning: Comment never closed

#define ERROR_COMMENT_NOBEGIN   102
 

Warning: Comment-closing bracket outside a comment

#define ERROR_DUPLICATE_FILEOPT   104
 

Warning: File option list defined multiple times

#define ERROR_DUPLICATE_GLOBAL   105
 

Warning: Multiple global sections

#define ERROR_DUPLICATE_IFILE   7
 

Error: Multiple command file arguments

#define ERROR_DUPLICATE_OFILE   9
 

Error: Multiple create sections

#define ERROR_EMPTY_FILEOPT   103
 

Warning: File option list is empty, thus useless

#define ERROR_EMPTY_OFILE   10
 

Error: Empty create section

#define ERROR_EOF_IN_BLOCK   4
 

Error: Encountered EOF while reading a block

#define ERROR_EXPECTED_FNAME   5
 

Error: Filename expected but something else found

#define ERROR_EXPECTED_KEY   13
 

Error: Keyword expected

#define ERROR_EXPECTED_NUMBER   18
 

Error: Number expected

#define ERROR_EXPECTED_TED_KEY   14
 

(defunct error)

#define ERROR_FILE_ROPEN   3
 

Error: Can't open file for reading

#define ERROR_FIN_MATCHES_W   110
 

Warning: .fin matches target track

#define ERROR_IM_HEADER   108
 

Warning: .i-w or .i-p has non-zero within the first 16 bytes

#define ERROR_IS_WARNING( err )   (err>99)
 

checks whether a given error number is a warning or not

#define ERROR_ITOP_FILETYPE   2
 

Error: Top-level filename is neither .w nor .fin

#define ERROR_ITOP_SYNTAX   1
 

Error: Syntax at top level violated

#define ERROR_MAXFOPTS_EXCEEDED   6
 

Error: Limit MAXFOPTS exceeded, following statements unparseable

#define ERROR_MULTIPLE_W_MOD   20
 

Error: duplicate W modifier

#define ERROR_NO_IFILE   8
 

Error: No command file specified

#define ERROR_NUMBER_RANGE   16
 

Error: Number is out of range

#define ERROR_OFILE_SUFFIX   17
 

Error: Output file has no supported suffix

#define ERROR_TEXDEF_SMALL   22
 

Error: texdef is small

#define ERROR_TEXDEF_SYNTAX   21
 

Error: texdef malformatted

#define ERROR_TEXDEF_TRAIL   109
 

Warning: Texdef part is too long

#define ERROR_TEXDEF_WILDCARD   23
 

Error: texdef: sheet wildcard forbidden

#define ERROR_UNKNOWN_OPTION   12
 

Error: Option isn't known

#define ERROR_USELESS_BLOCK   106
 

Warning: Block started where no preceeding keyword required one

#define ERROR_W_ENV_NOT_FOUND   107
 

Warning: .w file contains non-empty stuff between funnyballs and envmap list, can't parse that

#define ERROR_W_IN_AND_OUT   24
 

Error: .w both to be read and written


Function Documentation

void describe_error ( int errnum )
 

if not disabled by the user this functions prints out a brief description on the error errnum and what it means

void perror ( int level,
int errnum,
const char * args,
... )
 

prints out an error message.

Parameters:
errnum   error code: one of the ERROR_ defines
level   message level for this error.
args   text to print. Message is preceeded by either "Error:" or "Warning:"

calls describe_error()


Generated at Fri Jul 26 09:33:57 2002 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000