seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=db9828e0c22dbab07429c986ae0661672dd08ec1

commit db9828e0c22dbab07429c986ae0661672dd08ec1
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Thu Jan 23 23:09:28 2014 +0900

    entry: Renamed internal macro name with prefix ELM_ENTRY for
    consistency.
    
    _CHUNK_SIZE -> ELM_ENTRY_CHUNK_SIZE.
---
 src/lib/elm_entry.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index c7ffabd..9e61a16 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -18,7 +18,7 @@ EAPI Eo_Op ELM_OBJ_ENTRY_BASE_ID = EO_NOOP;
  * FIXME: This size is arbitrary, should probably choose a better size.
  * Possibly also find a way to set it to a low value for weak computers,
  * and to a big value for better computers. */
-#define _CHUNK_SIZE 10000
+#define ELM_ENTRY_CHUNK_SIZE 10000
 #define ELM_ENTRY_DELAY_WRITE_TIME 2.0
 
 #define ELM_PRIV_ENTRY_SIGNALS(cmd) \
@@ -2434,14 +2434,14 @@ _text_append_idler(void *data)
    sd->changed = EINA_TRUE;
 
    start = sd->append_text_position;
-   if ((start + _CHUNK_SIZE) < sd->append_text_len)
+   if ((start + ELM_ENTRY_CHUNK_SIZE) < sd->append_text_len)
      {
         int pos = start;
         int tag_start, esc_start;
 
         tag_start = esc_start = -1;
         /* Find proper markup cut place */
-        while (pos - start < _CHUNK_SIZE)
+        while (pos - start < ELM_ENTRY_CHUNK_SIZE)
           {
              int prev_pos = pos;
              Eina_Unicode tmp =
@@ -2744,8 +2744,8 @@ _elm_entry_smart_text_set(Eo *obj, void *_pd, va_list 
*list)
      }
 
    len = strlen(entry);
-   /* Split to ~_CHUNK_SIZE chunks */
-   if (len > _CHUNK_SIZE)
+   /* Split to ~ ELM_ENTRY_CHUNK_SIZE chunks */
+   if (len > ELM_ENTRY_CHUNK_SIZE)
      {
         sd->append_text_left = (char *)malloc(len + 1);
      }

-- 


Reply via email to