Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cbl-gdb
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
Packages & Registries
Packages & Registries
Container Registry
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
Simon Sobisch
cbl-gdb
Commits
4ff0f7e3
Commit
4ff0f7e3
authored
Jul 28, 2020
by
rdubner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes for GCC compilation
parent
66ab8ac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
cobcd-rw/.gitignore
cobcd-rw/.gitignore
+2
-0
cobcd-rw/cobcd-rw.cpp
cobcd-rw/cobcd-rw.cpp
+13
-1
No files found.
cobcd-rw/.gitignore
View file @
4ff0f7e3
...
...
@@ -3,3 +3,5 @@ Release
Debug
x64
cobcd-rw
*.d
*.o
cobcd-rw/cobcd-rw.cpp
View file @
4ff0f7e3
// cobcd-rw.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <string.h>
#include <iostream>
#include <set>
#include <string>
...
...
@@ -15,6 +16,17 @@ using namespace std;
extern
set
<
string
>
CobolReservedWords
;
char
*
ToUpper
(
char
*
s
)
{
char
*
p
=
s
;
while
(
*
p
)
{
*
p
=
toupper
(
*
p
);
p
+=
1
;
}
return
s
;
}
void
GetRidOfComments
(
char
*
s
)
{
char
*
p
;
...
...
@@ -169,7 +181,7 @@ void FindTokensIn(char *s,set<string> &results)
// This routine feels free to destroy the string it's been handed.
// You Have Been Warned
_strup
r
(
s
);
// See? We've already started.
ToUppe
r
(
s
);
// See? We've already started.
GetRidOfComments
(
s
);
GetRidOfTextLiterals
(
s
);
...
...
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