type
points:=array[1..10] of integer
procedure fill_area_solid(count: integer; x,y:points);
type
each_entry:=record
y_top:integer;
x_int:real;
delta_y:integer;
x_change_per_scan:real
end;
list=array[0..10] of each_entry;
var
slides:list
side_count,first_s,last_s,scan,bottomscan,x_int_count,r :integer;
begin
{any code whatever}
end.
note:
i copied this code as is from source,& my knowledge of pascal is so faaar
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
Well, of course that code needs a little optimization. Passing two 40-byte variables by value is not a very good idea. They should be passed by reference/pointer.
Huh? Structs are passed by value (unless explicitly passed by reference, which IIRC you can't do in C - so you pass as a pointer). Arrays in C are effectively pointers, and as such passing an array is passing an address.