Changeset eb72ba1 in git


Ignore:
Timestamp:
May 5, 2011, 7:20:57 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
61e9142166e8873869d9cf125c3809be22c5ae88
Parents:
750e704356a16e0d46bd540f5fe07a831a40cded
Message:
FIX: eliminated 'bad' variables (due to C++ standard) for the ticket #333:
e.g. kernel/f5data.h: _RuleOld, kernel/mpr_base.cc: _Qi, kernel/p_polys.cc: _(External|Shifted)?Components

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

git-svn-id: file:///usr/local/Singular/svn/trunk@14205 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/Minor.cc

    r750e70 reb72ba1  
    825825}
    826826
    827 int MinorValue::_RankingStrategy = -1;
     827int MinorValue::g_rankingStrategy = -1;
    828828
    829829int MinorValue::getWeight () const
     
    898898void MinorValue::SetRankingStrategy (const int rankingStrategy)
    899899{
    900   _RankingStrategy = rankingStrategy;
    901   if (_RankingStrategy == 6)
     900  g_rankingStrategy = rankingStrategy;
     901  if (g_rankingStrategy == 6)
    902902  {
    903903    /* initialize the random generator with system time */
     
    908908int MinorValue::GetRankingStrategy()
    909909{
    910   return _RankingStrategy;
     910  return g_rankingStrategy;
    911911}
    912912
  • Singular/Minor.h

    r750e70 reb72ba1  
    533533    * This member can be set using MinorValue::SetRankingStrategy (const int).
    534534    */
    535     static int _RankingStrategy;
    536    
    537     /**
    538     * Accessor for the static private field _RankingStrategy.
     535    static int g_rankingStrategy;
     536   
     537    /**
     538    * Accessor for the static private field g_rankingStrategy.
    539539    */
    540540    static int GetRankingStrategy();
  • Singular/janet.cc

    r750e70 reb72ba1  
    987987}
    988988
    989 int ComputeBasis(jList *_T,jList *_Q)
     989int ComputeBasis(jList *_lT,jList *_lQ)
    990990{
    991991  int gb_l,i,ret_value=1;
    992992
    993   T=_T; Q=_Q;
     993  T=_lT; Q=_lQ;
    994994
    995995//  Debug();
  • kernel/f5data.h

    r750e70 reb72ba1  
    3232        int     index;          //index of signature
    3333        poly    polynomial;     //standard polynomial data
    34         RuleOld*   _RuleOld;
     34        RuleOld*   _ruleOld;
    3535        bool    del;
    3636    public:
     
    7878
    7979void LPolyOld::setRuleOld(RuleOld* r) {
    80     _RuleOld   =   r;
     80    _ruleOld   =   r;
    8181}
    8282
     
    9898
    9999RuleOld* LPolyOld::getRuleOld() {
    100     return _RuleOld;
     100    return _ruleOld;
    101101}
    102102
  • kernel/mpr_base.cc

    r750e70 reb72ba1  
    284284   * The Alg computes conv(Qi[]+shift[]).
    285285   */
    286   pointSet * getInnerPoints( pointSet **_Qi, mprfloat _shift[] );
     286  pointSet * getInnerPoints( pointSet **_q_i, mprfloat _shift[] );
    287287
    288288private:
     
    889889
    890890//-> mayanPyramidAlg::*
    891 pointSet * mayanPyramidAlg::getInnerPoints( pointSet **_Qi, mprfloat _shift[] )
     891pointSet * mayanPyramidAlg::getInnerPoints( pointSet **_q_i, mprfloat _shift[] )
    892892{
    893893  int i;
    894894
    895   Qi= _Qi;
     895  Qi= _q_i;
    896896  shift= _shift;
    897897
  • kernel/p_polys.cc

    r750e70 reb72ba1  
    2828 ***************************************************************/
    2929// this is special for the syz stuff
    30 static int* _Components = NULL;
    31 static long* _ShiftedComponents = NULL;
    32 static int _ExternalComponents = 0;
     30static int* _components = NULL;
     31static long* _componentsShifted = NULL;
     32static int _componentsExternal = 0;
    3333
    3434BOOLEAN pSetm_error=0;
     
    153153          int c=p_GetComp(p,r);
    154154          long sc = c;
    155           int* Components = (_ExternalComponents ? _Components :
     155          int* Components = (_componentsExternal ? _components :
    156156                             o->data.syzcomp.Components);
    157           long* ShiftedComponents = (_ExternalComponents ? _ShiftedComponents:
     157          long* ShiftedComponents = (_componentsExternal ? _componentsShifted:
    158158                                     o->data.syzcomp.ShiftedComponents);
    159159          if (ShiftedComponents != NULL)
     
    367367void p_Setm_Syz(poly p, ring r, int* Components, long* ShiftedComponents)
    368368{
    369   _Components = Components;
    370   _ShiftedComponents = ShiftedComponents;
    371   _ExternalComponents = 1;
     369  _components = Components;
     370  _componentsShifted = ShiftedComponents;
     371  _componentsExternal = 1;
    372372  p_Setm_General(p, r);
    373   _ExternalComponents = 0;
     373  _componentsExternal = 0;
    374374}
    375375
Note: See TracChangeset for help on using the changeset viewer.