]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
IMMEDIATE: Ceci n'est pas un nom.
authorRudolf Polzer <divverent@xonotic.org>
Wed, 2 May 2012 10:13:44 +0000 (12:13 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 2 May 2012 10:13:44 +0000 (12:13 +0200)
misc/tools/progs-analyzer.pl

index bc0e8694fd90c3b0639fa15e02c4b0da8bd0ad8a..ff6edec11065dbf16ef81700a8343f56b28e8d72 100644 (file)
@@ -954,6 +954,8 @@ sub detect_constants($)
        {
                my $type = $_->{type};
                my $name = $progs->{getstring}->($_->{s_name});
+               $name = ''
+                       if $name eq 'IMMEDIATE';
                if($type->{save})
                {
                        for my $i(0..(typesize($_->{type}{type})-1))
@@ -1050,6 +1052,8 @@ sub detect_constants($)
        for(@{$progs->{globaldefs}})
        {
                my $s = $progs->{getstring}->($_->{s_name});
+               $s = ''
+                       if $s eq 'IMMEDIATE';
                $_->{debugname} //= "\$" . "$s"
                        if length $s;
        }