comparison src/variables.cc @ 2846:52e7c4509983

[project @ 1997-03-26 23:27:35 by jwe]
author jwe
date Wed, 26 Mar 1997 23:29:12 +0000
parents 60ae49e1284f
children 8b262e771614
comparison
equal deleted inserted replaced
2845:b11fb5e85dc5 2846:52e7c4509983
954 { 954 {
955 error ("can't make function parameter `%s' global", nm.c_str ()); 955 error ("can't make function parameter `%s' global", nm.c_str ());
956 return; 956 return;
957 } 957 }
958 958
959 if (sr->is_static ())
960 {
961 error ("can't make static variable `%s' global", nm.c_str ());
962 return;
963 }
964
959 // There must be a better way to do this. XXX FIXME XXX 965 // There must be a better way to do this. XXX FIXME XXX
960 966
961 if (sr->is_variable ()) 967 if (sr->is_variable ())
962 { 968 {
963 // Would be nice not to have this cast. XXX FIXME XXX 969 // Would be nice not to have this cast. XXX FIXME XXX