define_module(): Check the module type for validity before using.

This reflects the changes made in
		  ../texinputs/python.sty.
This commit is contained in:
Fred Drake 1999-05-17 15:00:32 +00:00
parent 66823029a4
commit 3e4c614c16
1 changed files with 6 additions and 0 deletions

View File

@ -493,6 +493,12 @@ $THIS_CLASS = '';
sub define_module{
my($word,$name) = @_;
my $section_tag = join('', @curr_sec_id);
if ($word ne "built-in" && $word ne "extension"
&& $word ne "standard" && $word ne "") {
write_warnings("Bad module type '$word'"
. " for \\declaremodule (module $name)");
$word = "";
}
$word = "$word " if $word;
$THIS_MODULE = "$name";
$INDEX_SUBITEM = "(in $name)";