DOC: Clarification of the /H Identifier Length Option (51724)
The information in this article applies to:
- Microsoft C for MS-DOS
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Editions 5.0
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q51724 SUMMARY
In Microsoft C, the /H option is used to set the maximum length of
identifiers. Using /H can only decrease the maximum allowable length of
identifiers, not increase it. An identifier declared with the CDECL type
has an underscore (_) appended to the front at compile time. This character
is part of the identifier and takes a significant location. Therefore, the
maximum length of an identifier declared with the standard C declaration
syntax is 32 characters.
In C/C++ version 7.0, the default maximum length is also 32
characters. However, in this version, the /H option may be used to
increase this to a maximum of 247 characters.
In Visual C++ 16-bit and Visual C++ 32-bit, there is no default maximum
length--identifiers can be up to 2047 characters in length. Compiling a
program with an identifier containing more than 2047 characters will
generate fatal error C1064, compiler limit : token overflowed internal
buffer.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbbug kbdocerr KB51724 |
---|
|