stop using IsXXX for boolean Getters

This commit is contained in:
alecf%netscape.com 1999-01-26 18:20:30 +00:00
Родитель 4bddf368f9
Коммит a39aee01fc
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -331,11 +331,6 @@ static gboolean
attr_accessor(TreeState *state, gboolean getter)
{
char *attrname = ATTR_IDENT(state->tree).str;
if (getter && (ATTR_TYPE(state->tree) == IDLN_TYPE_BOOLEAN)) {
fprintf(state->file, " NS_IMETHOD Is%c%s(PRBool *aIs%c%s) = 0;\n",
toupper(attrname[0]), attrname + 1,
toupper(attrname[0]), attrname + 1);
} else {
IDL_tree orig = state->tree;
fprintf(state->file, " NS_IMETHOD %cet%c%s(",
getter ? 'G' : 'S',
@ -348,7 +343,6 @@ attr_accessor(TreeState *state, gboolean getter)
(STARRED_TYPE(orig) ? "" : " "),
getter ? "*" : "",
toupper(attrname[0]), attrname + 1);
}
return TRUE;
}

Просмотреть файл

@ -331,11 +331,6 @@ static gboolean
attr_accessor(TreeState *state, gboolean getter)
{
char *attrname = ATTR_IDENT(state->tree).str;
if (getter && (ATTR_TYPE(state->tree) == IDLN_TYPE_BOOLEAN)) {
fprintf(state->file, " NS_IMETHOD Is%c%s(PRBool *aIs%c%s) = 0;\n",
toupper(attrname[0]), attrname + 1,
toupper(attrname[0]), attrname + 1);
} else {
IDL_tree orig = state->tree;
fprintf(state->file, " NS_IMETHOD %cet%c%s(",
getter ? 'G' : 'S',
@ -348,7 +343,6 @@ attr_accessor(TreeState *state, gboolean getter)
(STARRED_TYPE(orig) ? "" : " "),
getter ? "*" : "",
toupper(attrname[0]), attrname + 1);
}
return TRUE;
}