comparison src/variables.cc @ 3681:df54d394acc0

[project @ 2000-06-26 17:46:58 by jwe]
author jwe
date Mon, 26 Jun 2000 17:47:00 +0000
parents 8cea69ad95ae
children f9ea3dcf58ee
comparison
equal deleted inserted replaced
3680:b8b0f5ff28e2 3681:df54d394acc0
1076 sr->document (help); 1076 sr->document (help);
1077 } 1077 }
1078 1078
1079 // Deleting names from the symbol tables. 1079 // Deleting names from the symbol tables.
1080 1080
1081 static inline bool
1082 var_matches_any_pattern (const std::string& nm,
1083 const string_vector& argv, int argc, int idx)
1084 {
1085 bool retval = false;
1086
1087 for (int k = idx; k < argc; k++)
1088 {
1089 std::string patstr = argv[k];
1090
1091 if (! patstr.empty ())
1092 {
1093 glob_match pattern (patstr);
1094
1095 if (pattern.match (nm))
1096 {
1097 retval = true;
1098 break;
1099 }