Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
6ffc0177
Commit
6ffc0177
authored
15 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
corr
parent
9555cc97
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
pub/src/file_io.cpp
+4
-4
4 additions, 4 deletions
pub/src/file_io.cpp
pub/src/frida2
+0
-0
0 additions, 0 deletions
pub/src/frida2
pub/src/mystd.cpp
+15
-0
15 additions, 0 deletions
pub/src/mystd.cpp
pub/src/mystd.h
+3
-0
3 additions, 0 deletions
pub/src/mystd.h
upgit
+0
-1
0 additions, 1 deletion
upgit
with
22 additions
and
5 deletions
pub/src/file_io.cpp
+
4
−
4
View file @
6ffc0177
...
...
@@ -230,8 +230,8 @@ void NFileIO::Load_01( FILE *F_in, string flong )
if
(
key
==
"fil "
)
{
if
(
val
!=
fshort
)
{
cout
<<
"warning: file "
<<
fshort
<<
" renamed from "
<<
val
<<
"
\n
"
;
cout
<<
"warning: file
'
"
<<
fshort
<<
"
'
renamed from
'
"
<<
val
<<
"
'
\n
"
;
}
old
.
name
=
fshort
;
}
else
if
(
key
==
"doc "
)
{
...
...
@@ -332,8 +332,8 @@ void NFileIO::Load_96( FILE *F_in, string flong )
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
||
lin
.
length
()
<
24
||
lin
.
substr
(
0
,
3
)
!=
string
(
"fil"
)
)
throw
string
(
"tag 'fil' not found in block 2"
);
if
(
lin
.
substr
(
24
)
!=
fshort
)
{
cout
<<
"warning: file '"
<<
fshort
<<
if
(
mystd
::
strip
(
lin
.
substr
(
24
)
)
!=
fshort
)
{
cout
<<
"warning:
i96
file '"
<<
fshort
<<
"' renamed from '"
<<
lin
.
substr
(
24
)
<<
"'
\n
"
;
}
...
...
This diff is collapsed.
Click to expand it.
pub/src/frida2
0 → 100755
+
0
−
0
View file @
6ffc0177
File added
This diff is collapsed.
Click to expand it.
pub/src/mystd.cpp
+
15
−
0
View file @
6ffc0177
...
...
@@ -80,6 +80,21 @@ string strg(const char& val)
}
//**************************************************************************//
//* string operations *//
//**************************************************************************//
string
mystd
::
strip
(
string
const
&
str
,
///< the original string
char
const
*
sepSet
///< C string with characters to be dropped
)
{
string
::
size_type
const
first
=
str
.
find_first_not_of
(
sepSet
);
return
(
first
==
std
::
string
::
npos
)
?
std
::
string
()
:
str
.
substr
(
first
,
str
.
find_last_not_of
(
sepSet
)
-
first
+
1
);
}
//**************************************************************************//
//* yaml *//
//**************************************************************************//
...
...
This diff is collapsed.
Click to expand it.
pub/src/mystd.h
+
3
−
0
View file @
6ffc0177
...
...
@@ -33,6 +33,9 @@ namespace mystd {
void
string_extract_word
(
const
string
in
,
string
*
out1
,
string
*
out2
);
void
string_extract_line
(
const
string
in
,
string
*
out1
,
string
*
out2
);
//! string operations
string
strip
(
string
const
&
str
,
char
const
*
sepSet
=
"
\n
"
);
//! improved libc calls
void
system
(
string
cmd
);
...
...
This diff is collapsed.
Click to expand it.
upgit
+
0
−
1
View file @
6ffc0177
#!/bin/bash
cd
pub
;
make maintainer-clean
;
cd
..
git add
.
git commit
-a
git push ssh://wuttke@iffjcns.iff.kfa-juelich.de/~wuttke/public_html/frida2.git master
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