@@ -207,15 +207,15 @@ long string2int(const string &s)
207
207
208
208
// forward declarations
209
209
value_t eval (const expr&);
210
- bigint evalAsInt (const expr& e);
210
+ bigint eval_as_int (const expr& e);
211
211
212
212
value_t getvar (const expr& var, int use_preset = 0 )
213
213
{
214
214
// Construct index array. The cast to bigint automatically
215
215
// verifies that the index value is of type bigint.
216
216
vector<bigint> ind;
217
217
for (size_t i=0 ; i<var.nargs (); i++) {
218
- ind.push_back (evalAsInt (var.args [i]));
218
+ ind.push_back (eval_as_int (var.args [i]));
219
219
}
220
220
if ( use_preset ) {
221
221
if ( preset.count (var.val ) && preset[var.val ].count (ind) ) {
@@ -246,7 +246,7 @@ void setvar(const expr& var, value_t val, int use_preset = 0)
246
246
// verifies that the index value is of type bigint.
247
247
vector<bigint> ind;
248
248
for (size_t i=0 ; i<var.nargs (); i++) {
249
- ind.push_back (evalAsInt (var.args [i]));
249
+ ind.push_back (eval_as_int (var.args [i]));
250
250
}
251
251
252
252
map<string,indexmap> *varlist = &variable;
@@ -296,7 +296,7 @@ value_t value(const expr& x)
296
296
if ( intval.set_str (x.val ,0 )==0 ) {
297
297
bigint c = bigint (intval);
298
298
c.shrink ();
299
- x.cachedLong = c.small ;
299
+ x.cached_long = c.small ;
300
300
return x.cache = value_t (c);
301
301
}
302
302
else if ( fltval.set_str (x.val ,0 )==0 ) {
@@ -508,16 +508,16 @@ value_t eval(const expr& e)
508
508
e.cache = res;
509
509
if ( res.val .which ()==value_int ) {
510
510
bigint x = res;
511
- e.cachedLong = x.small ;
511
+ e.cached_long = x.small ;
512
512
}
513
513
}
514
514
return res;
515
515
}
516
516
517
- bigint evalAsInt (const expr& e)
517
+ bigint eval_as_int (const expr& e)
518
518
{
519
- if ( e.cachedLong != LONG_MIN ) {
520
- return bigint (e.cachedLong );
519
+ if ( e.cached_long != LONG_MIN ) {
520
+ return bigint (e.cached_long );
521
521
}
522
522
return eval (e);
523
523
}
@@ -786,17 +786,17 @@ string genregex(const string &exp)
786
786
possible.insert (exp [i]);
787
787
}
788
788
}
789
- vector<char > possibleVec ;
789
+ vector<char > possible_vec ;
790
790
if ( inverted ) {
791
791
for (char c = ' ' ; c <= ' ~' ; c++) {
792
- if ( !possible.count (c) ) possibleVec .push_back (c);
792
+ if ( !possible.count (c) ) possible_vec .push_back (c);
793
793
}
794
794
} else {
795
- copy (possible.begin (), possible.end (), std::back_inserter (possibleVec ));
795
+ copy (possible.begin (), possible.end (), std::back_inserter (possible_vec ));
796
796
}
797
797
int mult = getmult (exp , i);
798
798
for (int cnt = 0 ; cnt < mult; cnt++) {
799
- res += possibleVec [get_random (possibleVec .size ())];
799
+ res += possible_vec [get_random (possible .size ())];
800
800
}
801
801
}
802
802
break ;
@@ -990,8 +990,8 @@ void checktoken(const command& cmd)
990
990
num += data.readchar ();
991
991
}
992
992
993
- bigint lo = evalAsInt (cmd.args [0 ]);
994
- bigint hi = evalAsInt (cmd.args [1 ]);
993
+ bigint lo = eval_as_int (cmd.args [0 ]);
994
+ bigint hi = eval_as_int (cmd.args [1 ]);
995
995
996
996
// debug("%s <= %s <= %s",lo.get_str().c_str(),num.c_str(),hi.get_str().c_str());
997
997
if ( cmd.nargs ()>=3 ) debug (" '%s' = '%s'" ,
0 commit comments