Setting up the strnative vtable is being done by casting a {}
delimited list of values to a structure type but this is a gcc
extension not ANSI C, so the following patch reworks this to
be ANSI compliant:

Index: strnative.c
===================================================================
RCS file: /home/perlcvs/parrot/strnative.c,v
retrieving revision 1.4
diff -u -r1.4 strnative.c
--- strnative.c 2001/09/13 07:14:24     1.4
+++ strnative.c 2001/09/13 08:36:34
@@ -55,7 +55,7 @@
 
 STRING_VTABLE 
 string_native_vtable (void) {
-    return (STRING_VTABLE) {
+    STRING_VTABLE sv = {
        enc_native,
            string_native_compute_strlen,
            string_native_max_bytes,
@@ -63,4 +63,5 @@
            string_native_chopn,
            string_native_substr,
            };
+    return sv;
 }

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu

Reply via email to