Ignore:
Timestamp:
Apr 29, 2008, 7:34:13 AM (17 years ago)
Author:
Simon Hausmann
Message:

Qt/Windows build fix. The externally declared hash tables are actually
declared const and the const is mangled in the symbol name, so when
importing they also need to be marked const.

When compiling without MULTIPLE_THREADS use a const HashTable&
instead of a HashTable& in ThreadClassInfoHashTables to avoid
initializing the latter with a const reference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.cpp

    r32652 r32687  
    6464namespace KJS {
    6565
    66 extern HashTable arrayTable;
    67 extern HashTable dateTable;
    68 extern HashTable mathTable;
    69 extern HashTable numberTable;
    70 extern HashTable RegExpImpTable;
    71 extern HashTable RegExpObjectImpTable;
    72 extern HashTable stringTable;
     66extern const HashTable arrayTable;
     67extern const HashTable dateTable;
     68extern const HashTable mathTable;
     69extern const HashTable numberTable;
     70extern const HashTable RegExpImpTable;
     71extern const HashTable RegExpObjectImpTable;
     72extern const HashTable stringTable;
    7373
    7474// Default number of ticks before a timeout check should be done.
     
    166166    HashTable stringTable;
    167167#else
    168     HashTable& arrayTable;
    169     HashTable& dateTable;
    170     HashTable& mathTable;
    171     HashTable& numberTable;
    172     HashTable& RegExpImpTable;
    173     HashTable& RegExpObjectImpTable;
    174     HashTable& stringTable;
     168    const HashTable& arrayTable;
     169    const HashTable& dateTable;
     170    const HashTable& mathTable;
     171    const HashTable& numberTable;
     172    const HashTable& RegExpImpTable;
     173    const HashTable& RegExpObjectImpTable;
     174    const HashTable& stringTable;
    175175#endif
    176176};
Note: See TracChangeset for help on using the changeset viewer.