summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-11-03 15:30:10 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-11-03 15:30:10 +0100
commit0dbbb18171d58482553d1c76e13ff50e56776ac0 (patch)
tree0290d657713a373e1c047e99328868fd19e8e062 /src/lib/elementary
parente5d1cc731a6ea6d8336b6b887352f7a4e02537ae (diff)
eolian: disallow ptr() on things that are already pointer-like
This disallows deeply nested pointers, you can only explicitly ptr() on types that are strictly value types. For a few cases where it was necessary to override this behavior, you can use legacy(ptr(x)) as a temporary measure.
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_calendar.eo2
-rw-r--r--src/lib/elementary/elm_dayselector.eo2
-rw-r--r--src/lib/elementary/elm_map.eo2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_calendar.eo b/src/lib/elementary/elm_calendar.eo
index d08765d312..2b734b30fe 100644
--- a/src/lib/elementary/elm_calendar.eo
+++ b/src/lib/elementary/elm_calendar.eo
@@ -169,7 +169,7 @@ class Elm.Calendar (Efl.Ui.Layout, Efl.Ui.Focus.Composition, Elm.Interface.Atspi
169 get { 169 get {
170 } 170 }
171 values { 171 values {
172 weekdays: ptr(string); [[Array of seven strings to be used as weekday names. 172 weekdays: legacy(ptr(string)); [[Array of seven strings to be used as weekday names.
173 Warning: It must have 7 elements, or it will access invalid memory. 173 Warning: It must have 7 elements, or it will access invalid memory.
174 Warning: The strings must be $null terminated ('@\0').]] 174 Warning: The strings must be $null terminated ('@\0').]]
175 } 175 }
diff --git a/src/lib/elementary/elm_dayselector.eo b/src/lib/elementary/elm_dayselector.eo
index 0bc85ad001..c5135da6ea 100644
--- a/src/lib/elementary/elm_dayselector.eo
+++ b/src/lib/elementary/elm_dayselector.eo
@@ -107,7 +107,7 @@ class Elm.Dayselector (Efl.Ui.Layout)
107 */ 107 */
108 108
109 params { 109 params {
110 @in weekdays: ptr(string) @nullable; [[Array of seven strings to be used as weekday names. 110 @in weekdays: legacy(ptr(string)) @nullable; [[Array of seven strings to be used as weekday names.
111 Warning: It must have 7 elements, or it will access invalid memory. 111 Warning: It must have 7 elements, or it will access invalid memory.
112 Warning: The strings must be NULL terminated ('@\0').]] 112 Warning: The strings must be NULL terminated ('@\0').]]
113 } 113 }
diff --git a/src/lib/elementary/elm_map.eo b/src/lib/elementary/elm_map.eo
index 7f5376ad85..908444da84 100644
--- a/src/lib/elementary/elm_map.eo
+++ b/src/lib/elementary/elm_map.eo
@@ -431,7 +431,7 @@ class Elm.Map (Elm.Widget, Elm.Interface_Scrollable,
431 431
432 At least available sources of name type are "Nominatim". 432 At least available sources of name type are "Nominatim".
433 ]] 433 ]]
434 return: ptr(string); [[The char pointer array of source names.]] 434 return: legacy(ptr(string)); [[The char pointer array of source names.]]
435 params { 435 params {
436 @in type: Elm.Map.Source_Type; [[Source type.]] 436 @in type: Elm.Map.Source_Type; [[Source type.]]
437 } 437 }