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
32047803
Commit
32047803
authored
Mar 06, 2009
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default include in ra_plc_user.h added
parent
b4f4f8be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
wb/lib/wb/src/wb_gcg.cpp
wb/lib/wb/src/wb_gcg.cpp
+17
-6
No files found.
wb/lib/wb/src/wb_gcg.cpp
View file @
32047803
...
...
@@ -524,7 +524,7 @@ static int gcg_sort_threadlist(
unsigned
long
size
);
static
int
gcg_
file_check
(
static
int
gcg_
check_ra_plc_user
(
char
*
filename
);
...
...
@@ -5944,8 +5944,8 @@ int gcg_comp_m1( vldh_t_wind wind,
libraries exist */
/* pwrp_inc:ra_plc_user.h */
dcli_translate_filename
(
fullfilename
,
"
pwrp_inc:
ra_plc_user.h"
);
sts
=
gcg_
file_check
(
fullfilename
);
dcli_translate_filename
(
fullfilename
,
"
$pwrp_inc/
ra_plc_user.h"
);
sts
=
gcg_
check_ra_plc_user
(
fullfilename
);
if
(
EVEN
(
sts
))
gcg_error_msg
(
gcgctx
,
sts
,
0
);
else
if
(
sts
==
GSX__FILECREATED
)
...
...
@@ -15719,7 +15719,7 @@ int gcg_plcpgm_to_operating_system
/*************************************************************************
*
* Name: gcg_
file_check
()
* Name: gcg_
check_ra_plc_user
()
*
* Type int
*
...
...
@@ -15729,7 +15729,7 @@ int gcg_plcpgm_to_operating_system
*
**************************************************************************/
static
int
gcg_
file_check
(
static
int
gcg_
check_ra_plc_user
(
char
*
filename
)
{
...
...
@@ -15748,7 +15748,18 @@ static int gcg_file_check(
if
(
checkfile
==
0
)
return
GSX__OPENFILE
;
fprintf
(
checkfile
,
"/* Filename: %s */
\n
"
,
filename
);
fprintf
(
checkfile
,
"/* Filename: $pwrp_inc/ra_plc_user.h */
\n\n
"
);
fprintf
(
checkfile
,
"/* This file is included by the plc code generated from the plc windows. */
\n
"
);
fprintf
(
checkfile
,
"/* Includefiles for classvolumes with classes referenced by the */
\n
"
);
fprintf
(
checkfile
,
"/* plc program should be inserted here. Also declarations of types and */
\n
"
);
fprintf
(
checkfile
,
"/* functions used in arithm code can be inserted. */
\n\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_nmpsclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_remoteclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_profibusclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_otherioclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_basecomponentclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_siemensclasses.h
\"\n
"
);
fprintf
(
checkfile
,
"#include
\"
pwr_abbclasses.h
\"\n\n
"
);
fclose
(
checkfile
);
return
GSX__FILECREATED
;
}
...
...
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