Changeset 41d0e3c in tol


Ignore:
Timestamp:
Aug 10, 2009, 9:18:46 AM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
8806009
Parents:
87e95d3
Message:

Fixed compilation bug:

..\generic\tolaccess.cpp(869) : error C2057: expected constant expression
..\generic\tolaccess.cpp(869) : error C2466: cannot allocate an array of constant size 0
..\generic\tolaccess.cpp(869) : error C2133: 'datav' : unknown size

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1206 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolaccess.cpp

    r87e95d3 r41d0e3c  
    844844  }
    845845
    846   int OBJ_GRAMMAR    = 0;
    847   int OBJ_GRAMMARV   = OBJ_GRAMMAR + 1;
    848   int OBJ_NAME       = OBJ_GRAMMARV + 1;
    849   int OBJ_NAMEV      = OBJ_NAME + 1;
    850   int OBJ_CONTENT    = OBJ_NAMEV + 1;
    851   int OBJ_CONTENTV   = OBJ_CONTENT + 1;
    852   int OBJ_PATH       = OBJ_CONTENTV + 1;
    853   int OBJ_PATHV      = OBJ_PATH + 1;
    854   int OBJ_DESC       = OBJ_PATHV + 1;
    855   int OBJ_DESCV      = OBJ_DESC + 1;
    856   int OBJ_INDEXES    =  OBJ_DESCV + 1;
    857   int OBJ_INDEXESV   =  OBJ_INDEXES + 1;
    858   int OBJ_ISFILE     = OBJ_INDEXESV + 1;
    859   int OBJ_ISFILEV    = OBJ_ISFILE + 1;
    860   int OBJ_HASSUBSET  = OBJ_ISFILEV + 1;
    861   int OBJ_HASSUBSETV = OBJ_HASSUBSET + 1;
    862   int OBJ_SUBTYPE    = OBJ_HASSUBSETV + 1;
    863   int OBJ_SUBTYPEV   = OBJ_SUBTYPE + 1;
    864   int OBJ_STRUCT     = OBJ_SUBTYPEV + 1;
    865   int OBJ_STRUCTV    = OBJ_STRUCT + 1;
    866   int NUM_OBJS      = OBJ_STRUCTV + 1;
     846  const int OBJ_GRAMMAR    = 0;
     847  const int OBJ_GRAMMARV   = OBJ_GRAMMAR + 1;
     848  const int OBJ_NAME       = OBJ_GRAMMARV + 1;
     849  const int OBJ_NAMEV      = OBJ_NAME + 1;
     850  const int OBJ_CONTENT    = OBJ_NAMEV + 1;
     851  const int OBJ_CONTENTV   = OBJ_CONTENT + 1;
     852  const int OBJ_PATH       = OBJ_CONTENTV + 1;
     853  const int OBJ_PATHV      = OBJ_PATH + 1;
     854  const int OBJ_DESC       = OBJ_PATHV + 1;
     855  const int OBJ_DESCV      = OBJ_DESC + 1;
     856  const int OBJ_INDEXES    =  OBJ_DESCV + 1;
     857  const int OBJ_INDEXESV   =  OBJ_INDEXES + 1;
     858  const int OBJ_ISFILE     = OBJ_INDEXESV + 1;
     859  const int OBJ_ISFILEV    = OBJ_ISFILE + 1;
     860  const int OBJ_HASSUBSET  = OBJ_ISFILEV + 1;
     861  const int OBJ_HASSUBSETV = OBJ_HASSUBSET + 1;
     862  const int OBJ_SUBTYPE    = OBJ_HASSUBSETV + 1;
     863  const int OBJ_SUBTYPEV   = OBJ_SUBTYPE + 1;
     864  const int OBJ_STRUCT     = OBJ_SUBTYPEV + 1;
     865  const int OBJ_STRUCTV    = OBJ_STRUCT + 1;
     866  const int NUM_OBJS      = OBJ_STRUCTV + 1;
    867867
    868868  int datac;
Note: See TracChangeset for help on using the changeset viewer.