Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
55cdf110
Commit
55cdf110
authored
1 month ago
by
James K. Lowden
Browse files
Options
Downloads
Patches
Plain Diff
whitepace
parent
296cb715
No related branches found
No related tags found
No related merge requests found
Pipeline
#2473
failed
1 month ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gcc/cobol/cbldiag.h
+3
-3
3 additions, 3 deletions
gcc/cobol/cbldiag.h
gcc/cobol/cdf-copy.cc
+4
-4
4 additions, 4 deletions
gcc/cobol/cdf-copy.cc
gcc/cobol/copybook.h
+5
-5
5 additions, 5 deletions
gcc/cobol/copybook.h
with
12 additions
and
12 deletions
gcc/cobol/cbldiag.h
+
3
−
3
View file @
55cdf110
...
...
@@ -103,10 +103,10 @@ template <typename LOC>
static
void
location_dump
(
const
char
func
[],
int
line
,
const
char
tag
[],
const
LOC
&
loc
)
{
extern
int
yy_flex_debug
;
if
(
yy_flex_debug
&&
getenv
(
"update_location"
)
)
if
(
yy_flex_debug
&&
getenv
(
"update_location"
)
)
fprintf
(
stderr
,
"%s:%d: %s location (%d,%d) to (%d,%d)
\n
"
,
func
,
line
,
tag
,
loc
.
first_line
,
loc
.
first_column
,
loc
.
last_line
,
loc
.
last_column
);
func
,
line
,
tag
,
loc
.
first_line
,
loc
.
first_column
,
loc
.
last_line
,
loc
.
last_column
);
}
#endif // defined(yy_flex_debug)
...
...
This diff is collapsed.
Click to expand it.
gcc/cobol/cdf-copy.cc
+
4
−
4
View file @
55cdf110
...
...
@@ -278,20 +278,20 @@ copybook_elem_t::open_file( const char directory[], bool literally ) {
}
else
{
const
char
*
dir
=
directory
?
directory
:
library
.
name
;
path
=
xasprintf
(
"%s/%s"
,
dir
,
source
.
name
);
}
}
}
else
{
path
=
xasprintf
(
"%s"
,
source
.
name
);
}
gcc_assert
(
path
);
if
(
literally
)
{
dbgmsg
(
"copybook_elem_t::open_file: trying %s"
,
path
);
if
(
(
this
->
fd
=
open
(
path
,
O_RDONLY
))
==
-
1
)
{
dbgmsg
(
"could not open %s: %m"
,
path
);
return
fd
;
}
}
this
->
source
.
name
=
path
;
if
(
!
cobol_filename
(
this
->
source
.
name
,
inode_of
(
fd
))
)
{
error_msg
(
source
.
loc
,
"recursive copybook: '%s' includes itself"
,
path
);
...
...
@@ -301,7 +301,7 @@ copybook_elem_t::open_file( const char directory[], bool literally ) {
return
fd
;
}
gcc_assert
(
!
literally
);
if
(
extensions
)
{
pattern
=
xasprintf
(
"%s{,.cpy,.CPY,.cbl,.CBL,.cob,.COB,%s}"
,
path
,
this
->
extensions
);
...
...
This diff is collapsed.
Click to expand it.
gcc/cobol/copybook.h
+
5
−
5
View file @
55cdf110
...
...
@@ -92,7 +92,7 @@ class copybook_elem_t {
int
open_file
(
const
char
dir
[],
bool
literally
=
false
);
void
extensions_add
(
const
char
ext
[],
const
char
alt
[]
);
static
inline
bool
is_quote
(
const
char
ch
)
{
return
ch
==
'\''
||
ch
==
'"'
;
}
...
...
@@ -145,7 +145,7 @@ class copybook_t {
}
if
(
false
&&
value
!=
uname
)
{
dbgmsg
(
"using copybook file '%s' from environment variable '%s'"
,
value
,
name
);
value
,
name
);
}
return
xstrdup
(
value
);
}
...
...
@@ -184,9 +184,9 @@ class copybook_t {
for
(
auto
dir
:
directories
)
{
if
(
true
)
{
dbgmsg
(
"copybook_t::open '%s' OF '%s' %s"
,
book
.
source
.
name
,
dir
?
dir
:
"."
,
book
.
literally
.
source
?
", literally"
:
""
);
book
.
source
.
name
,
dir
?
dir
:
"."
,
book
.
literally
.
source
?
", literally"
:
""
);
}
if
(
(
fd
=
book
.
open_file
(
dir
,
book
.
literally
.
source
))
!=
-
1
)
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment