Skip to content

Commit

Permalink
Updated to be in line with the latest official release
Browse files Browse the repository at this point in the history
  • Loading branch information
lokedhs committed Nov 23, 2016
1 parent 783dd54 commit 0b36ee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion native/Makefile.am
@@ -1,4 +1,4 @@
AM_CXXFLAGS = $(CXX_RDYNAMIC)
AM_CXXFLAGS = $(CXX_RDYNAMIC) -Wno-deprecated-declarations

dist_noinst_DATA = AUTHORS \
LAST_GIT_PULL
Expand Down
10 changes: 3 additions & 7 deletions native/VariablesCommand.cc
Expand Up @@ -54,11 +54,9 @@ void VariablesCommand::run_command( NetworkConnection &conn, const std::vector<s
}
}

int num_symbols = Workspace::symbols_allocated();
Symbol **symbols = new Symbol *[num_symbols];
Workspace::get_all_symbols( symbols, num_symbols );
for( int i = 0 ; i < num_symbols ; i++ ) {
Symbol *symbol = symbols[i];
Simple_string<const Symbol *> symbols = Workspace::get_all_symbols();
for( int i = 0 ; i < symbols.size() ; i++ ) {
const Symbol *symbol = symbols[i];
if( !symbol->is_erased() ) {
NameClass symbol_nc = symbol->top_of_stack()->name_class;
if( (cls == ALL && (symbol_nc == NC_VARIABLE || symbol_nc == NC_FUNCTION || symbol_nc == NC_OPERATOR))
Expand All @@ -75,6 +73,4 @@ void VariablesCommand::run_command( NetworkConnection &conn, const std::vector<s

out << END_TAG << "\n";
conn.write_string_to_fd( out.str() );

delete[] symbols;
}

0 comments on commit 0b36ee3

Please sign in to comment.