projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7be51fe
)
r2628 - interpretPredicate(): make use of pre-built predicate table
author
Denis Ovsienko
<infrastation@yandex.ru>
Sat, 11 Apr 2009 13:30:54 +0000
(13:30 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Sat, 11 Apr 2009 13:30:54 +0000
(13:30 +0000)
inc/functions.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index fac3273a0daee62e60b2ea78ec2993750070ce5c..94f415a40a065f7765247fb6aa02fb04e5f3c48d 100644
(file)
--- a/
inc/functions.php
+++ b/
inc/functions.php
@@
-1978,12
+1978,10
@@
function interpretPredicate ($pname)
{
if ($pname == '_')
return array();
- global $rackCode;
- $ret = NULL;
- foreach ($rackCode as $sentence)
- if ($sentence['type'] == 'SYNT_DEFINITION' and $sentence['term'] == $pname)
- $ret = $sentence['definition'];
- return $ret;
+ global $pTable;
+ if (isset ($pTable[$pname]))
+ return $pTable[$pname];
+ return NULL;
}
// Tell, if a constraint from config option permits given record.