This is my fault, I'm sorry about it. -- Grégoire Dave Klotzbach wrote:
From the latest CVS we have the following C++ constructs in C code. Thiscauses 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);elsereturn round_angle(angle1+delta/2); }------------------------------------------------------------------------ _______________________________________________ Dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.gnome.org/projects/dia/faq.html Main page at http://www.gnome.org/projects/dia
_______________________________________________ Dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.gnome.org/projects/dia/faq.html Main page at http://www.gnome.org/projects/dia
