pike.git / src / post_modules / GTK2 / source / gtkdatabox.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkdatabox.pre:130:   //! Set the zoom limit. Default is 0.01, which is 100 times.      float get_zoom_limit();   //! Get the zoom limit.      %{   static GtkDataboxCoord get_coord(int offset, int args) {    GtkDataboxCoord c;    if (args<offset+2)    Pike_error("too few arguments\n"); -  if (Pike_sp[-args+offset].type!=PIKE_T_INT) +  if (TYPEOF(Pike_sp[-args+offset]) != PIKE_T_INT)    Pike_error("Bad argument %d\n",offset);    else    c.x=Pike_sp[-args+offset].u.integer; -  if (Pike_sp[-args+offset+1].type!=PIKE_T_INT) +  if (TYPEOF(Pike_sp[-args+offset+1]) != PIKE_T_INT)    Pike_error("Bad argument %d\n",offset);    else    c.y=Pike_sp[-args+offset+1].u.integer;    return c;   }      static GtkDataboxValue get_value(int offset, int args) {    GtkDataboxValue c;    if (args<offset+2)    Pike_error("too few arguments\n"); -  if (Pike_sp[-args+offset].type!=PIKE_T_FLOAT) +  if (TYPEOF(Pike_sp[-args+offset]) != PIKE_T_FLOAT)    Pike_error("Bad argument %d\n",offset);    else    c.x=Pike_sp[-args+offset].u.float_number; -  if (Pike_sp[-args+offset+1].type!=PIKE_T_FLOAT) +  if (TYPEOF(Pike_sp[-args+offset+1]) != PIKE_T_FLOAT)    Pike_error("Bad argument %d\n",offset);    else    c.y=Pike_sp[-args+offset+1].u.float_number;    return c;   }      static void push_value(GtkDataboxValue v) {    push_constant_text("x"); push_float(v.x);    push_constant_text("y"); push_float(v.y);    f_aggregate_mapping(4);