DUH! how about this time we make the generate code do something useful. sorry about this.
This commit is contained in:
Родитель
201736a175
Коммит
8afbdc2689
|
@ -417,7 +417,7 @@ interface(TreeState *state)
|
|||
case IDLN_OP_DCL:
|
||||
write_indent(state->file);
|
||||
write_method_signature(data, state->file, AS_DECL, NULL);
|
||||
fputs(" { return !_to ? return NS_ERROR_NULL_POINTER : _to ## ", state->file);
|
||||
fputs(" { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ", state->file);
|
||||
write_method_signature(data, state->file, AS_CALL, NULL);
|
||||
break;
|
||||
|
||||
|
@ -425,7 +425,7 @@ interface(TreeState *state)
|
|||
write_indent(state->file);
|
||||
if (!write_attr_accessor(data, state->file, TRUE, AS_DECL, NULL))
|
||||
FAIL;
|
||||
fputs(" { return !_to ? return NS_ERROR_NULL_POINTER : _to ## ", state->file);
|
||||
fputs(" { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->", state->file);
|
||||
if (!write_attr_accessor(data, state->file, TRUE, AS_CALL, NULL))
|
||||
FAIL;
|
||||
if (!IDL_ATTR_DCL(data).f_readonly) {
|
||||
|
@ -434,7 +434,7 @@ interface(TreeState *state)
|
|||
if (!write_attr_accessor(data, state->file,
|
||||
FALSE, AS_DECL, NULL))
|
||||
FAIL;
|
||||
fputs(" { return !_to ? return NS_ERROR_NULL_POINTER : _to ## ", state->file);
|
||||
fputs(" { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->", state->file);
|
||||
if (!write_attr_accessor(data, state->file,
|
||||
FALSE, AS_CALL, NULL))
|
||||
FAIL;
|
||||
|
|
Загрузка…
Ссылка в новой задаче