Diff for /Amaya/amaya/fetchHTMLname.c between versions 1.26 and 1.27

version 1.26, 2001/03/16 16:40:27 version 1.27, 2001/03/16 17:14:01
Line 1 Line 1
 /*  /*
  *   *
  *  (c) COPYRIGHT MIT and INRIA, 1996-2000   *  (c) COPYRIGHT MIT and INRIA, 1996-2001
  *  Please first read the full copyright statement in file COPYRIGHT.   *  Please first read the full copyright statement in file COPYRIGHT.
  *   *
  */   */
Line 29 Line 29
   GI is the input string    GI is the input string
   gi is the output string    gi is the output string
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  
 static void      LowercaseGI (char *GI, char *gi)  static void      LowercaseGI (char *GI, char *gi)
 #else  
 static void      LowercaseGI (GI, gi)  
 char          *GI;  
 char          *gi;  
 #endif  
 {  {
   int        i;    int        i;
   
Line 57  char          *gi; Line 51  char          *gi;
    When returning, schema contains the Thot SSchema that defines that element,     When returning, schema contains the Thot SSchema that defines that element,
    Returns -1 and schema = NULL if not found.     Returns -1 and schema = NULL if not found.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  int MapGI (char *gi, SSchema *schema, Document doc)
 int                 MapGI (char *gi, SSchema *schema, Document doc)  
 #else  
 int                 MapGI (gi, schema, doc)  
 char*             gi;  
 SSchema*            schema;  
 Document            doc;  
 #endif  
 {  {
   ElementType     elType;    ElementType     elType;
   char*         ptr;     char           *ptr; 
   char          c;    char            c;
   int             i;    int             i;
   int             entry;    int             entry;
   ThotBool        isHTML;     ThotBool        isHTML; 
Line 148  Document            doc; Line 135  Document            doc;
    GIType  search in mapping tables the Element type associated with     GIType  search in mapping tables the Element type associated with
    a given GI Name. If not found returns zero.     a given GI Name. If not found returns zero.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  void                GIType (char *gi, ElementType *elType, Document doc)
 void                GIType (char* gi, ElementType *elType, Document doc)  
 #else  
 void                GIType (gi, elType, doc)  
 char*             gi;  
 ElementType*        elType;  
 Document            doc;  
 #endif  
 {  {
   char              c;    char              c;
   char*             ptr;    char             *ptr;
   int                 i;    int               i;
   ThotBool            level;     ThotBool          level; 
   
   /* TODO: use NameSpaces to search in the right table */    /* TODO: use NameSpaces to search in the right table */
   elType->ElSSchema = NULL;    elType->ElSSchema = NULL;
Line 205  Document            doc; Line 185  Document            doc;
    attribute of name Attr and returns a pointer to that entry,     attribute of name Attr and returns a pointer to that entry,
    as well as the corresponding Thot SSchema     as well as the corresponding Thot SSchema
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  
 AttributeMapping   *MapAttr (char *attrName, SSchema *schema,  AttributeMapping   *MapAttr (char *attrName, SSchema *schema,
                              int elemEntry, ThotBool *level, Document doc)                               int elemEntry, ThotBool *level, Document doc)
 #else  
 AttributeMapping   *MapAttr (attrName, schema, elemEntry, level, doc)  
 char             *attrName;  
 SSchema            *schema;  
 int                 elemEntry;  
 ThotBool           *level  
 Document            doc;  
 #endif  
 {  {
   typeName          attr, elem;    typeName          attr, elem;
   int               i;    int               i;
Line 238  Document            doc; Line 209  Document            doc;
    Search in the Attribute Mapping Table the entry for the attribute     Search in the Attribute Mapping Table the entry for the attribute
    of name Attr and returns the corresponding Thot attribute type.     of name Attr and returns the corresponding Thot attribute type.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  
 AttributeMapping *MapHTMLAttribute (char *attrName,  AttributeMapping *MapHTMLAttribute (char *attrName,
                                     AttributeType *attrType,                                      AttributeType *attrType,
                                     char *elementName,                                      char *elementName,
                                     ThotBool *level,                                      ThotBool *level,
                                     Document doc)                                      Document doc)
 #else  
 AttributeMapping *MapHTMLAttribute (attrName, attrType,  
                                     elementName, level, doc)  
 char        *attrName;  
 AttributeType *attrType;  
 char        *elementName;  
 ThotBool      *level  
 Document       doc;  
 #endif  
 {  {
   int             i;    int             i;
   

Removed from v.1.26  
changed lines
  Added in v.1.27


Webmaster