X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..2656c66b5b30d5597e842a751c7f19ad6c2fe31a:/create_regex_tables diff --git a/create_regex_tables b/create_regex_tables index bd799ba..7544b75 100644 --- a/create_regex_tables +++ b/create_regex_tables @@ -1,4 +1,4 @@ -# Copyright (C) 2010 Apple Inc. All rights reserved. +# Copyright (C) 2010, 2013 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -90,11 +90,11 @@ for name, classes in types.items(): function += ("{\n") if emitTables and classes["UseTable"]: if "Inverse" in classes: - function += (" CharacterClass* characterClass = new CharacterClass(CharacterClassTable::create(_%sData, true));\n" % (classes["Inverse"])) + function += (" CharacterClass* characterClass = new CharacterClass(_%sData, true);\n" % (classes["Inverse"])) else: - function += (" CharacterClass* characterClass = new CharacterClass(CharacterClassTable::create(_%sData, false));\n" % (name)) + function += (" CharacterClass* characterClass = new CharacterClass(_%sData, false);\n" % (name)) else: - function += (" CharacterClass* characterClass = new CharacterClass(0);\n") + function += (" CharacterClass* characterClass = new CharacterClass;\n") for (min, max) in ranges: if (min == max): if (min > 127):