From 67d44abee2ad0dd969f92981cd2a23560d62533a Mon Sep 17 00:00:00 2001 From: johnvg Date: Fri, 12 Jan 2007 14:40:14 +0000 Subject: add support for strings in foreign export git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1637 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- backendC/CleanCompilerSources/instructions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'backendC/CleanCompilerSources') diff --git a/backendC/CleanCompilerSources/instructions.c b/backendC/CleanCompilerSources/instructions.c index 603f9b8..b3a5f23 100644 --- a/backendC/CleanCompilerSources/instructions.c +++ b/backendC/CleanCompilerSources/instructions.c @@ -3679,6 +3679,14 @@ static void print_foreign_export_type (TypeNode type) } else if (symbol_p->symb_kind==real_type){ FPrintF (OutFile,"R"); return; + } else if (symbol_p->symb_kind==unboxed_array_type){ + TypeNode type_node_p; + + type_node_p=type->type_node_arguments->type_arg_node; + if (!type_node_p->type_node_is_var && type_node_p->type_node_symbol->symb_kind==char_type){ + FPrintF (OutFile,"S"); + return; + } } else if (symbol_p->symb_kind==tuple_type){ TypeArgs type_arg_p; -- cgit v1.2.3