Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10254/lib/LXR/Lang
Modified Files:
Generic.pm
Log Message:
Generic.pm: type description initialisation in several databases
Previous fix was faulty: it replaced text with the DB index. The second database would get id from first instead of text and replace again with its own ids. The ids are now stored in a new sub-hash.
Index: Generic.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Generic.pm,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- Generic.pm 8 Nov 2013 18:18:54 -0000 1.47
+++ Generic.pm 9 Nov 2013 10:07:37 -0000 1.48
@@ -135,8 +135,8 @@
saving the overhead of processing the config file each time.
However, The mapping between I<ctags> tags and their human readable
-counterpart is stored in every database for every language. The mapping is then
-replaced by the index of the table in the DB.
+counterpart is stored in every database for every language.
+The mapping, as a table index in the DB, is keptin a new I<hash> C<'typeid'>.
=cut
@@ -191,7 +191,7 @@
$typemap = $langdesc->{'typemap'};
$langid = $langdesc->{'langid'};
while (($type, $tdescr) = each %$typemap) {
- $typemap->{$type} = $index->decid($langid, $tdescr);
+ $langdesc->{'typeid'}{$type} = $index->decid($langid, $tdescr);
}
}
}
|