Kaydet (Commit) 3e4c614c authored tarafından Fred Drake's avatar Fred Drake

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

		  This reflects the changes made in
		  ../texinputs/python.sty.
üst 66823029
......@@ -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)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment