prettify SymbolInfo array

This commit is contained in:
Joshua Warner 2012-04-30 12:44:18 -06:00
parent 2fa7fa0e83
commit 99bc9b1d55

View File

@ -52,11 +52,10 @@ writeObject(uint8_t* data, size_t size, OutputStream* out, const char* startName
return false; return false;
} }
SymbolInfo symbols[2]; SymbolInfo symbols[] = {
symbols[0].name = startName; SymbolInfo(0, startName),
symbols[0].addr = 0; SymbolInfo(size, endName)
symbols[1].name = endName; };
symbols[1].addr = size;
unsigned accessFlags = (writable ? Platform::Writable : 0) | (executable ? Platform::Executable : 0); unsigned accessFlags = (writable ? Platform::Writable : 0) | (executable ? Platform::Executable : 0);