summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateImplementationBindings.pl
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-05-23 09:11:33 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-05-23 09:11:33 +0000
commit051b4e81e2296d3c02836aee3ec815309a037f70 (patch)
tree643e3e49b63c88be49286125a0d46179762c2bad /lib/sbin/CreateImplementationBindings.pl
parent0994b6a59dcc4b0567a8ac4d7884f8cf1298a5b8 (diff)
The Hitachi SR8000 compiler doesn't seem to like the way the thorn
attributes list was being assigned, so now have to declare the array with a fixed size and assign each member of the array manually 8-( Maybe one day they'll fix the compiler and things can be tidied up again... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2208 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CreateImplementationBindings.pl')
-rw-r--r--lib/sbin/CreateImplementationBindings.pl24
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/sbin/CreateImplementationBindings.pl b/lib/sbin/CreateImplementationBindings.pl
index 53014d0d..236ce67f 100644
--- a/lib/sbin/CreateImplementationBindings.pl
+++ b/lib/sbin/CreateImplementationBindings.pl
@@ -112,14 +112,22 @@ sub CreateImplementationBindings
push(@data, " 0,");
push(@data, " };\n");
- push(@data, "\n struct iAttributeList attributes[] =");
- push(@data, " {");
- push(@data, " {\"name\", {name}},");
- push(@data, " {\"implementation\",{implementation}},");
- push(@data, " {\"ancestors\",{ancestors}},");
- push(@data, " {\"friends\",{friends}},");
- push(@data, " {0,{0}},");
- push(@data, " };\n");
+ push(@data, " /* Should be able to do below with a constant initialiser but sr8000 compiler complains");
+ push(@data, " * So have to laboriously assign values to each member of array.");
+ push(@data, " */");
+ push(@data, " struct iAttributeList attributes[5];");
+ push(@data, "");
+ push(@data, " attributes[0].attribute = \"name\";");
+ push(@data, " attributes[0].AttributeData.StringList = name;");
+ push(@data, " attributes[1].attribute = \"implementation\";");
+ push(@data, " attributes[1].AttributeData.StringList = implementation;");
+ push(@data, " attributes[2].attribute = \"ancestors\";");
+ push(@data, " attributes[2].AttributeData.StringList = ancestors;");
+ push(@data, " attributes[3].attribute = \"friends\";");
+ push(@data, " attributes[3].AttributeData.StringList = friends;");
+ push(@data, " attributes[4].attribute = 0;");
+ push(@data, " attributes[4].AttributeData.StringList = 0;");
+ push(@data, "\n");
push(@data, " retval = CCTKi_RegisterThorn(attributes);");