Changeset 267 for trunk/src/symtab.h


Ignore:
Timestamp:
Mar 20, 2009, 12:18:53 PM (10 years ago)
Author:
ksherdy
Message:

Construct and pass string literals as read only (const char *) types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/symtab.h

    r184 r267  
    2525        int        lgth;
    2626};
    27        
    28 char * predefined[] = {"lt", "gt", "amp", "quot", "apos"};
    2927
     28const char * predefined[] = {"lt", "gt", "amp", "quot", "apos"};
    3029
    3130class Symbol_Table {
     
    3433
    3534
    36         int Insert_Name(char * name, int lgth);
    37         int ASCII_Lookup_or_Insert_Name(char * name, int lgth); 
     35        int Insert_Name(const char * name, int lgth);
     36        int ASCII_Lookup_or_Insert_Name(char * name, int lgth);
    3837        int UTF8_Lookup_or_Insert_Name(char * name, int lgth);
    39         int ASCII_Lookup_or_Insert_Nmtoken(char * name, int lgth);     
     38        int ASCII_Lookup_or_Insert_Nmtoken(char * name, int lgth);
    4039        int UTF8_Lookup_or_Insert_Nmtoken(char * name, int lgth);
    4140
     
    4544        char * Get_UTF8_nmtoken(int nmtokenID);
    4645        int Get_UTF8_nmtoken_lgth(int nmtokenID);
    47        
     46
    4847        char * ReserveSymbolSpace(int u8_lgth);
    4948        int LookupOrInsertReserved();
    5049        int LookupOrInsertReserved_nmtoken();
    51        
     50
    5251        XML_version version;
    5352        vector<Name_Data> UTF8NameTable;
Note: See TracChangeset for help on using the changeset viewer.