|
-
Nov 8th, 2004, 10:10 PM
#1
Thread Starter
Frenzied Member
defining new types for ULONG UINT...
Is this a bad idea?
typedef unsigned short ushort;
typedef unsigned long ulong;
typedef unsigned int uint;
typedef unsigned char byte;
typedef unsigned double udouble;
-
Nov 9th, 2004, 08:03 AM
#2
No, it's a fine idea, but you should put these definitions in a visible place, for example a separate include file.
-
Nov 9th, 2004, 08:34 AM
#3
Thread Starter
Frenzied Member
Why doesn't MS do put in in their headers and highlights those as keywords?
-
Nov 9th, 2004, 08:39 AM
#4
The C(++) standard is unsigned something, usomething keywords are not really needed, you can't make everything a keyword.
By the way, you can make MSVC highlight your own keywords by editting vcdir/common/msdev98/bin/usetype.dat (in vc6, vc7 probably has a similair file)
-
Nov 9th, 2004, 09:21 AM
#5
Thread Starter
Frenzied Member
Thanks. That file is no-where to be found. I have VS 2002.
-
Nov 9th, 2004, 10:38 AM
#6
-
Nov 9th, 2004, 12:54 PM
#7
Thread Starter
Frenzied Member
Looks good to me. Thanks! I'll give it a try.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|