Changeset 111 for trunk/src/xmldecl.c


Ignore:
Timestamp:
Apr 26, 2008, 8:13:13 AM (11 years ago)
Author:
cameron
Message:

Consolidation of error handling: xml_error.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmldecl.c

    r100 r111  
    1313#include "byteplex.h"
    1414#include "xmldecl.h"
     15#include "xml_error.h"
    1516#include "multiliteral.h"
    1617#include "bytelex.h"
     
    6162                while (!AtQuote<C>(cur())) buffer_rel_pos+=1;
    6263                if (buffer_rel_pos >= BYTEPLEX_SIZE) {
    63                         printf("Fatal implementation limit - encoding name exceeds BYTEPLEX_SIZE\n");
    64                         exit(-1);
     64                        ImplementationLimitError("Encoding name exceeds BYTEPLEX_SIZE");
    6565                }
    6666        }
    6767}
    68 
    69 void DeclarationError(int pos) {
    70         printf("Parsing error at position %i in XML or Text declaration.\n", pos);
    71         exit(-1);
    72 }
    73 
    7468
    7569template <CodeUnit_Base C>
Note: See TracChangeset for help on using the changeset viewer.