diff options
Diffstat (limited to 'pytquic3/main.cpp')
-rw-r--r-- | pytquic3/main.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pytquic3/main.cpp b/pytquic3/main.cpp index 826b1ef..9c463e4 100644 --- a/pytquic3/main.cpp +++ b/pytquic3/main.cpp @@ -36,17 +36,17 @@ int main( int argc, char * argv[] ) { PyIndent indent; - bool testCode = FALSE, execCode = FALSE; - bool subcl = FALSE; - bool imagecollection = FALSE; + bool testCode = false, execCode = false; + bool subcl = false; + bool imagecollection = false; TQStringList images; const char *error = 0; const char* fileName = 0; TQCString outputFile; const char* projectName = 0; const char* trmacro = 0; - bool fix = FALSE; - TQApplication app(argc, argv, FALSE); + bool fix = false; + TQApplication app(argc, argv, false); TQString className, uicClass; for ( int n = 1; n < argc && error == 0; n++ ) { @@ -63,7 +63,7 @@ int main( int argc, char * argv[] ) } else outputFile = &opt[1]; } else if ( opt[0] == 'e' || opt == "embed" ) { - imagecollection = TRUE; + imagecollection = true; if ( opt == "embed" || opt[1] == '\0' ) { if ( !(n < argc-1) ) { error = "Missing name of project"; @@ -73,7 +73,7 @@ int main( int argc, char * argv[] ) } else projectName = &opt[1]; } else if ( opt == "subimpl" ) { - subcl = TRUE; + subcl = true; if ( !(n < argc-1) ) { error = "Missing class name"; break; @@ -97,7 +97,7 @@ int main( int argc, char * argv[] ) } else if ( opt == "help" ) { break; } else if ( opt == "fix" ) { - fix = TRUE; + fix = true; } else if ( opt[0] == 'p' ) { uint tabstop; bool ok; @@ -116,9 +116,9 @@ int main( int argc, char * argv[] ) else error = "Invalid Python indent"; } else if ( opt == "test" ) { - testCode = TRUE; + testCode = true; } else if ( opt == "x" ) { - execCode = TRUE; + execCode = true; } else { error = "Unrecognized option"; } |