diff options
author | Adrian Thurston <thurston@complang.org> | 2015-05-15 12:22:51 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-05-15 12:22:51 -0400 |
commit | c98d2e9b47091c12deb747e111f7f1cd05a1f937 (patch) | |
tree | 5decdd801287425e2b27c285422e8c9da3b15415 /src/pdacodegen.cc | |
parent | b05674c0aa0a63ae984fc8f8204bdb09d5e1dd9e (diff) | |
download | colm-c98d2e9b47091c12deb747e111f7f1cd05a1f937.tar.gz |
naming convention improvements
Diffstat (limited to 'src/pdacodegen.cc')
-rw-r--r-- | src/pdacodegen.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pdacodegen.cc b/src/pdacodegen.cc index 7934c438..18ca5a68 100644 --- a/src/pdacodegen.cc +++ b/src/pdacodegen.cc @@ -78,9 +78,9 @@ void PdaCodeGen::writeRuntimeData( colm_sections *runtimeData, struct pda_tables for ( int i = 0; i < runtimeData->numFrames; i++ ) { /* FIXME: horrible code cloning going on here. */ if ( runtimeData->frameInfo[i].codeLenWV > 0 ) { - out << "static Code code_" << i << "_wv[] = {\n\t"; + out << "static code_t code_" << i << "_wv[] = {\n\t"; - Code *block = runtimeData->frameInfo[i].codeWV; + code_t *block = runtimeData->frameInfo[i].codeWV; for ( int j = 0; j < runtimeData->frameInfo[i].codeLenWV; j++ ) { out << (unsigned long) block[j]; @@ -94,9 +94,9 @@ void PdaCodeGen::writeRuntimeData( colm_sections *runtimeData, struct pda_tables } if ( runtimeData->frameInfo[i].codeLenWC > 0 ) { - out << "static Code code_" << i << "_wc[] = {\n\t"; + out << "static code_t code_" << i << "_wc[] = {\n\t"; - Code *block = runtimeData->frameInfo[i].codeWC; + code_t *block = runtimeData->frameInfo[i].codeWC; for ( int j = 0; j < runtimeData->frameInfo[i].codeLenWC; j++ ) { out << (unsigned long) block[j]; @@ -150,8 +150,8 @@ void PdaCodeGen::writeRuntimeData( colm_sections *runtimeData, struct pda_tables /* * Init code. */ - out << "static Code " << rootCode() << "[] = {\n\t"; - Code *block = runtimeData->rootCode ; + out << "static code_t " << rootCode() << "[] = {\n\t"; + code_t *block = runtimeData->rootCode ; for ( int j = 0; j < runtimeData->rootCodeLen; j++ ) { out << (unsigned int) block[j]; |