# include "nameChecks.h"
static bool checkCzechName (uentry p_ue, flagcode p_czechflag, bool p_report)
- /*@modifies p_ue, g_msgstream@*/ ;
+ /*@modifies p_ue, g_warningstream@*/ ;
static bool checkSlovakName (uentry p_ue, flagcode p_slovakflag, bool p_report)
- /*@modifies p_ue, g_msgstream@*/ ;
+ /*@modifies p_ue, g_warningstream@*/ ;
static cstring czechPrefix (cstring name)
{
static cstring slovakPrefix (cstring name)
{
- int i = 0;
+ size_t i = 0;
cstring_chars (name, c)
{
}
else
{
- int namelen = cstring_length (name);
+ size_t namelen = cstring_length (name);
int last = (int) '\0';
- int n = 1;
+ size_t n = 1;
cstring_chars (prefix, pc)
{
{
bool hasError = FALSE;
cstring name = uentry_observeRealName (ue);
- int length = cstring_length (name);
+ size_t length = cstring_length (name);
char fchar = (length >= 1) ? cstring_firstChar (name) : '\0';
char schar = (length >= 2) ? cstring_secondChar (name) : '\0';
char tchar = (length >= 3) ? cstring_getChar (name, 3) : '\0';
NRESERVEDNAMES)))
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message ("Name %s is reserved for the standard library",
name),
uentry_whereLast (ue));
}
if (uentry_isFileStatic (ue) || uentry_isVisibleExternally (ue) || uentry_isAnyTag (ue)
- || context_getFlag (FLG_ANSIRESERVEDLOCAL))
+ || context_getFlag (FLG_ISORESERVEDLOCAL))
{
if (fchar == '_')
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message
("Name %s is in the implementation name space (any identifier "
"beginning with underscore)",
&& (schar == '_' || isupper ((int) schar)))
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message
("Name %s is in the implementation name space (any identifier "
"beginning with underscore and either an uppercase letter or "
|| isupper ((int) schar)))
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message
("Name %s is reserved for future library extensions. "
"Macros beginning with E and a digit or uppercase letter "
&& (isupper ((int) rchar)))
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message
("Name %s is reserved for future library extensions. "
"Macros beginning with \"LC_\" and an uppercase letter may "
|| (isupper ((int) rchar))))
{
hasError |= optgenerror2
- (FLG_ANSIRESERVED, FLG_NAMECHECKS,
+ (FLG_ISORESERVED, FLG_NAMECHECKS,
message
("Name %s is reserved for future library extensions. "
"Macros that begin with SIG and an uppercase letter or SIG_ "
DPRINTF (("Here..."));
if ((uentry_isVisibleExternally (ue) && !uentry_isAnyTag (ue))
- || context_getFlag (FLG_ANSIRESERVEDLOCAL))
+ || context_getFlag (FLG_ISORESERVEDLOCAL))
{
flagcode flg;
if (uentry_isVisibleExternally (ue) && !uentry_isAnyTag (ue))
{
- flg = FLG_ANSIRESERVED;
+ flg = FLG_ISORESERVED;
}
else
{
- flg = FLG_ANSIRESERVEDLOCAL;
+ flg = FLG_ISORESERVEDLOCAL;
}
DPRINTF (("ue: %s", uentry_unparseFull (ue)));
}
}
-
-
-
/*@i523 POSIX p. 527 - applications should not declare any symbols that end _MAX @*/