summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
commit13ddc5dbc165f3fead4a70301073bc901dbc1269 (patch)
tree2d4022f6bf3ffcf332efae28aae436e9b9a6f678 /src/lib/ector
parentd0fed247bbb18933b3d5c086126ac0f7b8d05e76 (diff)
eolian: rename @warn_unused and its associated API
@warn_unused in syntax is now called @no_unused - this is because "warning about unused" is a C thing (or rather, an extension to C) and various languages might want to use stricter behavior for this. Its associated API does the reverse now - it lets you query whether being unused is allowed at all. This is to match future behavior of Eolian (once it supports versioning) that will likely reverse it. @feature
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/cairo/ector_cairo_surface.eo2
-rw-r--r--src/lib/ector/ector_buffer.eo2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ector/cairo/ector_cairo_surface.eo b/src/lib/ector/cairo/ector_cairo_surface.eo
index 96abd0f..dabd214 100644
--- a/src/lib/ector/cairo/ector_cairo_surface.eo
+++ b/src/lib/ector/cairo/ector_cairo_surface.eo
@@ -20,7 +20,7 @@ class @beta Ector.Cairo.Surface extends Efl.Object implements Ector.Surface
20 } 20 }
21 symbol_get { 21 symbol_get {
22 [[Lookup symbal name in cairo lib]] 22 [[Lookup symbal name in cairo lib]]
23 return: void_ptr @warn_unused; [[Pointer to cairo lib with this symbol]] 23 return: void_ptr @no_unused; [[Pointer to cairo lib with this symbol]]
24 params { 24 params {
25 @in name: string; [[Symbol name]] 25 @in name: string; [[Symbol name]]
26 } 26 }
diff --git a/src/lib/ector/ector_buffer.eo b/src/lib/ector/ector_buffer.eo
index baa1071..a2e2253 100644
--- a/src/lib/ector/ector_buffer.eo
+++ b/src/lib/ector/ector_buffer.eo
@@ -60,7 +60,7 @@ mixin @beta Ector.Buffer
60 map should try to convert the data into a new buffer]] 60 map should try to convert the data into a new buffer]]
61 @out stride: uint @optional; [[Returns the length in bytes of a mapped line]] 61 @out stride: uint @optional; [[Returns the length in bytes of a mapped line]]
62 } 62 }
63 return: void_ptr @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]] 63 return: void_ptr @no_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]]
64 } 64 }
65 unmap @pure_virtual { 65 unmap @pure_virtual {
66 [[Unmap a region of this buffer, and upload data to the GPU (if needed).]] 66 [[Unmap a region of this buffer, and upload data to the GPU (if needed).]]