Skip to content

Commit

Permalink
File System Workspace: change the working directory to the workspace …
Browse files Browse the repository at this point in the history
…folder

removed all calls to exit from the code
  • Loading branch information
eranif committed Nov 8, 2020
1 parent 86b21a8 commit 2b75bab
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ClangOutputParser/clang_result_lexer.cpp
Expand Up @@ -1669,7 +1669,7 @@ char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}


Expand Down
2 changes: 1 addition & 1 deletion CommentParser/CommentParser/comment_parser.cpp
Expand Up @@ -1606,7 +1606,7 @@ char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}


Expand Down
2 changes: 1 addition & 1 deletion CxxParser/cpp_expr_lexer.cpp
Expand Up @@ -2526,7 +2526,7 @@ char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}


Expand Down
2 changes: 1 addition & 1 deletion CxxParser/cpp_lexer.cpp
Expand Up @@ -2588,7 +2588,7 @@ char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}


Expand Down
2 changes: 1 addition & 1 deletion FileCrawler/trunk/fileCrawler/crawler_lexer.cpp
Expand Up @@ -1706,7 +1706,7 @@ char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}


Expand Down
3 changes: 3 additions & 0 deletions Plugin/clFileSystemWorkspace.cpp
Expand Up @@ -299,6 +299,9 @@ void clFileSystemWorkspace::RestoreSession()

void clFileSystemWorkspace::DoOpen()
{
// set the working directory to the workspace view
::wxSetWorkingDirectory(GetFileName().GetPath());

// Create the symbols db file
wxFileName fnFolder(GetFileName());
fnFolder.SetExt("db");
Expand Down
2 changes: 1 addition & 1 deletion PreProcessor/fileCrawler/pp_lexer.cpp
Expand Up @@ -2171,7 +2171,7 @@ YY_BUFFER_STATE pp__scan_bytes (yyconst char * yybytes, int _yybytes_len )
static void yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}

/* Redefine yyless() so it works in section 3 code. */
Expand Down
2 changes: 1 addition & 1 deletion ScopeOptimizer/ScopeOptimizer/scope_optimizer.cpp
Expand Up @@ -2320,7 +2320,7 @@ YY_BUFFER_STATE scope_optimizer__scan_bytes (yyconst char * yybytes, yy_size_t
static void yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}

/* Redefine yyless() so it works in section 3 code. */
Expand Down
2 changes: 1 addition & 1 deletion gdbparser/gdb_result.cpp
Expand Up @@ -2199,7 +2199,7 @@ YY_BUFFER_STATE gdb_result__scan_bytes (yyconst char * yybytes, yy_size_t _yyb
static void yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
// exit( YY_EXIT_FAILURE );
}

/* Redefine yyless() so it works in section 3 code. */
Expand Down

0 comments on commit 2b75bab

Please sign in to comment.