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