summaryrefslogtreecommitdiff
path: root/install-sh
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-08-28 10:32:27 +0400
committerunknown <konstantin@mysql.com>2004-08-28 10:32:27 +0400
commitcddb65228f206be39e27a4cdd0fd1f9bb4d148b1 (patch)
tree13c65391e577a6f0f6d311a89a844a981c824b95 /install-sh
parent7f0c9db1b0b3d6640afa4bb79ac7e71fcfda22de (diff)
downloadmariadb-git-cddb65228f206be39e27a4cdd0fd1f9bb4d148b1.tar.gz
Microsoft VC++ won't compile class C { static const int I=1; }.
Putting initialization into .cc will reduce compiler's abilities to optimize this constant away. Defines are not OK as they bloat global namespace. Looking for a way to declare an efficient named constant in reduced namespace (i. e. in a class). Let's try enums: normally they should be implicitly casted to int. Let's see if we really have a compiler which won't do that. libmysqld/lib_sql.cc: Added explicit cast to int for Protocol::{SEND_DEFAULTS,SEND_NUM_ROWS, SEND_EOF} flags argument of send_fields() is now int. sql/protocol.cc: flags argument of send_fields is now int. sql/protocol.h: Catch22: Microsoft VC++ won't compile class C { static const int I=1; }. Putting initialization into .cc will reduce compiler's abilities to optimize this constant away. Defines are not OK as they bloat global namespace. Looking for a way to declare an efficient named constant in reduced namespace (i. e. in a class). Let's try enums: normally they should be implicitly casted to int. Let's see if we really have a compiler which won't do that. sql/protocol_cursor.cc: flags are now int.
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions