00001
00002
00003 #include "lookup.h"
00004
00005 using namespace KJS;
00006
00007 namespace KJS {
00008
00009 const struct HashEntry mathTableEntries[] = {
00010 { "atan", MathObjectImp::ATan, DontEnum|Function, 1, &mathTableEntries[25] },
00011 { 0, 0, 0, 0, 0 },
00012 { "SQRT2", MathObjectImp::Sqrt2, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[23] },
00013 { 0, 0, 0, 0, 0 },
00014 { 0, 0, 0, 0, 0 },
00015 { 0, 0, 0, 0, 0 },
00016 { "E", MathObjectImp::Euler, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[21] },
00017 { "asin", MathObjectImp::ASin, DontEnum|Function, 1, &mathTableEntries[26] },
00018 { "atan2", MathObjectImp::ATan2, DontEnum|Function, 2, &mathTableEntries[32] },
00019 { "LOG2E", MathObjectImp::Log2E, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[27] },
00020 { "cos", MathObjectImp::Cos, DontEnum|Function, 1, 0 },
00021 { "max", MathObjectImp::Max, DontEnum|Function, 2, &mathTableEntries[29] },
00022 { 0, 0, 0, 0, 0 },
00023 { 0, 0, 0, 0, 0 },
00024 { "LOG10E", MathObjectImp::Log10E, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[24] },
00025 { "LN2", MathObjectImp::Ln2, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[31] },
00026 { "abs", MathObjectImp::Abs, DontEnum|Function, 1, 0 },
00027 { "sqrt", MathObjectImp::Sqrt, DontEnum|Function, 1, 0 },
00028 { "exp", MathObjectImp::Exp, DontEnum|Function, 1, 0 },
00029 { 0, 0, 0, 0, 0 },
00030 { "LN10", MathObjectImp::Ln10, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[22] },
00031 { "PI", MathObjectImp::Pi, DontEnum|DontDelete|ReadOnly, 0, &mathTableEntries[28] },
00032 { "SQRT1_2", MathObjectImp::Sqrt1_2, DontEnum|DontDelete|ReadOnly, 0, 0 },
00033 { "acos", MathObjectImp::ACos, DontEnum|Function, 1, 0 },
00034 { "ceil", MathObjectImp::Ceil, DontEnum|Function, 1, 0 },
00035 { "floor", MathObjectImp::Floor, DontEnum|Function, 1, 0 },
00036 { "log", MathObjectImp::Log, DontEnum|Function, 1, 0 },
00037 { "min", MathObjectImp::Min, DontEnum|Function, 2, 0 },
00038 { "pow", MathObjectImp::Pow, DontEnum|Function, 2, &mathTableEntries[30] },
00039 { "random", MathObjectImp::Random, DontEnum|Function, 0, 0 },
00040 { "round", MathObjectImp::Round, DontEnum|Function, 1, 0 },
00041 { "sin", MathObjectImp::Sin, DontEnum|Function, 1, 0 },
00042 { "tan", MathObjectImp::Tan, DontEnum|Function, 1, 0 }
00043 };
00044
00045 const struct HashTable mathTable = { 2, 33, mathTableEntries, 21 };
00046
00047 }