Skip to content

Commit

Permalink
Merge pull request #28 from jonalter/TIMOB-18208
Browse files Browse the repository at this point in the history
[TIMOB-18208] Adding name mangling header to pass AppStore Validation
  • Loading branch information
pec1985 committed Feb 12, 2015
2 parents d46bd04 + 8bd15be commit 6a08df3
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@
C2FCAE1217A9C24E0034C735 /* BytecodeLivenessAnalysis.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C2FCAE0E17A9C24E0034C735 /* BytecodeLivenessAnalysis.cpp */; };
C2FCAE1317A9C24E0034C735 /* BytecodeLivenessAnalysis.h in Headers */ = {isa = PBXBuildFile; fileRef = C2FCAE0F17A9C24E0034C735 /* BytecodeLivenessAnalysis.h */; settings = {ATTRIBUTES = (Private, ); }; };
C2FE18A416BAEC4000AF3061 /* StructureRareData.h in Headers */ = {isa = PBXBuildFile; fileRef = C2FE18A316BAEC4000AF3061 /* StructureRareData.h */; settings = {ATTRIBUTES = (Private, ); }; };
CE08C3921A796DCA009FD7A4 /* TiNameMangle.h in Headers */ = {isa = PBXBuildFile; fileRef = CE08C3911A796DCA009FD7A4 /* TiNameMangle.h */; settings = {ATTRIBUTES = (Private, ); }; };
DDF7ABD411F60ED200108E36 /* GCActivityCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = DDF7ABD211F60ED200108E36 /* GCActivityCallback.h */; settings = {ATTRIBUTES = (Private, ); }; };
E124A8F70E555775003091F1 /* OpaqueTiString.h in Headers */ = {isa = PBXBuildFile; fileRef = E124A8F50E555775003091F1 /* OpaqueTiString.h */; settings = {ATTRIBUTES = (Private, ); }; };
E124A8F80E555775003091F1 /* OpaqueTiString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E124A8F60E555775003091F1 /* OpaqueTiString.cpp */; };
Expand Down Expand Up @@ -2618,6 +2619,7 @@
C2FCAE0E17A9C24E0034C735 /* BytecodeLivenessAnalysis.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BytecodeLivenessAnalysis.cpp; sourceTree = "<group>"; };
C2FCAE0F17A9C24E0034C735 /* BytecodeLivenessAnalysis.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BytecodeLivenessAnalysis.h; sourceTree = "<group>"; };
C2FE18A316BAEC4000AF3061 /* StructureRareData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StructureRareData.h; sourceTree = "<group>"; };
CE08C3911A796DCA009FD7A4 /* TiNameMangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TiNameMangle.h; path = ../TiNameMangle.h; sourceTree = "<group>"; };
D21202280AD4310C00ED79B6 /* DateConversion.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DateConversion.cpp; sourceTree = "<group>"; };
D21202290AD4310C00ED79B6 /* DateConversion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DateConversion.h; sourceTree = "<group>"; };
DDF7ABD211F60ED200108E36 /* GCActivityCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCActivityCallback.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2766,6 +2768,7 @@
0867D691FE84028FC02AAC07 /* JavaScriptCore */ = {
isa = PBXGroup;
children = (
CE08C3911A796DCA009FD7A4 /* TiNameMangle.h */,
8604F4F2143A6C4400B295F5 /* ChangeLog */,
F692A8540255597D01FF60F7 /* create_hash_table */,
A718F8211178EB4B002465A7 /* create_regex_tables */,
Expand Down Expand Up @@ -4364,6 +4367,7 @@
86D3B2C410156BDE002865E7 /* ARMAssembler.h in Headers */,
86ADD1450FDDEA980006EEC2 /* ARMv7Assembler.h in Headers */,
65C0285D1717966800351E35 /* ARMv7DOpcode.h in Headers */,
CE08C3921A796DCA009FD7A4 /* TiNameMangle.h in Headers */,
2A68295B1875F80500B6C3E2 /* CopyWriteBarrier.h in Headers */,
2A4EC90C1860D6C20094F782 /* WriteBarrierBuffer.h in Headers */,
A532439218569709002ED692 /* CodeGeneratorInspector.py in Headers */,
Expand Down
2 changes: 2 additions & 0 deletions JavaScriptCore/JavaScriptCorePrefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#define NULL ((void *)0)
#endif

#include "TiNameMangle.h"

#include <ctype.h>
#include <float.h>
#include <locale.h>
Expand Down
17 changes: 17 additions & 0 deletions TiNameMangle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Appcelerator Titanium Mobile
*
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/

#ifndef TiNameMangle_h
#define TiNameMangle_h

#define WTFCrash Ti_WTFCrash
#define WTFLogAlways Ti_WTFLogAlways
#define WTFReportFatalError Ti_WTFReportFatalError
#define WebCoreWebThreadIsLockedOrDisabled Ti_WebCoreWebThreadIsLockedOrDisabled

#endif
16 changes: 16 additions & 0 deletions WTF/WTF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
B38FD7BD168953E80065C969 /* FeatureDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = B38FD7BC168953E80065C969 /* FeatureDefines.h */; };
CD5497AC15857D0300B5BC30 /* MediaTime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CD5497AA15857D0300B5BC30 /* MediaTime.cpp */; };
CD5497AD15857D0300B5BC30 /* MediaTime.h in Headers */ = {isa = PBXBuildFile; fileRef = CD5497AB15857D0300B5BC30 /* MediaTime.h */; };
CEF0DADC1A780C0600A3B086 /* TiNameMangle.h in Headers */ = {isa = PBXBuildFile; fileRef = CEF0DADB1A780C0600A3B086 /* TiNameMangle.h */; };
EB95E1F0161A72410089A2F5 /* ByteOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = EB95E1EF161A72410089A2F5 /* ByteOrder.h */; };
FEDACD3D1630F83F00C69634 /* StackStats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FEDACD3B1630F83F00C69634 /* StackStats.cpp */; };
FEDACD3E1630F83F00C69634 /* StackStats.h in Headers */ = {isa = PBXBuildFile; fileRef = FEDACD3C1630F83F00C69634 /* StackStats.h */; };
Expand Down Expand Up @@ -546,6 +547,7 @@
B38FD7BC168953E80065C969 /* FeatureDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeatureDefines.h; sourceTree = "<group>"; };
CD5497AA15857D0300B5BC30 /* MediaTime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaTime.cpp; sourceTree = "<group>"; };
CD5497AB15857D0300B5BC30 /* MediaTime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaTime.h; sourceTree = "<group>"; };
CEF0DADB1A780C0600A3B086 /* TiNameMangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TiNameMangle.h; path = ../TiNameMangle.h; sourceTree = "<group>"; };
EB95E1EF161A72410089A2F5 /* ByteOrder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ByteOrder.h; sourceTree = "<group>"; };
FEDACD3B1630F83F00C69634 /* StackStats.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StackStats.cpp; sourceTree = "<group>"; };
FEDACD3C1630F83F00C69634 /* StackStats.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StackStats.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -582,6 +584,7 @@
5D247B5714689B8600E78B76 = {
isa = PBXGroup;
children = (
CEF0DADB1A780C0600A3B086 /* TiNameMangle.h */,
5D247B6D14689C4700E78B76 /* Configurations */,
5D247B6314689B8600E78B76 /* Products */,
5D247B7614689D7600E78B76 /* Source */,
Expand Down Expand Up @@ -960,6 +963,7 @@
A8A47438151A825B004123FF /* AtomicStringImpl.h in Headers */,
9BD8F40B176C2B470002D865 /* AtomicStringTable.h in Headers */,
1469419C16EAB10A0024E146 /* AutodrainedPool.h in Headers */,
CEF0DADC1A780C0600A3B086 /* TiNameMangle.h in Headers */,
A8A47389151A825B004123FF /* AVLTree.h in Headers */,
8134013915B092FD001FF0B8 /* Base64.h in Headers */,
A8A473A9151A825B004123FF /* bignum-dtoa.h in Headers */,
Expand Down Expand Up @@ -1308,13 +1312,21 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
OTHER_CFLAGS = (
"-include",
TiNameMangle.h,
);
};
name = Debug;
};
5D247B6814689B8600E78B76 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
OTHER_CFLAGS = (
"-include",
TiNameMangle.h,
);
};
name = Release;
};
Expand All @@ -1330,6 +1342,10 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
OTHER_CFLAGS = (
"-include",
TiNameMangle.h,
);
};
name = Production;
};
Expand Down

0 comments on commit 6a08df3

Please sign in to comment.