erich666 / GraphicsGems

Code for the "Graphics Gems" book series
Other
1.39k stars 265 forks source link

name mismatch #21

Closed maddin200 closed 7 years ago

maddin200 commented 7 years ago

gems\AAPolyScan.c line 64 Declaration: void renderScanline(Vertex left, Vertex right, int y, Surface* object);

Definition: void renderScanline(Vl, Vr, y, object) Vertex Vl, Vr; / polygon vertices interpolated / / at scanline /
int y; / scanline coordinate / Surface object; / shading parms for this object */

erich666 commented 7 years ago

Fixed. Out of interest, @maddin200, does this actually matter to any compiler (i.e., the code won't compile), or is this just a warning?

maddin200 commented 7 years ago

The issue is only of style type. Only in cases like: int myfunc(int a, int b); // interface

int myfunc(int b, int a) { ....

it is more serious (will also compile)