eolian: @own -> own

This commit is contained in:
Daniel Kolesa 2014-06-30 18:10:29 +01:00
parent 863fc60143
commit c8e2e8d48a
6 changed files with 14 additions and 14 deletions

View File

@ -20,8 +20,8 @@ enum Tokens
KW(abstract), KW(constructor), KW(constructors), KW(data), \
KW(destructor), KW(eo_prefix), KW(events), KW(func), KW(get), \
KW(implements), KW(interface), KW(keys), KW(legacy), KW(legacy_prefix), \
KW(methods), KW(mixin), KW(params), KW(properties), KW(set), KW(type), \
KW(values), KWAT(in), KWAT(inout), KWAT(nonull), KWAT(out), KWAT(own), \
KW(methods), KW(mixin), KW(own), KW(params), KW(properties), KW(set), \
KW(type), KW(values), KWAT(in), KWAT(inout), KWAT(nonull), KWAT(out), \
KWAT(warn_unused), \
\
KW(char), KW(uchar), KW(schar), KW(short), KW(ushort), KW(int), KW(uint), \

View File

@ -166,7 +166,7 @@ parse_type(Eo_Lexer *ls)
check_match(ls, ')', '(', line);
goto parse_ptr;
}
case KW_at_own:
case KW_own:
{
int line;
eo_lexer_get(ls);
@ -336,8 +336,8 @@ parse_attrs(Eo_Lexer *ls)
first = EINA_FALSE;
eo_lexer_get(ls);
break;
case KW_at_own:
CASE_LOCK(ls, own, "@own qualifier")
case KW_own:
CASE_LOCK(ls, own, "own qualifier")
if (!first) eina_strbuf_append_char(buf, ' ');
eina_strbuf_append(buf, "@own");
first = EINA_FALSE;

View File

@ -2,21 +2,21 @@ class Complex_Type {
properties {
a {
set {
return @own(Eina_List*)<Eina_Array*<@own(Eo**)>>;
return own(Eina_List*)<Eina_Array*<own(Eo**)>>;
}
get {
}
values {
@own(Eina_List*)<int> value;
own(Eina_List*)<int> value;
}
}
}
methods {
foo {
params {
@own(char*) buf;
own(char*) buf;
}
return @own(Eina_List*)<Eina_Stringshare *>; /*@ comment for method return */
return own(Eina_List*)<Eina_Stringshare *>; /*@ comment for method return */
}
}
}

View File

@ -21,7 +21,7 @@ class Object (Base) {
const(char)* part;
}
values {
@own(Eina_List*)<int> value;
own(Eina_List*)<int> value;
}
}
b {
@ -31,7 +31,7 @@ class Object (Base) {
/* set as virtual pure - no implementation expected */
}
values {
@own(Eina_List*)<int> value;
own(Eina_List*)<int> value;
}
}
}

View File

@ -7,7 +7,7 @@ class Object (Base) {
/* set as virtual pure - no implementation expected */
}
values {
@own(Eina_List*)<int> value;
own(Eina_List*)<int> value;
}
}
}

View File

@ -1,5 +1,5 @@
type Evas_Coord: int; /* Simple type definition */
type List_Objects: @own(Eina_List*)< Eo *>; /* A little more complex */
type List_Objects: own(Eina_List*)< Eo *>; /* A little more complex */
class Dummy {
methods {
@ -7,7 +7,7 @@ class Dummy {
params {
int idx;
}
return @own(char*); /*@ comment for method return */
return own(char*); /*@ comment for method return */
}
}
}