summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-29 10:48:09 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-29 17:22:07 -0300
commitf203c164d8de0012a0e1a3dc6622be68d1d4bf85 (patch)
treef00fff45043528bc6c0d3850c3def556185f3af5
parent167cb43a9680877be925eff620707fc60580b0df (diff)
eo files: Avoid container<ptr(value_type)> usage.
Summary: Value types are already assumed to be stored by pointer (e.g. `int val = *(node->data);`) This commit just changes the current usage of the `ptr` modifier in the ptr, not affecting the parser. Reviewers: q66, segfaultxavi, bu5hm4n, felipealmeida Reviewed By: q66 Subscribers: cedric, #reviewers, #committers, brunobelo Tags: #efl Differential Revision: https://phab.enlightenment.org/D10769
-rw-r--r--src/lib/ecore/efl_boolean_model.eo2
-rw-r--r--src/lib/ecore_con/efl_net_control_manager.eo2
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.eo6
-rw-r--r--src/lib/ecore_con/efl_net_dialer_websocket.eo2
-rw-r--r--src/lib/ector/ector_renderer.eo2
-rw-r--r--src/lib/ector/gl/ector_gl_surface.eo2
-rw-r--r--src/lib/efl/interfaces/efl_observable.eo2
-rw-r--r--src/lib/eio/efl_io_manager.eo2
-rw-r--r--src/lib/eldbus/eldbus_model_arguments.eo2
-rw-r--r--src/lib/eldbus/eldbus_types.eot4
-rw-r--r--src/lib/elementary/efl_access_action.eo2
-rw-r--r--src/lib/elementary/efl_access_object.eo4
-rw-r--r--src/lib/elementary/efl_access_text.eo6
-rw-r--r--src/tests/eolian_js/test_object.eo2
14 files changed, 20 insertions, 20 deletions
diff --git a/src/lib/ecore/efl_boolean_model.eo b/src/lib/ecore/efl_boolean_model.eo
index fa5b140..8222e30 100644
--- a/src/lib/ecore/efl_boolean_model.eo
+++ b/src/lib/ecore/efl_boolean_model.eo
@@ -25,7 +25,7 @@ class @beta Efl.Boolean_Model extends Efl.Composite_Model
25 @in name: string; [[The name of the property to examine.]] 25 @in name: string; [[The name of the property to examine.]]
26 @in request: bool; [[The value to look for.]] 26 @in request: bool; [[The value to look for.]]
27 } 27 }
28 return: iterator<ptr(uint64)> @move; [[The iterator that is valid until any change is made on the model.]] 28 return: iterator<uint64> @move; [[The iterator that is valid until any change is made on the model.]]
29 } 29 }
30 } 30 }
31 implements { 31 implements {
diff --git a/src/lib/ecore_con/efl_net_control_manager.eo b/src/lib/ecore_con/efl_net_control_manager.eo
index 4d7d232..3c84235 100644
--- a/src/lib/ecore_con/efl_net_control_manager.eo
+++ b/src/lib/ecore_con/efl_net_control_manager.eo
@@ -36,7 +36,7 @@ struct @beta Efl.Net.Control.Agent_Request_Input {
36 access_point: Efl.Net.Control.Access_Point; [[The access point which triggered this request.]] 36 access_point: Efl.Net.Control.Access_Point; [[The access point which triggered this request.]]
37 fields: Efl.Net.Control.Agent_Request_Input_Field; [[Bitwise OR of fields present in this request.]] 37 fields: Efl.Net.Control.Agent_Request_Input_Field; [[Bitwise OR of fields present in this request.]]
38 passphrase_type: string; [[Extra detail for the passphrase field, such as wep, psk, response (IEEE802.X GTC/OTP), string...]] 38 passphrase_type: string; [[Extra detail for the passphrase field, such as wep, psk, response (IEEE802.X GTC/OTP), string...]]
39 informational: list<ptr(Efl.Net.Control.Agent_Request_Input_Information)>; [[Such as the previous passphrase, VPN host]] 39 informational: list<Efl.Net.Control.Agent_Request_Input_Information>; [[Such as the previous passphrase, VPN host]]
40} 40}
41 41
42struct @beta Efl.Net.Control.Agent_Error { 42struct @beta Efl.Net.Control.Agent_Error {
diff --git a/src/lib/ecore_con/efl_net_dialer_http.eo b/src/lib/ecore_con/efl_net_dialer_http.eo
index 59701a3..00bff41 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.eo
+++ b/src/lib/ecore_con/efl_net_dialer_http.eo
@@ -187,7 +187,7 @@ class @beta Efl.Net.Dialer_Http extends Efl.Loop_Consumer implements Efl.Net.Dia
187 187
188 request_headers_get { 188 request_headers_get {
189 [[Returns an iterator to the key-value pairs for request headers]] 189 [[Returns an iterator to the key-value pairs for request headers]]
190 return: iterator<ptr(Efl.Net.Http.Header)> @move @no_unused; [[Iterator for request headers]] 190 return: iterator<Efl.Net.Http.Header> @move @no_unused; [[Iterator for request headers]]
191 } 191 }
192 192
193 @property request_content_length { 193 @property request_content_length {
@@ -250,7 +250,7 @@ class @beta Efl.Net.Dialer_Http extends Efl.Loop_Consumer implements Efl.Net.Dia
250 250
251 This will be usable after the "headers,done" event is dispatched. 251 This will be usable after the "headers,done" event is dispatched.
252 ]] 252 ]]
253 return: iterator<ptr(Efl.Net.Http.Header)> @move @no_unused; [[Iterator for response headers]] 253 return: iterator<Efl.Net.Http.Header> @move @no_unused; [[Iterator for response headers]]
254 } 254 }
255 255
256 response_headers_all_get { 256 response_headers_all_get {
@@ -275,7 +275,7 @@ class @beta Efl.Net.Dialer_Http extends Efl.Loop_Consumer implements Efl.Net.Dia
275 275
276 This will be usable after the "headers,done" event is dispatched. 276 This will be usable after the "headers,done" event is dispatched.
277 ]] 277 ]]
278 return: iterator<ptr(Efl.Net.Http.Header)> @move @no_unused; [[Iterator for all response headers]] 278 return: iterator<Efl.Net.Http.Header> @move @no_unused; [[Iterator for all response headers]]
279 } 279 }
280 280
281 response_headers_clear { 281 response_headers_clear {
diff --git a/src/lib/ecore_con/efl_net_dialer_websocket.eo b/src/lib/ecore_con/efl_net_dialer_websocket.eo
index 4bd96a5..612f504 100644
--- a/src/lib/ecore_con/efl_net_dialer_websocket.eo
+++ b/src/lib/ecore_con/efl_net_dialer_websocket.eo
@@ -260,7 +260,7 @@ class @beta Efl.Net.Dialer_Websocket extends Efl.Loop_Consumer implements Efl.Ne
260 260
261 request_headers_get { 261 request_headers_get {
262 [[Returns an iterator to the key-value pairs for request headers]] 262 [[Returns an iterator to the key-value pairs for request headers]]
263 return: iterator<ptr(Efl.Net.Http.Header)> @move @no_unused; [[Iterator to key value pairs]] 263 return: iterator<Efl.Net.Http.Header> @move @no_unused; [[Iterator to key value pairs]]
264 } 264 }
265 265
266 @property cookie_jar { 266 @property cookie_jar {
diff --git a/src/lib/ector/ector_renderer.eo b/src/lib/ector/ector_renderer.eo
index 74d0f8b..d37f785 100644
--- a/src/lib/ector/ector_renderer.eo
+++ b/src/lib/ector/ector_renderer.eo
@@ -92,7 +92,7 @@ abstract @beta Ector.Renderer extends Efl.Object
92 return: bool; [[$true on success, $false otherwise]] 92 return: bool; [[$true on success, $false otherwise]]
93 params { 93 params {
94 @in op: Efl.Gfx.Render_Op; [[Renderer operation]] 94 @in op: Efl.Gfx.Render_Op; [[Renderer operation]]
95 @in clips: array<ptr(Eina.Rect)>; [[Array of @Eina.Rect clip]] 95 @in clips: array<Eina.Rect>; [[Array of @Eina.Rect clip]]
96 @in mul_col: uint; [[Premultiplied color]] 96 @in mul_col: uint; [[Premultiplied color]]
97 } 97 }
98 } 98 }
diff --git a/src/lib/ector/gl/ector_gl_surface.eo b/src/lib/ector/gl/ector_gl_surface.eo
index 62aefb4..4f02576 100644
--- a/src/lib/ector/gl/ector_gl_surface.eo
+++ b/src/lib/ector/gl/ector_gl_surface.eo
@@ -27,7 +27,7 @@ class @beta Ector.GL.Surface extends Ector.GL.Buffer implements Ector.Surface
27 return: bool; [[$true on success, $false otherwise]] 27 return: bool; [[$true on success, $false otherwise]]
28 params { 28 params {
29 @in op: Efl.Gfx.Render_Op; [[Render operation]] 29 @in op: Efl.Gfx.Render_Op; [[Render operation]]
30 @in clips: array<ptr(Eina.Rect)>; [[Array of @Eina.Rect clip]] 30 @in clips: array<Eina.Rect>; [[Array of @Eina.Rect clip]]
31 } 31 }
32 } 32 }
33 } 33 }
diff --git a/src/lib/efl/interfaces/efl_observable.eo b/src/lib/efl/interfaces/efl_observable.eo
index 40deba9..d551f6f 100644
--- a/src/lib/efl/interfaces/efl_observable.eo
+++ b/src/lib/efl/interfaces/efl_observable.eo
@@ -57,7 +57,7 @@ class @beta Efl.Observable extends Efl.Object {
57 iterator_tuple_new { 57 iterator_tuple_new {
58 [[Return a new iterator associated to this observable. 58 [[Return a new iterator associated to this observable.
59 ]] 59 ]]
60 return: iterator<ptr(Efl.Observable_Tuple)> @move; [[Iterator for observer]] 60 return: iterator<Efl.Observable_Tuple> @move; [[Iterator for observer]]
61 } 61 }
62 } 62 }
63 implements { 63 implements {
diff --git a/src/lib/eio/efl_io_manager.eo b/src/lib/eio/efl_io_manager.eo
index b88d7f8..9149595 100644
--- a/src/lib/eio/efl_io_manager.eo
+++ b/src/lib/eio/efl_io_manager.eo
@@ -17,7 +17,7 @@ function @beta EflIoPath {
17function @beta EflIoDirectInfo { 17function @beta EflIoDirectInfo {
18 [[EflIoDirectInfo function]] 18 [[EflIoDirectInfo function]]
19 params { 19 params {
20 @in entries: array<ptr(Eina.File_Direct_Info)>; [[Accessor to an array of info.]] 20 @in entries: array<Eina.File_Direct_Info>; [[Accessor to an array of info.]]
21 } 21 }
22}; 22};
23 23
diff --git a/src/lib/eldbus/eldbus_model_arguments.eo b/src/lib/eldbus/eldbus_model_arguments.eo
index 1512904..66f414d 100644
--- a/src/lib/eldbus/eldbus_model_arguments.eo
+++ b/src/lib/eldbus/eldbus_model_arguments.eo
@@ -11,7 +11,7 @@ class @beta Eldbus.Model.Arguments extends Eldbus.Model {
11 params { 11 params {
12 @in proxy: ptr(Eldbus.Proxy); [[Eldbus proxy]] 12 @in proxy: ptr(Eldbus.Proxy); [[Eldbus proxy]]
13 @in name: string; [[Name]] 13 @in name: string; [[Name]]
14 @in arguments: const(list<ptr(Eldbus.Introspection.Argument)>); [[The introspected arguments]] 14 @in arguments: const(list<Eldbus.Introspection.Argument>); [[The introspected arguments]]
15 } 15 }
16 } 16 }
17 @property arg_name { 17 @property arg_name {
diff --git a/src/lib/eldbus/eldbus_types.eot b/src/lib/eldbus/eldbus_types.eot
index a4a5bab..82687b2 100644
--- a/src/lib/eldbus/eldbus_types.eot
+++ b/src/lib/eldbus/eldbus_types.eot
@@ -86,6 +86,6 @@ struct @beta @extern Eldbus.Introspection.Signal
86{ 86{
87 [[DBus Signal]] 87 [[DBus Signal]]
88 name: stringshare; [[Signal name]] 88 name: stringshare; [[Signal name]]
89 arguments: list<ptr(Eldbus.Introspection.Argument)>; [[List with signal arguments]] 89 arguments: list<Eldbus.Introspection.Argument>; [[List with signal arguments]]
90 annotations: list<ptr(Eldbus.Introspection.Annotation)>; [[List with signal annotations]] 90 annotations: list<Eldbus.Introspection.Annotation>; [[List with signal annotations]]
91} 91}
diff --git a/src/lib/elementary/efl_access_action.eo b/src/lib/elementary/efl_access_action.eo
index 8f70f0e..c292624 100644
--- a/src/lib/elementary/efl_access_action.eo
+++ b/src/lib/elementary/efl_access_action.eo
@@ -47,7 +47,7 @@ mixin @beta Efl.Access.Action
47 get @pure_virtual { 47 get @pure_virtual {
48 } 48 }
49 values { 49 values {
50 actions: list<ptr(Efl.Access.Action_Data)> @move; 50 actions: list<Efl.Access.Action_Data> @move;
51 [[Contains statically allocated strings.]] 51 [[Contains statically allocated strings.]]
52 } 52 }
53 } 53 }
diff --git a/src/lib/elementary/efl_access_object.eo b/src/lib/elementary/efl_access_object.eo
index fc16ea2..f3e70de 100644
--- a/src/lib/elementary/efl_access_object.eo
+++ b/src/lib/elementary/efl_access_object.eo
@@ -263,7 +263,7 @@ mixin @beta Efl.Access.Object requires Efl.Object
263 } 263 }
264 relations_get @protected @beta @const { 264 relations_get @protected @beta @const {
265 [[Gets an all relations between accessible object and other accessible objects.]] 265 [[Gets an all relations between accessible object and other accessible objects.]]
266 return: iterator<ptr(Efl.Access.Relation)> @move; [[Accessible relation set]] 266 return: iterator<Efl.Access.Relation> @move; [[Accessible relation set]]
267 } 267 }
268 @property role @beta { 268 @property role @beta {
269 [[The role of the object in accessibility domain.]] 269 [[The role of the object in accessibility domain.]]
@@ -296,7 +296,7 @@ mixin @beta Efl.Access.Object requires Efl.Object
296 get { 296 get {
297 } 297 }
298 values { 298 values {
299 attributes: list<ptr(Efl.Access.Attribute) @move> @move; [[List of object attributes. 299 attributes: list<Efl.Access.Attribute> @move; [[List of object attributes.
300 Must be freed by the user]] 300 Must be freed by the user]]
301 } 301 }
302 } 302 }
diff --git a/src/lib/elementary/efl_access_text.eo b/src/lib/elementary/efl_access_text.eo
index 0fe97c4..fe76de5 100644
--- a/src/lib/elementary/efl_access_text.eo
+++ b/src/lib/elementary/efl_access_text.eo
@@ -121,7 +121,7 @@ interface @beta Efl.Access.Text
121 end_offset: ptr(int); [[End offset]] 121 end_offset: ptr(int); [[End offset]]
122 } 122 }
123 values { 123 values {
124 attributes: list<ptr(Efl.Access.Text_Attribute) @move> @move; [[List of text attributes]] 124 attributes: list<Efl.Access.Text_Attribute> @move; [[List of text attributes]]
125 } 125 }
126 } 126 }
127 @property default_attributes @protected @beta { 127 @property default_attributes @protected @beta {
@@ -129,7 +129,7 @@ interface @beta Efl.Access.Text
129 get { 129 get {
130 } 130 }
131 values { 131 values {
132 attributes: list<ptr(Efl.Access.Text_Attribute) @move> @move; [[List of default attributes]] 132 attributes: list<Efl.Access.Text_Attribute> @move; [[List of default attributes]]
133 } 133 }
134 } 134 }
135 @property character_extents @protected @beta { 135 @property character_extents @protected @beta {
@@ -180,7 +180,7 @@ interface @beta Efl.Access.Text
180 yclip: Efl.Access.Text_Clip_Type; [[yclip]] 180 yclip: Efl.Access.Text_Clip_Type; [[yclip]]
181 } 181 }
182 values { 182 values {
183 ranges: list<ptr(Efl.Access.Text_Range) @move> @move; [[List of ranges]] 183 ranges: list<Efl.Access.Text_Range> @move; [[List of ranges]]
184 } 184 }
185 } 185 }
186 @property range_extents @protected @beta { 186 @property range_extents @protected @beta {
diff --git a/src/tests/eolian_js/test_object.eo b/src/tests/eolian_js/test_object.eo
index 1fc4623..21bc5b8 100644
--- a/src/tests/eolian_js/test_object.eo
+++ b/src/tests/eolian_js/test_object.eo
@@ -317,7 +317,7 @@ class Test.Object extends Efl.Object {
317 return: list<array<int> >; 317 return: list<array<int> >;
318 } 318 }
319 method_list_with_opaque_elements_check { 319 method_list_with_opaque_elements_check {
320 return: const(list<ptr(Elm.Calendar.Mark)>); 320 return: const(list<Elm.Calendar.Mark>);
321 } 321 }
322 method_in_enum_return_enum_check { 322 method_in_enum_return_enum_check {
323 params { e: Test.Enum_Ex; } 323 params { e: Test.Enum_Ex; }