forked from enlightenment/efl
size_t -> int.
really - i prefer it and if we hit the 2gb limit of a signed int for bytes added to a textblock... thats the day we will need evas 2 :) SVN revision: 52576
This commit is contained in:
parent
21ec26bed3
commit
fa813fb8f2
|
@ -1412,8 +1412,8 @@ typedef void (*Evas_Object_Image_Pixels_Get_Cb) (void *data, Evas_Object *o);
|
||||||
EAPI int evas_textblock_cursor_compare(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2) EINA_PURE;
|
EAPI int evas_textblock_cursor_compare(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2) EINA_PURE;
|
||||||
EAPI void evas_textblock_cursor_copy(const Evas_Textblock_Cursor *cur, Evas_Textblock_Cursor *cur_dest) EINA_ARG_NONNULL(1, 2);
|
EAPI void evas_textblock_cursor_copy(const Evas_Textblock_Cursor *cur, Evas_Textblock_Cursor *cur_dest) EINA_ARG_NONNULL(1, 2);
|
||||||
|
|
||||||
EAPI size_t evas_textblock_cursor_text_append(Evas_Textblock_Cursor *cur, const char *text) EINA_ARG_NONNULL(1, 2);
|
EAPI int evas_textblock_cursor_text_append(Evas_Textblock_Cursor *cur, const char *text) EINA_ARG_NONNULL(1, 2);
|
||||||
EAPI size_t evas_textblock_cursor_text_prepend(Evas_Textblock_Cursor *cur, const char *text) EINA_ARG_NONNULL(1, 2);
|
EAPI int evas_textblock_cursor_text_prepend(Evas_Textblock_Cursor *cur, const char *text) EINA_ARG_NONNULL(1, 2);
|
||||||
|
|
||||||
EAPI Eina_Bool evas_textblock_cursor_format_append(Evas_Textblock_Cursor *cur, const char *format) EINA_ARG_NONNULL(1, 2);
|
EAPI Eina_Bool evas_textblock_cursor_format_append(Evas_Textblock_Cursor *cur, const char *format) EINA_ARG_NONNULL(1, 2);
|
||||||
EAPI Eina_Bool evas_textblock_cursor_format_prepend(Evas_Textblock_Cursor *cur, const char *format) EINA_ARG_NONNULL(1, 2);
|
EAPI Eina_Bool evas_textblock_cursor_format_prepend(Evas_Textblock_Cursor *cur, const char *format) EINA_ARG_NONNULL(1, 2);
|
||||||
|
|
|
@ -5663,7 +5663,7 @@ _evas_textblock_changed(Evas_Object_Textblock *o, Evas_Object *obj)
|
||||||
* @return Returns the len of the text added.
|
* @return Returns the len of the text added.
|
||||||
* @see evas_textblock_cursor_text_prepend()
|
* @see evas_textblock_cursor_text_prepend()
|
||||||
*/
|
*/
|
||||||
EAPI size_t
|
EAPI int
|
||||||
evas_textblock_cursor_text_append(Evas_Textblock_Cursor *cur, const char *_text)
|
evas_textblock_cursor_text_append(Evas_Textblock_Cursor *cur, const char *_text)
|
||||||
{
|
{
|
||||||
Evas_Object_Textblock *o;
|
Evas_Object_Textblock *o;
|
||||||
|
@ -5742,10 +5742,10 @@ evas_textblock_cursor_text_append(Evas_Textblock_Cursor *cur, const char *_text)
|
||||||
* @return Returns the len of the text added.
|
* @return Returns the len of the text added.
|
||||||
* @see evas_textblock_cursor_text_append()
|
* @see evas_textblock_cursor_text_append()
|
||||||
*/
|
*/
|
||||||
EAPI size_t
|
EAPI int
|
||||||
evas_textblock_cursor_text_prepend(Evas_Textblock_Cursor *cur, const char *_text)
|
evas_textblock_cursor_text_prepend(Evas_Textblock_Cursor *cur, const char *_text)
|
||||||
{
|
{
|
||||||
size_t len;
|
int len;
|
||||||
/*append is essentially prepend without advancing */
|
/*append is essentially prepend without advancing */
|
||||||
len = evas_textblock_cursor_text_append(cur, _text);
|
len = evas_textblock_cursor_text_append(cur, _text);
|
||||||
cur->pos += len; /*Advance */
|
cur->pos += len; /*Advance */
|
||||||
|
|
Loading…
Reference in New Issue