Mercurial > MadButterfly
view nodejs/shapes.m4 @ 817:387d1c597632
Change order of statements to fix bug of wild pointers.
For some reason, the code is broken for merging from Android_Skia
branch. The variable 'coord' in add_rdman_aggr_dirty_areas() is used
before initialized; it is a wild pointer.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 13 Sep 2010 15:33:19 +0800 |
parents | ed59e659a202 |
children | 2b492008ce26 |
line wrap: on
line source
define([PROJ_PREFIX], [xnjsmb_auto_])dnl dnl STRUCT([shape], [shape_t], [ACCESSOR([stroke_width], [xnjsmb_shape_stroke_width_get], [xnjsmb_shape_stroke_width_set])], [METHOD([show], [xnjsmb_shape_show], (SELF), 0, []), METHOD([hide], [xnjsmb_shape_hide], (SELF), 0, []), METHOD([remove], [xnjsmb_shape_remove], (SELF), 0, [])]) STRUCT([path], [shape_t], [], [], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([stext], [shape_t], [], [METHOD([set_text], [sh_stext_set_text], (STR([txt])), 1, []), METHOD([set_style], [xnjsmb_sh_stext_set_style], (SELF, ARRAY([blks]), ERR), 1, [])], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([image], [shape_t], [], [], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([rect], [shape_t], [], [METHOD([set], [xnjsmb_sh_rect_set], (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h), NUMBER(rx), NUMBER(ry)), 6, [])], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))