Ignore:
Timestamp:
Aug 21, 2001, 7:29:38 PM (24 years ago)
Author:
umoeller
Message:

Misc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/xmltok_impl.c

    r97 r98  
     1
    12/*
    2 Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
    3 See the file COPYING for copying permission.
    4 */
     3 *sourcefile xmltok_impl.c
     4 *      part of the expat implementation. See xmlparse.c.
     5 *
     6 *      NOTE: This file must not be compiled directly. It is
     7 *      #include'd from xmltok.c several times.
     8 */
     9
     10/*
     11 *      Copyright (C) 2001 Ulrich M”ller.
     12 *      Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd.
     13 *                                     and Clark Cooper.
     14 *
     15 *      Permission is hereby granted, free of charge, to any person obtaining
     16 *      a copy of this software and associated documentation files (the
     17 *      "Software"), to deal in the Software without restriction, including
     18 *      without limitation the rights to use, copy, modify, merge, publish,
     19 *      distribute, sublicense, and/or sell copies of the Software, and to
     20 *      permit persons to whom the Software is furnished to do so, subject to
     21 *      the following conditions:
     22 *
     23 *      The above copyright notice and this permission notice shall be included
     24 *      in all copies or substantial portions of the Software.
     25 *
     26 *      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     27 *      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     28 *      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     29 *      IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
     30 *      CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     31 *      TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     32 *      SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     33 */
    534
    635#ifndef IS_INVALID_CHAR
     
    88117/* ptr points to character following "<!-" */
    89118
    90 static
    91 int PREFIX(scanComment)(const ENCODING *enc, const char *ptr, const char *end,
    92             const char **nextTokPtr)
     119static int EXPATENTRY PREFIX(scanComment)(const ENCODING *enc,
     120                                          const char *ptr,
     121                                          const char *end,
     122                                          const char **nextTokPtr)
    93123{
    94124  if (ptr != end) {
     
    126156/* ptr points to character following "<!" */
    127157
    128 static
    129 int PREFIX(scanDecl)(const ENCODING *enc, const char *ptr, const char *end,
     158static int EXPATENTRY PREFIX(scanDecl)(const ENCODING *enc, const char *ptr, const char *end,
    130159             const char **nextTokPtr)
    131160{
     
    173202}
    174203
    175 static
    176 int PREFIX(checkPiTarget)(const ENCODING *enc, const char *ptr, const char *end, int *tokPtr)
     204static int EXPATENTRY PREFIX(checkPiTarget)(const ENCODING *enc, const char *ptr, const char *end, int *tokPtr)
    177205{
    178206  int upper = 0;
     
    217245/* ptr points to character following "<?" */
    218246
    219 static
    220 int PREFIX(scanPi)(const ENCODING *enc, const char *ptr, const char *end,
     247static int EXPATENTRY PREFIX(scanPi)(const ENCODING *enc, const char *ptr, const char *end,
    221248           const char **nextTokPtr)
    222249{
     
    280307
    281308
    282 static
    283 int PREFIX(scanCdataSection)(const ENCODING *enc, const char *ptr, const char *end,
     309static int EXPATENTRY PREFIX(scanCdataSection)(const ENCODING *enc, const char *ptr, const char *end,
    284310                 const char **nextTokPtr)
    285311{
     
    299325}
    300326
    301 static
    302 int PREFIX(cdataSectionTok)(const ENCODING *enc, const char *ptr, const char *end,
     327static int EXPATENTRY PREFIX(cdataSectionTok)(const ENCODING *enc, const char *ptr, const char *end,
    303328                const char **nextTokPtr)
    304329{
     
    377402/* ptr points to character following "</" */
    378403
    379 static
    380 int PREFIX(scanEndTag)(const ENCODING *enc, const char *ptr, const char *end,
     404static int EXPATENTRY PREFIX(scanEndTag)(const ENCODING *enc, const char *ptr, const char *end,
    381405               const char **nextTokPtr)
    382406{
     
    425449/* ptr points to character following "&#X" */
    426450
    427 static
    428 int PREFIX(scanHexCharRef)(const ENCODING *enc, const char *ptr, const char *end,
     451static int EXPATENTRY PREFIX(scanHexCharRef)(const ENCODING *enc, const char *ptr, const char *end,
    429452               const char **nextTokPtr)
    430453{
     
    457480/* ptr points to character following "&#" */
    458481
    459 static
    460 int PREFIX(scanCharRef)(const ENCODING *enc, const char *ptr, const char *end,
     482static int EXPATENTRY PREFIX(scanCharRef)(const ENCODING *enc, const char *ptr, const char *end,
    461483            const char **nextTokPtr)
    462484{
     
    489511/* ptr points to character following "&" */
    490512
    491 static
    492 int PREFIX(scanRef)(const ENCODING *enc, const char *ptr, const char *end,
     513static int EXPATENTRY PREFIX(scanRef)(const ENCODING *enc, const char *ptr, const char *end,
    493514            const char **nextTokPtr)
    494515{
     
    519540/* ptr points to character following first character of attribute name */
    520541
    521 static
    522 int PREFIX(scanAtts)(const ENCODING *enc, const char *ptr, const char *end,
     542static int EXPATENTRY PREFIX(scanAtts)(const ENCODING *enc, const char *ptr, const char *end,
    523543             const char **nextTokPtr)
    524544{
     
    679699/* ptr points to character following "<" */
    680700
    681 static
    682 int PREFIX(scanLt)(const ENCODING *enc, const char *ptr, const char *end,
     701static int EXPATENTRY PREFIX(scanLt)(const ENCODING *enc, const char *ptr, const char *end,
    683702           const char **nextTokPtr)
    684703{
     
    778797}
    779798
    780 static
    781 int PREFIX(contentTok)(const ENCODING *enc, const char *ptr, const char *end,
     799static int EXPATENTRY PREFIX(contentTok)(const ENCODING *enc, const char *ptr, const char *end,
    782800               const char **nextTokPtr)
    783801{
     
    877895/* ptr points to character following "%" */
    878896
    879 static
    880 int PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end,
     897static int EXPATENTRY PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end,
    881898            const char **nextTokPtr)
    882899{
     
    906923}
    907924
    908 static
    909 int PREFIX(scanPoundName)(const ENCODING *enc, const char *ptr, const char *end,
     925static int EXPATENTRY PREFIX(scanPoundName)(const ENCODING *enc, const char *ptr, const char *end,
    910926              const char **nextTokPtr)
    911927{
     
    933949}
    934950
    935 static
    936 int PREFIX(scanLit)(int open, const ENCODING *enc,
     951static int EXPATENTRY PREFIX(scanLit)(int open, const ENCODING *enc,
    937952            const char *ptr, const char *end,
    938953            const char **nextTokPtr)
     
    965980}
    966981
    967 static
    968 int PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end,
     982static int EXPATENTRY PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end,
    969983              const char **nextTokPtr)
    970984{
     
    11931207}
    11941208
    1195 static
    1196 int PREFIX(attributeValueTok)(const ENCODING *enc, const char *ptr, const char *end,
     1209static int EXPATENTRY PREFIX(attributeValueTok)(const ENCODING *enc, const char *ptr, const char *end,
    11971210                  const char **nextTokPtr)
    11981211{
     
    12511264}
    12521265
    1253 static
    1254 int PREFIX(entityValueTok)(const ENCODING *enc, const char *ptr, const char *end,
     1266static int EXPATENTRY PREFIX(entityValueTok)(const ENCODING *enc, const char *ptr, const char *end,
    12551267               const char **nextTokPtr)
    12561268{
     
    13081320#ifdef XML_DTD
    13091321
    1310 static
    1311 int PREFIX(ignoreSectionTok)(const ENCODING *enc, const char *ptr, const char *end,
     1322static int EXPATENTRY PREFIX(ignoreSectionTok)(const ENCODING *enc, const char *ptr, const char *end,
    13121323                 const char **nextTokPtr)
    13131324{
     
    13611372#endif /* XML_DTD */
    13621373
    1363 static
    1364 int PREFIX(isPublicId)(const ENCODING *enc, const char *ptr, const char *end,
     1374static int EXPATENTRY PREFIX(isPublicId)(const ENCODING *enc, const char *ptr, const char *end,
    13651375               const char **badPtr)
    13661376{
     
    14201430are stored in atts. */
    14211431
    1422 static
    1423 int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
     1432static int EXPATENTRY PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
    14241433            int attsMax, ATTRIBUTE *atts)
    14251434{
     
    15131522}
    15141523
    1515 static
    1516 int PREFIX(charRefNumber)(const ENCODING *enc, const char *ptr)
     1524static int EXPATENTRY PREFIX(charRefNumber)(const ENCODING *enc, const char *ptr)
    15171525{
    15181526  int result = 0;
     
    15531561}
    15541562
    1555 static
    1556 int PREFIX(predefinedEntityName)(const ENCODING *enc, const char *ptr, const char *end)
     1563static int EXPATENTRY PREFIX(predefinedEntityName)(const ENCODING *enc, const char *ptr, const char *end)
    15571564{
    15581565  switch ((end - ptr)/MINBPC(enc)) {
     
    16061613}
    16071614
    1608 static
    1609 int PREFIX(sameName)(const ENCODING *enc, const char *ptr1, const char *ptr2)
     1615static int EXPATENTRY PREFIX(sameName)(const ENCODING *enc, const char *ptr1, const char *ptr2)
    16101616{
    16111617  for (;;) {
     
    16701676}
    16711677
    1672 static
    1673 int PREFIX(nameMatchesAscii)(const ENCODING *enc, const char *ptr1,
     1678static int EXPATENTRY PREFIX(nameMatchesAscii)(const ENCODING *enc, const char *ptr1,
    16741679                 const char *end1, const char *ptr2)
    16751680{
     
    16831688}
    16841689
    1685 static
    1686 int PREFIX(nameLength)(const ENCODING *enc, const char *ptr)
     1690static int EXPATENTRY PREFIX(nameLength)(const ENCODING *enc, const char *ptr)
    16871691{
    16881692  const char *start = ptr;
     
    17101714}
    17111715
    1712 static
    1713 const char *PREFIX(skipS)(const ENCODING *enc, const char *ptr)
     1716static const char* EXPATENTRY PREFIX(skipS)(const ENCODING *enc, const char *ptr)
    17141717{
    17151718  for (;;) {
     
    17261729}
    17271730
    1728 static
    1729 void PREFIX(updatePosition)(const ENCODING *enc,
     1731static void EXPATENTRY PREFIX(updatePosition)(const ENCODING *enc,
    17301732                const char *ptr,
    17311733                const char *end,
Note: See TracChangeset for help on using the changeset viewer.