summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-08-20 12:48:27 -0700
committerDavid Schleef <ds@schleef.org>2010-08-20 12:48:27 -0700
commitd4185189996fc8107a67480c5fc7eb2f03b7ef1b (patch)
tree71abb486d6cda391280f4f524c7a16b953cea389
parentbcc99d5ffca42bfb33c67e4740010c094babcf53 (diff)
orcc: Use ORC_RESTRICT for executor structure
-rw-r--r--tools/orcc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/orcc.c b/tools/orcc.c
index a8d087f..66103fe 100644
--- a/tools/orcc.c
+++ b/tools/orcc.c
@@ -571,7 +571,11 @@ output_code_backup (OrcProgram *p, FILE *output)
{
fprintf(output, "static void\n");
- fprintf(output, "_backup_%s (OrcExecutor *ex)\n", p->name);
+ if (compat < ORC_VERSION(0,4,7,1)) {
+ fprintf(output, "_backup_%s (OrcExecutor * ex)\n", p->name);
+ } else {
+ fprintf(output, "_backup_%s (OrcExecutor * ORC_RESTRICT ex)\n", p->name);
+ }
fprintf(output, "{\n");
{
OrcCompileResult result;