gov.llnl.babel.backend.mangler
public class CMangler extends ShaMangler
NameMangler
for the C language. Most
C compilers allow arbitrarily large identifiers and consider an
arbitrarily large number of characters in resolving symbols too. However,
the C standard only promises that only the first 31 characters are
significant. Some brain damaged C compilers may require name mangling.Constructor and Description |
---|
CMangler(int maxNameLen,
int maxUnmangled)
Create a name mangler for C.
|
shortArrayName, shortName, shortName
public CMangler(int maxNameLen, int maxUnmangled) throws java.security.NoSuchAlgorithmException
maxNameLen
- the maximum allowable number of characters in a
name. Typically, this is 31 for the ANSI C
standard.maxUnmangled
- the number of characters out of
maxNameLen
that should be used
for unmangled content.java.security.NoSuchAlgorithmException
- this is thrown when the SHA message digest is unavailable. Sun's
specifications says that it should be available.