Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
c40cca77
Commit
c40cca77
authored
Jul 21, 2011
by
Praetorius, Simon
Browse files
filenames without length-restrictions in MacroReader
parent
d66e61b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/io/MacroInfo.cc
View file @
c40cca77
...
...
@@ -150,8 +150,8 @@ namespace AMDiS {
DimVec
<
int
>
*
ind
=
NULL
;
TEST_EXIT
(
filename
!=
""
)(
"No filename specified!
\n
"
);
TEST_EXIT
(
filename
.
length
()
<
static_cast
<
unsigned
int
>
(
127
))
(
"can only handle filenames up to 127 characters
\n
"
);
//
TEST_EXIT(filename.length() < static_cast<unsigned int>(127))
//
("can only handle filenames up to 127 characters\n");
FILE
*
file
=
fopen
(
filename
.
c_str
(),
"r"
);
TEST_EXIT
(
file
)(
"cannot open file %s
\n
"
,
filename
.
c_str
());
...
...
Write
Preview
Supports
Markdown
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