DEADSOFTWARE

Добавлены открытые массивы
[dsw-obn.git] / test / Test.c
index 22b0e5bd3ff0cbc2179f75cfe1da48159b9fb4b6..f40f1381381d285e7d7284048e22e9fc4e24f846 100644 (file)
@@ -8,18 +8,15 @@
 #include "SYSTEM.h"
 #include "Out.h"
 
-typedef
-       INT16 (*Test_MyArr[3])[6];
 
+static INT16 Test_a[3];
 
-static Test_MyArr Test_a;
 
+static void Test_Ax (INT16 *x, ADDRESS x__len);
 
 
-
-static void EnumPtrs(void (*P)(void*))
+static void Test_Ax (INT16 *x, ADDRESS x__len)
 {
-       __ENUMP(Test_a, 3, P);
 }
 
 
@@ -27,13 +24,10 @@ export int main(int argc, char **argv)
 {
        __INIT(argc, argv);
        __MODULE_IMPORT(Out);
-       __REGMAIN("Test", EnumPtrs);
+       __REGMAIN("Test", 0);
 /* BEGIN */
        Out_Open();
-       Test_a[0] = __NEWARR(NIL, 2, 2, 1, 0, ((INT64)(6)));
-       (*Test_a[0])[0] = 1;
-       Out_Int((*Test_a[0])[0], 0);
-       Out_Ln();
+       Test_Ax((void*)Test_a, 3);
        Out_Flush();
        __FINI;
 }