summaryrefslogtreecommitdiffstats
path: root/sipgen/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'sipgen/parser.y')
-rw-r--r--sipgen/parser.y34
1 files changed, 17 insertions, 17 deletions
diff --git a/sipgen/parser.y b/sipgen/parser.y
index 4000e7d..08521e8 100644
--- a/sipgen/parser.y
+++ b/sipgen/parser.y
@@ -1772,7 +1772,7 @@ classline: ifstart
}
| TK_SIGNALS ':' {
if (currentSpec -> genc)
- yyerror("signals section not allowed in a C module");
+ yyerror("Q_SIGNALS section not allowed in a C module");
if (notSkipping())
sectionFlags = SECT_IS_SIGNAL;
@@ -2288,7 +2288,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2);
$$.defval = $4;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPSLOT optname optflags optassign {
$$.atype = slot_type;
@@ -2297,7 +2297,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2);
$$.defval = $4;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPANYSLOT optname optflags optassign {
$$.atype = anyslot_type;
@@ -2306,7 +2306,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2);
$$.defval = $4;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPRXCON optname optflags {
$$.atype = rxcon_type;
@@ -2317,7 +2317,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
if (findOptFlag(&$3, "SingleShot", bool_flag) != NULL)
$$.argflags |= ARG_SINGLE_SHOT;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPRXDIS optname optflags {
$$.atype = rxdis_type;
@@ -2325,7 +2325,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.nrderefs = 0;
$$.name = cacheName(currentSpec, $2);
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPSLOTCON '(' arglist ')' optname optflags {
$$.atype = slotcon_type;
@@ -2339,7 +2339,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.u.sa = sipMalloc(sizeof (signatureDef));
*$$.u.sa = $3;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_SIPSLOTDIS '(' arglist ')' optname optflags {
$$.atype = slotdis_type;
@@ -2353,7 +2353,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.u.sa = sipMalloc(sizeof (signatureDef));
*$$.u.sa = $3;
- currentSpec -> sigslots = TRUE;
+ currentSpec -> sigQ_SLOTS = TRUE;
}
| TK_QOBJECT optname optflags {
$$.atype = qobject_type;
@@ -2750,7 +2750,7 @@ void parse(sipSpec *spec, FILE *fp, char *filename, stringList *tsl,
spec->typedefs = NULL;
spec->exphdrcode = NULL;
spec->docs = NULL;
- spec->sigslots = FALSE;
+ spec->sigQ_SLOTS = FALSE;
spec->genc = -1;
spec->plugins = NULL;
@@ -3666,7 +3666,7 @@ static enumDef *newEnum(sipSpec *pt, moduleDef *mod, mappedTypeDef *mt_scope,
ed->next_alt = next_alt;
ed->module = mod;
ed->members = NULL;
- ed->slots = NULL;
+ ed->Q_SLOTS = NULL;
ed->overs = NULL;
ed->next = pt -> enums;
@@ -4249,9 +4249,9 @@ static void instantiateTemplateEnums(sipSpec *pt, classTmplDef *tcd,
ed->members = emd;
}
- ed->slots = instantiateTemplateMethods(ted->slots, mod);
+ ed->Q_SLOTS = instantiateTemplateMethods(ted->Q_SLOTS, mod);
ed->overs = instantiateTemplateOverloads(pt, ted->overs,
- ted->slots, ed->slots, tcd, td, cd, used, type_names,
+ ted->Q_SLOTS, ed->Q_SLOTS, tcd, td, cd, used, type_names,
type_values);
ed->next = pt->enums;
@@ -4969,16 +4969,16 @@ static void newFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
if (isSignal(od))
setHasShadow(c_scope);
- pt->sigslots = TRUE;
+ pt->sigQ_SLOTS = TRUE;
}
if (isSignal(od) && (methodcode != NULL || vcode != NULL))
- yyerror("Cannot provide code for signals");
+ yyerror("Cannot provide code for Q_SIGNALS");
if (isstatic)
{
if (isSignal(od))
- yyerror("Static functions cannot be signals");
+ yyerror("Static functions cannot be Q_SIGNALS");
if (isvirt)
yyerror("Static functions cannot be virtual");
@@ -5006,7 +5006,7 @@ static void newFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
if (isvirt)
{
if (isSignal(od) && pluginPyQt3(pt))
- yyerror("Virtual signals aren't supported");
+ yyerror("Virtual Q_SIGNALS aren't supported");
setIsVirtual(od);
setHasShadow(c_scope);
@@ -5232,7 +5232,7 @@ static memberDef *findFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
int nrargs; /* Nr. of arguments. */
} slot_table[] = {
{"__str__", str_slot, TRUE, 0},
- {"__unicode__", unicode_slot, TRUE, 0},
+ {"__tqunicode__", tqunicode_slot, TRUE, 0},
{"__int__", int_slot, FALSE, 0},
{"__long__", long_slot, FALSE, 0},
{"__float__", float_slot, FALSE, 0},