Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
814f2c24
Commit
814f2c24
authored
10 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Removed typedef stuff from 2006
Removed compiler noise from 2014
parent
e6fe7ff8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/2006/C_CodeGen.jrag
+0
-39
0 additions, 39 deletions
compiler/2006/C_CodeGen.jrag
compiler/2014/C_CodeGen.jrag
+0
-1
0 additions, 1 deletion
compiler/2014/C_CodeGen.jrag
with
0 additions
and
40 deletions
compiler/2006/C_CodeGen.jrag
+
0
−
39
View file @
814f2c24
...
@@ -1143,9 +1143,6 @@ aspect C_Encoder {
...
@@ -1143,9 +1143,6 @@ aspect C_Encoder {
env.println(")");
env.println(")");
env.println("{");
env.println("{");
env.indent();
env.indent();
C_emitUserTypeDeps(env, null, false); //XXX HERE BE DRAGONS
//currently set to false to turn off
//outputting of code
env.println("return labcomm"+env.verStr+"_internal_encoder_register(");
env.println("return labcomm"+env.verStr+"_internal_encoder_register(");
env.indent();
env.indent();
env.println("e,");
env.println("e,");
...
@@ -1196,42 +1193,6 @@ aspect C_EncoderIoctl {
...
@@ -1196,42 +1193,6 @@ aspect C_EncoderIoctl {
}
}
aspect C_TypeDependencies {
public void Decl.C_emitUserTypeDeps(C_env env, String via, boolean outputCode) {
if( hasDependencies() ) {
Iterator<Decl> it = type_dependencies().iterator();
while(it.hasNext()) {
Decl t = it.next();
t.C_emitUserTypeDeps(env, t.getName(), outputCode);
if(outputCode) {
System.out.println("Decl.C_emitUserTypeDeps registering "+t.getName());
env.println("labcomm"+env.verStr+"_encoder_register_"+env.prefix + t.getName()+"(e);");
} else { // Just output a comment
String refpath = (via == null) ? "directly" : "indirectly via "+via;
env.println(" //Depends ("+refpath+") on "+t.getName() );
}
}
}
}
public void Decl.C_emitUserTypeRefs(C_env env, String via, boolean outputCode) {
if( isReferenced() ) {
Iterator<Decl> it = type_references().iterator();
while(it.hasNext()) {
Decl t = it.next();
t.C_emitUserTypeRefs(env, t.getName(), outputCode);
if(outputCode) {
env.println("labcomm"+env.verStr+"_encoder_register_"+env.prefix + t.getName()+"(e);");
} else { // Just output a comment
String refpath = (via == null) ? "directly" : "indirectly via "+via;
env.println(" //Is referenced ("+refpath+") by "+t.getName() );
}
}
}
}
}
aspect C_Signature {
aspect C_Signature {
public void ASTNode.C_emitSignature(C_env env) {
public void ASTNode.C_emitSignature(C_env env) {
...
...
This diff is collapsed.
Click to expand it.
compiler/2014/C_CodeGen.jrag
+
0
−
1
View file @
814f2c24
...
@@ -1244,7 +1244,6 @@ aspect C_TypeDependencies {
...
@@ -1244,7 +1244,6 @@ aspect C_TypeDependencies {
t.C_emitUserTypeDeps(env, t.getName(), outputCode);
t.C_emitUserTypeDeps(env, t.getName(), outputCode);
if(outputCode) {
if(outputCode) {
System.out.println("Decl.C_emitUserTypeDeps registering "+t.getName());
env.println("labcomm"+env.verStr+"_encoder_type_register_"+env.prefix + t.getName()+"(e);");
env.println("labcomm"+env.verStr+"_encoder_type_register_"+env.prefix + t.getName()+"(e);");
} else { // Just output a comment
} else { // Just output a comment
String refpath = (via == null) ? "directly" : "indirectly via "+via;
String refpath = (via == null) ? "directly" : "indirectly via "+via;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment