[BACK]Return to xmlrole.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mit / expat / dist / lib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/mit/expat/dist/lib/xmlrole.c between version 1.1.1.2 and 1.1.1.2.14.1

version 1.1.1.2, 2012/04/06 10:23:34 version 1.1.1.2.14.1, 2017/02/19 04:52:28
Line 4 
Line 4 
   
 #include <stddef.h>  #include <stddef.h>
   
 #ifdef COMPILED_FROM_DSP  #ifdef WIN32
 #include "winconfig.h"  #include "winconfig.h"
 #elif defined(MACOS_CLASSIC)  #elif defined(MACOS_CLASSIC)
 #include "macconfig.h"  #include "macconfig.h"
Line 16 
Line 16 
 #ifdef HAVE_EXPAT_CONFIG_H  #ifdef HAVE_EXPAT_CONFIG_H
 #include <expat_config.h>  #include <expat_config.h>
 #endif  #endif
 #endif /* ndef COMPILED_FROM_DSP */  #endif /* ndef WIN32 */
   
 #include "expat_external.h"  #include "expat_external.h"
 #include "internal.h"  #include "internal.h"
Line 195  prolog1(PROLOG_STATE *state,
Line 195  prolog1(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 prolog2(PROLOG_STATE *state,  prolog2(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 216  prolog2(PROLOG_STATE *state,
Line 216  prolog2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 doctype0(PROLOG_STATE *state,  doctype0(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 264  doctype1(PROLOG_STATE *state,
Line 264  doctype1(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 doctype2(PROLOG_STATE *state,  doctype2(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 281  doctype2(PROLOG_STATE *state,
Line 281  doctype2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 doctype3(PROLOG_STATE *state,  doctype3(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 298  doctype3(PROLOG_STATE *state,
Line 298  doctype3(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 doctype4(PROLOG_STATE *state,  doctype4(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 318  doctype4(PROLOG_STATE *state,
Line 318  doctype4(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 doctype5(PROLOG_STATE *state,  doctype5(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 437  externalSubset1(PROLOG_STATE *state,
Line 437  externalSubset1(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity0(PROLOG_STATE *state,  entity0(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 457  entity0(PROLOG_STATE *state,
Line 457  entity0(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity1(PROLOG_STATE *state,  entity1(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 502  entity2(PROLOG_STATE *state,
Line 502  entity2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity3(PROLOG_STATE *state,  entity3(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 519  entity3(PROLOG_STATE *state,
Line 519  entity3(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity4(PROLOG_STATE *state,  entity4(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 559  entity5(PROLOG_STATE *state,
Line 559  entity5(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity6(PROLOG_STATE *state,  entity6(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 605  entity7(PROLOG_STATE *state,
Line 605  entity7(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity8(PROLOG_STATE *state,  entity8(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 622  entity8(PROLOG_STATE *state,
Line 622  entity8(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity9(PROLOG_STATE *state,  entity9(PROLOG_STATE *state,
         int tok,          int tok,
         const char *ptr,          const char *UNUSED_P(ptr),
         const char *end,          const char *UNUSED_P(end),
         const ENCODING *enc)          const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 639  entity9(PROLOG_STATE *state,
Line 639  entity9(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 entity10(PROLOG_STATE *state,  entity10(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 656  entity10(PROLOG_STATE *state,
Line 656  entity10(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 notation0(PROLOG_STATE *state,  notation0(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 697  notation1(PROLOG_STATE *state,
Line 697  notation1(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 notation2(PROLOG_STATE *state,  notation2(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 714  notation2(PROLOG_STATE *state,
Line 714  notation2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 notation3(PROLOG_STATE *state,  notation3(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 732  notation3(PROLOG_STATE *state,
Line 732  notation3(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 notation4(PROLOG_STATE *state,  notation4(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 753  notation4(PROLOG_STATE *state,
Line 753  notation4(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist0(PROLOG_STATE *state,  attlist0(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 771  attlist0(PROLOG_STATE *state,
Line 771  attlist0(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist1(PROLOG_STATE *state,  attlist1(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 833  attlist2(PROLOG_STATE *state,
Line 833  attlist2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist3(PROLOG_STATE *state,  attlist3(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 852  attlist3(PROLOG_STATE *state,
Line 852  attlist3(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist4(PROLOG_STATE *state,  attlist4(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 872  attlist4(PROLOG_STATE *state,
Line 872  attlist4(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist5(PROLOG_STATE *state,  attlist5(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 889  attlist5(PROLOG_STATE *state,
Line 889  attlist5(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist6(PROLOG_STATE *state,  attlist6(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 906  attlist6(PROLOG_STATE *state,
Line 906  attlist6(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist7(PROLOG_STATE *state,  attlist7(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 967  attlist8(PROLOG_STATE *state,
Line 967  attlist8(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 attlist9(PROLOG_STATE *state,  attlist9(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 984  attlist9(PROLOG_STATE *state,
Line 984  attlist9(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element0(PROLOG_STATE *state,  element0(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1072  element2(PROLOG_STATE *state,
Line 1072  element2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element3(PROLOG_STATE *state,  element3(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1097  element3(PROLOG_STATE *state,
Line 1097  element3(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element4(PROLOG_STATE *state,  element4(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1115  element4(PROLOG_STATE *state,
Line 1115  element4(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element5(PROLOG_STATE *state,  element5(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1136  element5(PROLOG_STATE *state,
Line 1136  element5(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element6(PROLOG_STATE *state,  element6(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1166  element6(PROLOG_STATE *state,
Line 1166  element6(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 element7(PROLOG_STATE *state,  element7(PROLOG_STATE *state,
          int tok,           int tok,
          const char *ptr,           const char *UNUSED_P(ptr),
          const char *end,           const char *UNUSED_P(end),
          const ENCODING *enc)           const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1240  condSect0(PROLOG_STATE *state,
Line 1240  condSect0(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 condSect1(PROLOG_STATE *state,  condSect1(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1258  condSect1(PROLOG_STATE *state,
Line 1258  condSect1(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 condSect2(PROLOG_STATE *state,  condSect2(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1277  condSect2(PROLOG_STATE *state,
Line 1277  condSect2(PROLOG_STATE *state,
 static int PTRCALL  static int PTRCALL
 declClose(PROLOG_STATE *state,  declClose(PROLOG_STATE *state,
           int tok,            int tok,
           const char *ptr,            const char *UNUSED_P(ptr),
           const char *end,            const char *UNUSED_P(end),
           const ENCODING *enc)            const ENCODING *UNUSED_P(enc))
 {  {
   switch (tok) {    switch (tok) {
   case XML_TOK_PROLOG_S:    case XML_TOK_PROLOG_S:
Line 1292  declClose(PROLOG_STATE *state,
Line 1292  declClose(PROLOG_STATE *state,
 }  }
   
 static int PTRCALL  static int PTRCALL
 error(PROLOG_STATE *state,  error(PROLOG_STATE *UNUSED_P(state),
       int tok,        int UNUSED_P(tok),
       const char *ptr,        const char *UNUSED_P(ptr),
       const char *end,        const char *UNUSED_P(end),
       const ENCODING *enc)        const ENCODING *UNUSED_P(enc))
 {  {
   return XML_ROLE_NONE;    return XML_ROLE_NONE;
 }  }

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.2.14.1

CVSweb <webmaster@jp.NetBSD.org>