changeset 448:422415e15eb8

*** empty log message ***
author kono
date Mon, 22 Nov 2004 22:52:12 +0900
parents 818505dd6e1f
children c55363eff5e5
files mc.h test/strinit.c
diffstat 2 files changed, 44 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mc.h	Mon Nov 22 22:44:23 2004 +0900
+++ b/mc.h	Mon Nov 22 22:52:12 2004 +0900
@@ -417,7 +417,9 @@
 
 #define FILES 10
 #define MAX_INCLUDE_PATH_COUNT 10
-
+/*
+    For this comiler 8192*2 is Ok. Linux kernel requires 8192*4.
+ */
 #define GSYMS		(8192*4)
 #define HEAPSIZE        30000
 #define CHEAPSIZE       (sizeof(NMTBL)*GSYMS)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/strinit.c	Mon Nov 22 22:52:12 2004 +0900
@@ -0,0 +1,41 @@
+
+int b[3] = {1,2,3};
+
+struct temp {
+   int a;
+   int b;
+   int c;
+   int d;
+   int e;
+} temp1 = {
+//   101,
+//   102,
+//   103,
+//   104,
+//   105,
+   .e = 5,
+   .a = 3
+};
+
+struct temp temp3 = {
+   .c = (int)&b,
+   .d = -10,
+   .a = (int)b
+};
+
+
+
+main()
+{
+    struct temp temp2 = { .c = 5, .e=99 };
+    printf("#0023:1: %d\n",temp1.a);
+    printf("#0024:1: %d\n",temp1.e);
+    printf("#0025:1: %d\n",temp1.b);
+    printf("#0026:2: %d\n",temp2.c);
+    printf("#0027:2: %d\n",temp2.e);
+    printf("#0028:2: %d\n",temp2.b);
+    printf("#0028:2: %d\n",(void*)temp3.c==b);
+    printf("#0028:2: %d\n",temp3.c==(int)b);
+    printf("#0028:2: %d\n",temp3.a==(int)&b);
+    return 0;
+}