changeset 2302:80251482da41

array was not correctly initialized use of char* since it avoids wasting memory (4+stringsize bytes instead of 128)
author pl
date Sat, 20 Oct 2001 11:14:57 +0000
parents b4c4c832cce7
children 456e22bfb147
files cputable.h
diffstat 1 files changed, 2 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/cputable.h	Sat Oct 20 02:35:31 2001 +0000
+++ b/cputable.h	Sat Oct 20 11:14:57 2001 +0000
@@ -10,7 +10,7 @@
 #define N_UNKNOWN "" 
 #define N_UNKNOWNEXT ""
 
-#define M_UNKNOWN { \
+#define F_UNKNOWN { \
 N_UNKNOWN, \
 N_UNKNOWN, \
 N_UNKNOWN, \
@@ -29,30 +29,10 @@
 N_UNKNOWN \
 }
 
-#define F_UNKNOWN { \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN, \
-M_UNKNOWN \
-}
-
-static const char cpuname
+static const char *cpuname
 		/* Vendor */ [MAX_VENDORS]
 			/* Family */ [16]
 				/* Model  */ [16]
-					/* Name   */ [128]
 	={
 		/* Intel Corporation, "GenuineIntel" */ {
 			/* 0 */ F_UNKNOWN, 
@@ -476,7 +456,6 @@
 
 #undef N_UNKNOWNEXT
 #undef N_UNKNOWN
-#undef M_UNKNOWN
 #undef F_UNKNOWN
 
 static const struct {