Skip to content
Snippets Groups Projects
Commit 4513b3b5 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

it is not really possible to generate an indentation of negative amount


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 8cb9237c
No related branches found
No related tags found
No related merge requests found
...@@ -616,8 +616,8 @@ void printWarning(const Mstring& filename, const Mstring& typeName, const Mstrin ...@@ -616,8 +616,8 @@ void printWarning(const Mstring& filename, const Mstring& typeName, const Mstrin
text.c_str()); text.c_str());
} }
void indent(FILE* file, const int x) { void indent(FILE* file, const unsigned int x) {
for (int l = 0; l < x; ++l) { for (unsigned int l = 0; l < x; ++l) {
fprintf(file, "\t"); fprintf(file, "\t");
} }
} }
......
...@@ -48,7 +48,7 @@ void printWarning(const Mstring& filename, int lineNumber, const Mstring& text); ...@@ -48,7 +48,7 @@ void printWarning(const Mstring& filename, int lineNumber, const Mstring& text);
void printWarning(const Mstring& filename, const Mstring& typeName, const Mstring& text); void printWarning(const Mstring& filename, const Mstring& typeName, const Mstring& text);
void printError(const Mstring& filename, int lineNumber, const Mstring& text); void printError(const Mstring& filename, int lineNumber, const Mstring& text);
void printError(const Mstring& filename, const Mstring& typeName, const Mstring& text); void printError(const Mstring& filename, const Mstring& typeName, const Mstring& text);
void indent(FILE * file, const int x); void indent(FILE * file, const unsigned int x);
long double stringToLongDouble(const char * input); long double stringToLongDouble(const char * input);
......
...@@ -203,7 +203,7 @@ void RootType::addComment(const Mstring& text) { ...@@ -203,7 +203,7 @@ void RootType::addComment(const Mstring& text) {
comment.push_back(Mstring("/* " + text + " */\n")); comment.push_back(Mstring("/* " + text + " */\n"));
} }
void RootType::printComment(FILE * file, int level) { void RootType::printComment(FILE * file, unsigned int level) {
if (!c_flag_used && !comment.empty()) { if (!c_flag_used && !comment.empty()) {
for (List<Mstring>::iterator c = comment.begin(); c; c = c->Next) { for (List<Mstring>::iterator c = comment.begin(); c; c = c->Next) {
indent(file, level); indent(file, level);
......
...@@ -289,7 +289,7 @@ public: ...@@ -289,7 +289,7 @@ public:
virtual void printVariant(FILE * file); virtual void printVariant(FILE * file);
virtual void addComment(const Mstring& text); virtual void addComment(const Mstring& text);
virtual void printComment(FILE * file, int level = 0); virtual void printComment(FILE * file, unsigned int level = 0);
void printMinOccursMaxOccurs(FILE * file, const bool inside_union, void printMinOccursMaxOccurs(FILE * file, const bool inside_union,
const bool empty_allowed = true) const; const bool empty_allowed = true) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment