comparison Changes @ 447:818505dd6e1f hash_fix

TYPEOF fix. Hash function opt. Array in decl_data.
author kono
date Mon, 22 Nov 2004 22:44:23 +0900
parents 6654aa80851b
children c55363eff5e5
comparison
equal deleted inserted replaced
446:6654aa80851b 447:818505dd6e1f
6741 space は? 6741 space は?
6742 ## 6742 ##
6743 ## 6743 ##
6744 6744
6745 いろいろあるな。 6745 いろいろあるな。
6746
6747 Mon Nov 22 22:34:03 JST 2004
6748 typespec
6749 if(mode==LDECL) return 0; // not a type
6750 t= INT; // empty typespec
6751 だから、
6752 smode = mode; mode = STAT;
6753 checksym(LPAR);
6754 mode = LDECL; // typespec required this
6755 if((t=typespec(ctmode))==0) {
6756 mode = STAT; // too late for expression
6757 expr(0);
6758 かぁ。
6759
6760 hash があんまり良くない。っていうか、compiler で20%、l.c で98%...
6761 rehash は、ちょっと難しすぎる。せめて、オプションで設定できる
6762 ようにするか。
6763
6764 #define hash_value(hash,ch) (hash = (37*hash)^(11*(unsigned char)(ch)))
6765 // #define hash_value(hash,ch) (hash = (37*hash)^((unsigned char)(ch)))
6766
6767 なのかぁ。open hash だからか。