From the latest CVS we have the following C++ constructs in
C code. This causes compiler errors on any real C compiler! 1. From ->objects\standard\textobj.c(269) : error C2275:
'Point' : illegal use of this type as an _expression_ static void textobj_update_data(Textobj *textobj) { DiaObject *obj = &textobj->object; text_set_position(textobj->text,
&obj->position); text_calc_boundingbox(textobj->text,
&obj->bounding_box); Point to2 =
obj->position;
ß--- to2 must be declared before any expressions !! textobj_valign_point(textobj, &to2, 1); text_set_position(textobj->text, &to2); text_calc_boundingbox(textobj->text,
&obj->bounding_box); textobj->text_handle.pos = obj->position; } 2. From -> standard\arc.c(524) : error C2275: 'real' :
illegal use of this type as an _expression_ real get_middle_arc_angle(real angle1, real angle2, gboolean
clock) { angle1 =
round_angle(angle1); angle2 =
round_angle(angle2); real delta = (angle2-angle1); <- delta must be
declared before any expressions !! if (delta<0)
delta+=360; if (clock)
return round_angle(angle1-(360-delta)/2); else
return round_angle(angle1+delta/2); } |