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
b72918a7
Commit
b72918a7
authored
May 27, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdh_ArefToCastAref() and cdh_ArefAdd() implemented
parent
43e464ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+21
-0
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+4
-0
No files found.
src/lib/co/src/co_cdh.c
View file @
b72918a7
...
@@ -2511,6 +2511,27 @@ int cdh_IsClassVolume( pwr_tVid vid)
...
@@ -2511,6 +2511,27 @@ int cdh_IsClassVolume( pwr_tVid vid)
(
cdh_cUserClassVolMin
<=
vid
&&
vid
<=
cdh_cUserClassVolMax
));
(
cdh_cUserClassVolMin
<=
vid
&&
vid
<=
cdh_cUserClassVolMax
));
}
}
pwr_sAttrRef
cdh_ArefToCastAref
(
pwr_sAttrRef
*
arp
)
{
pwr_sAttrRef
cast_aref
;
cast_aref
=
*
arp
;
cast_aref
.
Offset
-=
sizeof
(
pwr_tCastId
);
cast_aref
.
Size
=
sizeof
(
pwr_tCastId
);
cast_aref
.
Flags
.
b
.
ObjectAttr
=
0
;
cast_aref
.
Flags
.
b
.
CastAttr
=
0
;
return
cast_aref
;
}
pwr_sAttrRef
cdh_ArefAdd
(
pwr_sAttrRef
*
arp1
,
pwr_sAttrRef
*
arp2
)
{
pwr_sAttrRef
aref
=
*
arp1
;
aref
.
Offset
+=
arp2
->
Offset
;
aref
.
Size
=
arp2
->
Size
;
aref
.
Flags
=
arp2
->
Flags
;
return
aref
;
}
/*@}*/
/*@}*/
...
...
src/lib/co/src/co_cdh.h
View file @
b72918a7
...
@@ -965,6 +965,10 @@ cdh_NoCaseStrncmp (
...
@@ -965,6 +965,10 @@ cdh_NoCaseStrncmp (
char
*
cdh_OpSysToStr
(
pwr_mOpSys
opsys
);
char
*
cdh_OpSysToStr
(
pwr_mOpSys
opsys
);
pwr_sAttrRef
cdh_ArefToCastAref
(
pwr_sAttrRef
*
arp
);
pwr_sAttrRef
cdh_ArefAdd
(
pwr_sAttrRef
*
arp1
,
pwr_sAttrRef
*
arp2
);
/*@}*/
/*@}*/
#ifdef __cplusplus
#ifdef __cplusplus
...
...
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