Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
95943564
Commit
95943564
authored
Jan 26, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb attribute offset fix for large array fix
parent
2185a17a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
wb/lib/wb/src/wb_bdrep.cpp
wb/lib/wb/src/wb_bdrep.cpp
+1
-1
wb/lib/wb/src/wb_cdrep.cpp
wb/lib/wb/src/wb_cdrep.cpp
+7
-7
wb/lib/wb/src/wb_vrepced.cpp
wb/lib/wb/src/wb_vrepced.cpp
+3
-3
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+6
-6
wb/lib/wb/src/wb_vrepdbms.cpp
wb/lib/wb/src/wb_vrepdbms.cpp
+6
-6
No files found.
wb/lib/wb/src/wb_bdrep.cpp
View file @
95943564
...
...
@@ -118,7 +118,7 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname)
return 0;
}
offset += n.attrIndex(i) *
adrep->size() / adrep->nElement(
);
offset += n.attrIndex(i) *
(adrep->size() / adrep->nElement()
);
}
if ( (i != n.attributes() - 1) && adrep->isClass()) {
...
...
wb/lib/wb/src/wb_cdrep.cpp
View file @
95943564
...
...
@@ -611,9 +611,9 @@ void wb_cdrep::convertSubClass( pwr_tCid cid, wb_merep *merep,
for
(
int
j
=
0
;
j
<
MIN
(
adrep_source
->
nElement
(),
adrep_target
->
nElement
());
j
++
)
{
convertSubClass
(
adrep_target
->
subClass
(),
merep
,
(
char
*
)
body_source
+
adrep_source
->
offset
()
+
j
*
adrep_source
->
size
()
/
adrep_source
->
nElement
(
),
j
*
(
adrep_source
->
size
()
/
adrep_source
->
nElement
()
),
(
char
*
)
body_target
+
adrep_target
->
offset
()
+
j
*
adrep_target
->
size
()
/
adrep_target
->
nElement
(
));
j
*
(
adrep_target
->
size
()
/
adrep_target
->
nElement
()
));
}
}
else
{
...
...
@@ -788,9 +788,9 @@ void wb_cdrep::convertObject( wb_merep *merep, void *rbody, void *dbody,
for
(
int
j
=
0
;
j
<
MIN
(
adrep_source
->
nElement
(),
adrep_target
->
nElement
());
j
++
)
{
convertSubClass
(
adrep_target
->
subClass
(),
merep
,
(
char
*
)
body_source
+
adrep_source
->
offset
()
+
j
*
adrep_source
->
size
()
/
adrep_source
->
nElement
(
),
j
*
(
adrep_source
->
size
()
/
adrep_source
->
nElement
()
),
(
char
*
)
body_target
+
adrep_target
->
offset
()
+
j
*
adrep_target
->
size
()
/
adrep_target
->
nElement
(
));
j
*
(
adrep_target
->
size
()
/
adrep_target
->
nElement
()
));
}
}
else
{
...
...
@@ -909,13 +909,13 @@ void wb_cdrep::updateTemplateSubClass( wb_adrep *subattr, char *body, pwr_tOid o
while
(
ODD
(
sts
))
{
int
elements
=
adrep
->
isArray
()
?
adrep
->
nElement
()
:
1
;
if
(
adrep
->
isClass
())
{
updateTemplateSubClass
(
adrep
,
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
adrep
->
offset
(),
updateTemplateSubClass
(
adrep
,
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
(),
oid
,
toid
,
aoffs
);
}
else
{
switch
(
adrep
->
type
())
{
case
pwr_eType_Objid
:
{
pwr_tOid
*
oidp
=
(
pwr_tOid
*
)(
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
pwr_tOid
*
oidp
=
(
pwr_tOid
*
)(
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
cdh_ObjidIsEqual
(
*
oidp
,
toid
))
...
...
@@ -925,7 +925,7 @@ void wb_cdrep::updateTemplateSubClass( wb_adrep *subattr, char *body, pwr_tOid o
break
;
}
case
pwr_eType_AttrRef
:
{
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
cdh_ObjidIsEqual
(
arp
->
Objid
,
toid
))
{
...
...
wb/lib/wb/src/wb_vrepced.cpp
View file @
95943564
...
...
@@ -1467,13 +1467,13 @@ void wb_vrepced::updateTemplateRef( wb_adrep *subattr, char *body, pwr_tAttrRef
if
(
adrep
->
isClass
())
{
pwr_tAttrRef
aaref
=
aref
;
aaref
.
Offset
+=
i
*
bdrep
->
size
();
updateTemplateRef
(
adrep
,
(
char
*
)
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
updateTemplateRef
(
adrep
,
(
char
*
)
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
(),
aaref
,
toid
);
}
else
{
switch
(
adrep
->
type
())
{
case
pwr_eType_Objid
:
{
pwr_tOid
*
oidp
=
(
pwr_tOid
*
)(
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
pwr_tOid
*
oidp
=
(
pwr_tOid
*
)(
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
cdh_ObjidIsEqual
(
*
oidp
,
toid
))
...
...
@@ -1483,7 +1483,7 @@ void wb_vrepced::updateTemplateRef( wb_adrep *subattr, char *body, pwr_tAttrRef
break
;
}
case
pwr_eType_AttrRef
:
{
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
body
+
i
*
(
subattr
->
size
()
/
subattr_elements
)
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
cdh_ObjidIsEqual
(
arp
->
Objid
,
toid
))
{
...
...
wb/lib/wb/src/wb_vrepdb.cpp
View file @
95943564
...
...
@@ -2395,7 +2395,7 @@ void wb_vrepdb::checkAttributes(pwr_tCid cid)
for
(
int
j
=
0
;
j
<
o_adrep
->
nElement
();
j
++
)
{
a
.
cid
=
cid
;
a
.
bix
=
bix
;
a
.
offset
=
o_adrep
->
offset
()
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
);
a
.
offset
=
o_adrep
->
offset
()
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
);
tree_Insert
(
&
sts
,
m_aref_th
,
&
a
);
}
}
...
...
@@ -2473,8 +2473,8 @@ void wb_vrepdb::checkAttributes(pwr_tCid cid)
for
(
int
j
=
0
;
j
<
MIN
(
o_adrep
->
nElement
(),
n_adrep
->
nElement
());
j
++
)
{
checkSubClass
(
cid
,
o_adrep
->
subClass
(),
o_adrep
->
offset
()
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
),
n_adrep
->
offset
()
+
j
*
n_adrep
->
size
()
/
n_adrep
->
nElement
(
),
o_adrep
->
offset
()
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
),
n_adrep
->
offset
()
+
j
*
(
n_adrep
->
size
()
/
n_adrep
->
nElement
()
),
body
);
}
}
...
...
@@ -2588,8 +2588,8 @@ void wb_vrepdb::checkSubClass(pwr_tCid cid, pwr_tCid subcid, unsigned int o_offs
if
(
o_adrep
->
isArray
())
{
for
(
int
j
=
0
;
j
<
MIN
(
o_adrep
->
nElement
(),
n_adrep
->
nElement
());
j
++
)
{
checkSubClass
(
cid
,
n_adrep
->
subClass
(),
o_adrep
->
offset
()
+
o_offset
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
),
n_adrep
->
offset
()
+
n_offset
+
j
*
n_adrep
->
size
()
/
n_adrep
->
nElement
(
),
o_adrep
->
offset
()
+
o_offset
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
),
n_adrep
->
offset
()
+
n_offset
+
j
*
(
n_adrep
->
size
()
/
n_adrep
->
nElement
()
),
body
);
}
}
...
...
@@ -2604,7 +2604,7 @@ void wb_vrepdb::checkSubClass(pwr_tCid cid, pwr_tCid subcid, unsigned int o_offs
for
(
int
j
=
0
;
j
<
o_adrep
->
nElement
();
j
++
)
{
a
.
cid
=
cid
;
a
.
bix
=
bix
;
a
.
offset
=
o_adrep
->
offset
()
+
o_offset
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
);
a
.
offset
=
o_adrep
->
offset
()
+
o_offset
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
);
tree_Insert
(
&
sts
,
m_aref_th
,
&
a
);
}
}
...
...
wb/lib/wb/src/wb_vrepdbms.cpp
View file @
95943564
...
...
@@ -2396,7 +2396,7 @@ void wb_vrepdbms::checkAttributes(pwr_tCid cid)
for
(
int
j
=
0
;
j
<
o_adrep
->
nElement
();
j
++
)
{
a
.
cid
=
cid
;
a
.
bix
=
bix
;
a
.
offset
=
o_adrep
->
offset
()
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
);
a
.
offset
=
o_adrep
->
offset
()
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
);
tree_Insert
(
&
sts
,
m_aref_th
,
&
a
);
}
}
...
...
@@ -2474,8 +2474,8 @@ void wb_vrepdbms::checkAttributes(pwr_tCid cid)
for
(
int
j
=
0
;
j
<
MIN
(
o_adrep
->
nElement
(),
n_adrep
->
nElement
());
j
++
)
{
checkSubClass
(
cid
,
o_adrep
->
subClass
(),
o_adrep
->
offset
()
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
),
n_adrep
->
offset
()
+
j
*
n_adrep
->
size
()
/
n_adrep
->
nElement
(
),
o_adrep
->
offset
()
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
),
n_adrep
->
offset
()
+
j
*
(
n_adrep
->
size
()
/
n_adrep
->
nElement
()
),
body
);
}
}
...
...
@@ -2589,8 +2589,8 @@ void wb_vrepdbms::checkSubClass(pwr_tCid cid, pwr_tCid subcid, unsigned int o_of
if
(
o_adrep
->
isArray
())
{
for
(
int
j
=
0
;
j
<
MIN
(
o_adrep
->
nElement
(),
n_adrep
->
nElement
());
j
++
)
{
checkSubClass
(
cid
,
n_adrep
->
subClass
(),
o_adrep
->
offset
()
+
o_offset
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
),
n_adrep
->
offset
()
+
n_offset
+
j
*
n_adrep
->
size
()
/
n_adrep
->
nElement
(
),
o_adrep
->
offset
()
+
o_offset
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
),
n_adrep
->
offset
()
+
n_offset
+
j
*
(
n_adrep
->
size
()
/
n_adrep
->
nElement
()
),
body
);
}
}
...
...
@@ -2605,7 +2605,7 @@ void wb_vrepdbms::checkSubClass(pwr_tCid cid, pwr_tCid subcid, unsigned int o_of
for
(
int
j
=
0
;
j
<
o_adrep
->
nElement
();
j
++
)
{
a
.
cid
=
cid
;
a
.
bix
=
bix
;
a
.
offset
=
o_adrep
->
offset
()
+
o_offset
+
j
*
o_adrep
->
size
()
/
o_adrep
->
nElement
(
);
a
.
offset
=
o_adrep
->
offset
()
+
o_offset
+
j
*
(
o_adrep
->
size
()
/
o_adrep
->
nElement
()
);
tree_Insert
(
&
sts
,
m_aref_th
,
&
a
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment