зеркало из https://github.com/mozilla/pjs.git
72 строки
1.8 KiB
C
72 строки
1.8 KiB
C
/*
|
|
The contents of this file are subject to the Mozilla Public License
|
|
Version 1.1 (the "License"); you may not use this file except in
|
|
compliance with the License. You may obtain a copy of the License at
|
|
http://www.mozilla.org/MPL/
|
|
|
|
Software distributed under the License is distributed on an "AS IS"
|
|
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing rights and limitations
|
|
under the License.
|
|
|
|
The Original Code is expat.
|
|
|
|
The Initial Developer of the Original Code is James Clark.
|
|
Portions created by James Clark are Copyright (C) 1998, 1999
|
|
James Clark. All Rights Reserved.
|
|
|
|
Contributor(s):
|
|
|
|
Alternatively, the contents of this file may be used under the terms
|
|
of the GNU General Public License (the "GPL"), in which case the
|
|
provisions of the GPL are applicable instead of those above. If you
|
|
wish to allow use of your version of this file only under the terms of
|
|
the GPL and not to allow others to use your version of this file under
|
|
the MPL, indicate your decision by deleting the provisions above and
|
|
replace them with the notice and other provisions required by the
|
|
GPL. If you do not delete the provisions above, a recipient may use
|
|
your version of this file under either the MPL or the GPL.
|
|
*/
|
|
|
|
enum {
|
|
BT_NONXML,
|
|
BT_MALFORM,
|
|
BT_LT,
|
|
BT_AMP,
|
|
BT_RSQB,
|
|
BT_LEAD2,
|
|
BT_LEAD3,
|
|
BT_LEAD4,
|
|
BT_TRAIL,
|
|
BT_CR,
|
|
BT_LF,
|
|
BT_GT,
|
|
BT_QUOT,
|
|
BT_APOS,
|
|
BT_EQUALS,
|
|
BT_QUEST,
|
|
BT_EXCL,
|
|
BT_SOL,
|
|
BT_SEMI,
|
|
BT_NUM,
|
|
BT_LSQB,
|
|
BT_S,
|
|
BT_NMSTRT,
|
|
BT_COLON,
|
|
BT_HEX,
|
|
BT_DIGIT,
|
|
BT_NAME,
|
|
BT_MINUS,
|
|
BT_OTHER, /* known not to be a name or name start character */
|
|
BT_NONASCII, /* might be a name or name start character */
|
|
BT_PERCNT,
|
|
BT_LPAR,
|
|
BT_RPAR,
|
|
BT_AST,
|
|
BT_PLUS,
|
|
BT_COMMA,
|
|
BT_VERBAR
|
|
};
|
|
|
|
#include <stddef.h>
|