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
d87c5d65
Commit
d87c5d65
authored
4 years ago
by
houkime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase filename and dirname sizes for slapos
parent
0dc71b03
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
30 deletions
+30
-30
src/exe/co_convert/src/cnv_readwbl.h
src/exe/co_convert/src/cnv_readwbl.h
+3
-3
src/exe/co_convert/src/cnv_readxtthelp.h
src/exe/co_convert/src/cnv_readxtthelp.h
+2
-2
src/exe/co_convert/src/co_convert.cpp
src/exe/co_convert/src/co_convert.cpp
+1
-1
src/exp/inc/src/pwr.h
src/exp/inc/src/pwr.h
+2
-2
src/lib/co/src/co_dcli.c
src/lib/co/src/co_dcli.c
+1
-1
src/lib/co/src/co_dcli.h
src/lib/co/src/co_dcli.h
+5
-5
src/lib/co/src/co_dcli_dir.c
src/lib/co/src/co_dcli_dir.c
+11
-11
src/lib/co/src/co_dcli_file.cpp
src/lib/co/src/co_dcli_file.cpp
+3
-3
wb/exe/wb_cmd/src/wb_cmd_main.cpp
wb/exe/wb_cmd/src/wb_cmd_main.cpp
+1
-1
wb/lib/wb/src/wb_wblfile.h
wb/lib/wb/src/wb_wblfile.h
+1
-1
No files found.
src/exe/co_convert/src/cnv_readwbl.h
View file @
d87c5d65
...
...
@@ -133,8 +133,8 @@ class CnvReadWbl {
cread_eLine
linetype
;
int
state
;
int
object_state
;
char
source_dir
[
2
00
];
char
current_file
[
2
00
];
char
source_dir
[
4
00
];
char
current_file
[
4
00
];
char
attr_name
[
80
];
char
attr_flags
[
200
];
char
attr_type
[
80
];
...
...
@@ -190,7 +190,7 @@ class CnvReadWbl {
int
doc_cnt
;
int
doc_fresh
;
char
sobject_name
[
80
];
char
dir
[
12
0
];
char
dir
[
40
0
];
char
ObjBodyDef
[
80
];
char
GraphPlcNode
[
80
];
...
...
This diff is collapsed.
Click to expand it.
src/exe/co_convert/src/cnv_readxtthelp.h
View file @
d87c5d65
...
...
@@ -45,9 +45,9 @@ class CnvReadXtthelp {
public:
CnvReadXtthelp
(
char
*
x_name
,
char
*
x_directory
,
CnvXtthelpTo
*
to
);
std
::
ofstream
fp
;
char
directory
[
8
0
];
char
directory
[
40
0
];
char
name
[
80
];
char
filename
[
12
0
];
char
filename
[
40
0
];
CnvXtthelpTo
*
xtthelpto
;
int
read_xtthelp
();
...
...
This diff is collapsed.
Click to expand it.
src/exe/co_convert/src/co_convert.cpp
View file @
d87c5d65
...
...
@@ -54,7 +54,7 @@ extern "C" {
#include "cnv_classdep.h"
#include "cnv_changelog.h"
typedef
char
cnv_tName
[
2
00
];
typedef
char
cnv_tName
[
3
00
];
static
void
usage
()
{
...
...
This diff is collapsed.
Click to expand it.
src/exp/inc/src/pwr.h
View file @
d87c5d65
...
...
@@ -114,8 +114,8 @@ extern "C" {
#define pwr_cSizFullName 199
#define pwr_cSizOName 199
#define pwr_cSizAName 399
#define pwr_cSizFileName
2
55
#define pwr_cSizCmd
3
99
#define pwr_cSizFileName
4
55
#define pwr_cSizCmd
7
99
typedef
void
*
pwr_tAddress
;
//!< Generic pointer type.
typedef
unsigned
int
pwr_tBit
;
//!< Bit type.
...
...
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_dcli.c
View file @
d87c5d65
...
...
@@ -59,7 +59,7 @@ typedef struct {
#define DCLI_SYMBOLTABLE_SIZE 500
static
char
dcli_qual_str
[
10
][
2
][
4
00
];
static
char
dcli_qual_str
[
10
][
2
][
8
00
];
static
dcli_t_symboltable
dcli_symboltable
[
DCLI_SYMBOLTABLE_SIZE
];
static
int
dcli_symboltable_count
;
...
...
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_dcli.h
View file @
d87c5d65
...
...
@@ -48,10 +48,10 @@ extern "C" {
/* co_dcli.c
Command line interpreter. */
#define DCLI_CMD_SIZE
4
00
#define DCLI_QUAL_SIZE
4
00
#define DCLI_SYM_KEY_SIZE
2
00
#define DCLI_SYM_VALUE_SIZE
2
00
#define DCLI_CMD_SIZE
8
00
#define DCLI_QUAL_SIZE
8
00
#define DCLI_SYM_KEY_SIZE
4
00
#define DCLI_SYM_VALUE_SIZE
4
00
typedef
struct
{
char
command
[
20
];
...
...
@@ -121,7 +121,7 @@ typedef struct s_element {
char
struct_begin
;
char
name
[
256
];
unsigned
int
mask
;
char
filename
[
12
0
];
char
filename
[
40
0
];
int
line_nr
;
struct
s_element
*
next
;
struct
s_element
*
prev
;
...
...
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_dcli_dir.c
View file @
d87c5d65
...
...
@@ -68,10 +68,10 @@
int
dcli_search_file
(
const
char
*
name
,
char
*
found_file
,
int
new
)
{
static
DIR
*
directory
;
static
char
pattern
[
2
00
];
static
char
dir
[
2
00
];
char
dev
[
2
],
dir2
[
2
00
],
file
[
80
],
type
[
80
];
char
cwd
[
2
00
];
static
char
pattern
[
4
00
];
static
char
dir
[
4
00
];
char
dev
[
2
],
dir2
[
4
00
],
file
[
80
],
type
[
80
];
char
cwd
[
4
00
];
int
version
;
int
found
;
static
int
wildcard
;
...
...
@@ -159,10 +159,10 @@ int dcli_search_file(const char* name, char* found_file, int new)
int
dcli_search_directory
(
const
char
*
name
,
char
*
found_file
,
int
new
)
{
static
DIR
*
directory
;
static
char
pattern
[
2
00
];
static
char
dir
[
2
00
];
char
dev
[
2
],
dir2
[
2
00
],
file
[
80
],
type
[
80
];
char
cwd
[
2
00
];
static
char
pattern
[
4
00
];
static
char
dir
[
4
00
];
char
dev
[
2
],
dir2
[
4
00
],
file
[
80
],
type
[
80
];
char
cwd
[
4
00
];
int
version
;
int
found
;
static
int
wildcard
;
...
...
@@ -319,9 +319,9 @@ int dcli_parse_filename(const char* filename, char* dev, char* dir, char* file,
char
*
type
,
int
*
version
)
{
char
*
s
;
char
ldev
[
2
00
];
char
ldir
[
2
00
];
char
lfile
[
2
00
];
char
ldev
[
4
00
];
char
ldir
[
4
00
];
char
lfile
[
4
00
];
char
ltype
[
80
];
if
((
s
=
strstr
(
filename
,
"::"
)))
...
...
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_dcli_file.cpp
View file @
d87c5d65
...
...
@@ -52,7 +52,7 @@ typedef enum {
dcli_eTrans_File
}
dcli_eTrans
;
static
char
dcli_default_directory
[
2
00
]
=
""
;
static
char
dcli_default_directory
[
4
00
]
=
""
;
void
dcli_set_default_directory
(
char
*
dir
)
{
...
...
@@ -76,7 +76,7 @@ int dcli_get_defaultfilename(const char* inname, char* outname, const char* ext)
dcli_replace_env
(
filename
,
outname
);
}
else
{
if
(
streq
(
dcli_default_directory
,
""
))
{
char
cwd
[
2
00
];
char
cwd
[
4
00
];
if
(
getcwd
(
cwd
,
sizeof
(
cwd
))
!=
NULL
)
{
strcpy
(
filename
,
cwd
);
...
...
@@ -259,7 +259,7 @@ char* dcli_fgetname(FILE* fp, char* name, char* def_name)
int
dcli_translate_filename
(
char
*
out
,
const
char
*
in
)
{
char
out_name
[
2
00
];
char
out_name
[
4
00
];
const
char
*
s
;
char
*
t
;
int
i
;
...
...
This diff is collapsed.
Click to expand it.
wb/exe/wb_cmd/src/wb_cmd_main.cpp
View file @
d87c5d65
...
...
@@ -428,7 +428,7 @@ GNU General Public License for more details.\n\n";
if
(
str
[
0
]
!=
0
)
{
int
nr
;
char
cmd_array
[
10
][
4
00
];
char
cmd_array
[
10
][
8
00
];
str_trim
(
str
,
str
);
nr
=
dcli_parse
(
str
,
";"
,
""
,
(
char
*
)
cmd_array
,
...
...
This diff is collapsed.
Click to expand it.
wb/lib/wb/src/wb_wblfile.h
View file @
d87c5d65
...
...
@@ -48,7 +48,7 @@ class wb_wblfile {
public:
wb_wbl_parser
*
parser
;
wb_wblnode
*
rootAST
;
char
file_name
[
2
00
];
char
file_name
[
4
00
];
pwr_tTime
time
;
};
...
...
This diff is collapsed.
Click to expand it.
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