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
90e4dd03
Commit
90e4dd03
authored
Jul 28, 2020
by
rdubner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor cobcd.py with the 'MetaPossibilities' routine.
parent
2d31bc72
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
149 deletions
+96
-149
cobcd-st/cobst.cpp
cobcd-st/cobst.cpp
+3
-2
python/cobcd.py
python/cobcd.py
+93
-147
No files found.
cobcd-st/cobst.cpp
View file @
90e4dd03
...
...
@@ -172,7 +172,7 @@ CreateSymc(PARAMETERS ¶ms,
seg
+=
ch
;
}
size_t
nfound_comment
=
seg
.
find
(
"#"
);
if
(
!
in_copyright
AND
nfound_comment
!=
string
::
npos
)
{
if
(
false
AND
!
in_copyright
AND
nfound_comment
!=
string
::
npos
)
{
// There is a pound sign, which is the Python comment signal
size_t
nfound_quote
=
seg
.
find_first_of
(
"'
\"
"
);
if
(
nfound_quote
>
nfound_comment
)
{
...
...
@@ -181,7 +181,8 @@ CreateSymc(PARAMETERS ¶ms,
}
}
if
(
!
Trim
(
seg
).
empty
()
)
{
//if( !Trim(seg).empty() )
{
seg
+=
'\n'
;
size_t
t
=
strlen
(
py
);
strcpy
(
py
+
t
,
seg
.
c_str
());
...
...
python/cobcd.py
View file @
90e4dd03
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