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
70d7f629
Commit
70d7f629
authored
Mar 22, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes in m58
parent
b497960f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
37 deletions
+42
-37
wb/lib/wb/src/wb_gcg.c
wb/lib/wb/src/wb_gcg.c
+42
-37
No files found.
wb/lib/wb/src/wb_gcg.c
View file @
70d7f629
...
...
@@ -2193,24 +2193,18 @@ int gcg_wind_comp_all(
for
(
i
=
parent_count
-
2
;
i
>=
0
;
i
-=
2
)
{
/* Check if this window is loaded */
#if 0
if
(
!
IsWindowLoaded
(
loaded_windlist
,
loaded_windcount
,
*
(
parentlist
+
i
),
&
wind
))
{
sts
=
vldh_get_wind_objdid
(
*
(
parentlist
+
i
),
&
wind
);
if ( sts == VLDH__OBJNOTFOUND )
#else
if
(
!
IsWindowLoaded
(
loaded_windlist
,
loaded_windcount
,
*
(
parentlist
+
i
),
&
wind
))
#endif
{
if
(
sts
==
VLDH__OBJNOTFOUND
)
{
/* Load the window */
if
(
i
==
(
parent_count
-
2
))
{
if
(
i
==
(
parent_count
-
2
))
{
/* This is the child to the plc */
sts
=
vldh_wind_load
(
plc
,
0
,
*
(
parentlist
+
i
),
0
,
0
,
&
wind
,
ldh_eAccess_ReadWrite
);
if
(
EVEN
(
sts
))
return
sts
;
plc
->
hp
.
windowobject
=
wind
;
}
else
{
else
{
/* Get the parent vldhnode */
sts
=
vldh_get_node_objdid
(
*
(
parentlist
+
i
+
1
),
parentwind
,
&
node
);
...
...
@@ -2226,6 +2220,7 @@ int gcg_wind_comp_all(
*
(
loaded_windlist
+
loaded_windcount
)
=
wind
;
loaded_windcount
++
;
}
}
else
if
(
EVEN
(
sts
))
return
sts
;
...
...
@@ -8026,6 +8021,8 @@ vldh_t_node node;
case
pwr_eType_UInt16
:
case
pwr_eType_Int8
:
case
pwr_eType_UInt8
:
case
pwr_eType_Enum
:
case
pwr_eType_Mask
:
if
(
!
(
node
->
ln
.
classid
==
pwr_cClass_StoAtoIp
||
node
->
ln
.
classid
==
pwr_cClass_CStoAtoIp
||
node
->
ln
.
classid
==
pwr_cClass_StoIp
||
...
...
@@ -10781,6 +10778,8 @@ vldh_t_node node;
case
pwr_eType_UInt16
:
case
pwr_eType_Int8
:
case
pwr_eType_UInt8
:
case
pwr_eType_Enum
:
case
pwr_eType_Mask
:
if
(
!
(
node
->
ln
.
classid
!=
pwr_cClass_GetIpToA
||
node
->
ln
.
classid
!=
pwr_cClass_GetIp
))
{
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
...
...
@@ -13877,7 +13876,9 @@ vldh_t_node node;
info_type
==
pwr_eType_Int16
||
info_type
==
pwr_eType_UInt16
||
info_type
==
pwr_eType_Int8
||
info_type
==
pwr_eType_UInt8
))
{
info_type
==
pwr_eType_UInt8
||
info_type
==
pwr_eType_Enum
||
info_type
==
pwr_eType_Mask
))
{
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
...
...
@@ -13974,8 +13975,8 @@ vldh_t_node node;
char
*
name
;
char
oname
[
120
];
pwr_tClassId
class
;
pwr_tTime
instance_time
;
pwr_tTime
template_time
;
pwr_tTime
*
instance_time
;
pwr_tTime
*
template_time
;
pwr_tObjid
template_plc
;
pwr_tObjid
template_window
;
...
...
@@ -13997,7 +13998,7 @@ vldh_t_node node;
if
(
found
)
{
// Get modification time
sts
=
ldh_GetObjectPar
(
ldhses
,
node
->
ln
.
object_d
id
,
sts
=
ldh_GetObjectPar
(
ldhses
,
window_obj
id
,
"DevBody"
,
"Modified"
,
(
char
**
)
&
instance_time
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
}
...
...
@@ -14032,7 +14033,7 @@ vldh_t_node node;
(
char
**
)
&
template_time
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
!
found
||
template_time
.
tv_sec
!=
instance_time
.
tv_sec
)
{
if
(
!
found
||
template_time
->
tv_sec
!=
instance_time
->
tv_sec
)
{
// Replace the code
if
(
found
)
{
/* Delete the window */
...
...
@@ -14096,6 +14097,8 @@ vldh_t_node node;
gcgctx
->
print
,
0
,
gcg_debug
);
node
->
hn
.
subwindowobject
[
0
]
=
0
;
}
free
(
(
char
*
)
instance_time
);
free
(
(
char
*
)
template_time
);
/* Print the code */
sts
=
gcg_ref_insert
(
gcgctx
,
node
->
ln
.
object_did
,
GCG_PREFIX_REF
);
...
...
@@ -14361,7 +14364,9 @@ vldh_t_node node;
info_type
==
pwr_eType_Int16
||
info_type
==
pwr_eType_UInt16
||
info_type
==
pwr_eType_Int8
||
info_type
==
pwr_eType_UInt8
))
{
info_type
==
pwr_eType_UInt8
||
info_type
==
pwr_eType_Enum
||
info_type
==
pwr_eType_Mask
))
{
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
...
...
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