]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
detect function-unique temps
authorRudolf Polzer <divverent@xonotic.org>
Wed, 2 May 2012 07:57:08 +0000 (09:57 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 2 May 2012 07:57:08 +0000 (09:57 +0200)
misc/tools/progs-analyzer.pl

index b43c3453e459589ca8299bf8bf2e90b2759aba56..6b8c006396d18c9e7712a742e279fba108be14ad 100644 (file)
@@ -958,7 +958,11 @@ sub detect_constants($)
                        {
                                $globaltypes[$_] = "global";
                        }
-                       elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I)) == 0)
+                       elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I | GLOBALFLAG_Q)) == GLOBALFLAG_Q)
+                       {
+                               $globaltypes[$_] = "uniquetemp";
+                       }
+                       elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I | GLOBALFLAG_Q)) == 0)
                        {
                                $globaltypes[$_] = "temp";
                                ++$istemp{$_};