Changeset 27689 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 11, 2007, 11:24:37 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r27688 r27689 1 2007-11-11 Darin Adler <[email protected]> 2 3 - try another way of fixing dftables builds -- refactor pcre_internal.h a bit 4 5 * pcre/pcre_internal.h: Make most of this header do nothing when DFTABLES is set. 6 Later we can break it into two files. 7 8 * JavaScriptCore.vcproj/dftables/dftables.vcproj: Take out now-unneeded include paths. 9 * pcre/dftables.cpp: Set DFTABLES. Use delete instead of free. 10 * pcre/dftables.pro: Take out now-unneeded include paths. 11 * pcre/pcre_maketables.cpp: Use new instead of malloc. 12 1 13 2007-11-11 Darin Adler <[email protected]> 2 14 -
trunk/JavaScriptCore/JavaScriptCore.vcproj/dftables/dftables.vcproj
r27686 r27689 42 42 Name="VCCLCompilerTool" 43 43 Optimization="0" 44 AdditionalIncludeDirectories="../../wtf;../..;"$(WebKitLibrariesDir)\include\""45 44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE" 46 45 MinimalRebuild="true" -
trunk/JavaScriptCore/pcre/dftables.cpp
r27686 r27689 40 40 41 41 /* This is a freestanding support program to generate a file containing default 42 character tables for PCRE. The tables are built according to the default C 43 locale. Now that pcre_maketables is a function visible to the outside world, we 44 make use of its code from here in order to be consistent. */ 42 character tables. The tables are built according to the default C 43 locale. */ 44 45 #define DFTABLES 45 46 46 47 #include <ctype.h> … … 160 161 161 162 fclose(f); 162 free((void *)base_of_tables);163 delete []base_of_tables; 163 164 return 0; 164 165 } -
trunk/JavaScriptCore/pcre/dftables.pro
r27688 r27689 6 6 DESTDIR = tmp 7 7 8 INCLUDEPATH += $$PWD/.. $$PWD/../wtf9 10 8 gtk-port { 11 9 DEFINES += BUILDING_GTK__ BUILDING_CAIRO__ -
trunk/JavaScriptCore/pcre/pcre_internal.h
r27686 r27689 44 44 #ifndef PCRE_INTERNAL_H 45 45 #define PCRE_INTERNAL_H 46 47 #ifndef DFTABLES 46 48 47 49 #include "Assertions.h" … … 538 540 } compile_data; 539 541 542 /* Layout of the UCP type table that translates property names into types and 543 codes. */ 544 545 typedef struct { 546 const char *name; 547 pcre_uint16 type; 548 pcre_uint16 value; 549 } ucp_type_table; 550 551 552 /* Internal shared data tables. These are tables that are used by more than one 553 of the exported public functions. They have to be "external" in the C sense, 554 but are not part of the PCRE public API. The data for these tables is in the 555 pcre_tables.c module. */ 556 557 extern const int _pcre_utf8_table1[]; 558 extern const int _pcre_utf8_table2[]; 559 extern const int _pcre_utf8_table3[]; 560 extern const uschar _pcre_utf8_table4[]; 561 562 extern const int _pcre_utf8_table1_size; 563 564 extern const uschar _pcre_default_tables[]; 565 566 567 /* Internal shared functions. These are functions that are used by more than 568 one of the exported public functions. They have to be "external" in the C 569 sense, but are not part of the PCRE public API. */ 570 571 extern int _pcre_ord2utf8(int, uschar *); 572 extern int _pcre_ucp_othercase(const int); 573 extern BOOL _pcre_xclass(int, const uschar *); 574 575 #define IS_NEWLINE(nl) ((nl) == 0xA || (nl) == 0xD || (nl) == 0x2028 || (nl) == 0x2029) 576 577 #endif 578 540 579 /* Bit definitions for entries in the pcre_ctypes table. */ 541 580 … … 561 600 #define tables_length (ctypes_offset + 128) 562 601 563 /* Layout of the UCP type table that translates property names into types and564 codes. */565 566 typedef struct {567 const char *name;568 pcre_uint16 type;569 pcre_uint16 value;570 } ucp_type_table;571 572 573 /* Internal shared data tables. These are tables that are used by more than one574 of the exported public functions. They have to be "external" in the C sense,575 but are not part of the PCRE public API. The data for these tables is in the576 pcre_tables.c module. */577 578 extern const int _pcre_utf8_table1[];579 extern const int _pcre_utf8_table2[];580 extern const int _pcre_utf8_table3[];581 extern const uschar _pcre_utf8_table4[];582 583 extern const int _pcre_utf8_table1_size;584 585 extern const uschar _pcre_default_tables[];586 587 588 /* Internal shared functions. These are functions that are used by more than589 one of the exported public functions. They have to be "external" in the C590 sense, but are not part of the PCRE public API. */591 592 extern int _pcre_ord2utf8(int, uschar *);593 extern int _pcre_ucp_othercase(const int);594 extern BOOL _pcre_xclass(int, const uschar *);595 596 #define IS_NEWLINE(nl) ((nl) == 0xA || (nl) == 0xD || (nl) == 0x2028 || (nl) == 0x2029)597 598 602 #endif 599 603 -
trunk/JavaScriptCore/pcre/pcre_maketables.cpp
r27686 r27689 59 59 int i; 60 60 61 yield = (unsigned char*)malloc(tables_length);61 yield = new unsigned char[tables_length]; 62 62 63 63 if (yield == NULL) return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.