Removed a useless commented code

An old implementation of Bresenham algorithm was lying there for no
reason. All commented out.

Signed-off-by: Celelibi <celelibi@gmail.com>
Simplification of main

Removed a level of indentation. The else branch is useless after a call
to exit(1).

Signed-off-by: Celelibi <celelibi@gmail.com>
Use symbolic constants as exit code of main

Symbolic constants EXIT_FAILURE and EXIT_SUCCESS are way better than
hardcoded values 1 and 0.

Signed-off-by: Celelibi <celelibi@gmail.com>
Corrected spacing / coding style errors

The code is much much (much) more readable with spaces around operators
and keywords.

Signed-off-by: Celelibi <celelibi@gmail.com>
Corrected indentation errors

Don't put a conditionnal statement on the same line as the condition.
And don't even think about aligning with tabs.

Signed-off-by: Celelibi <celelibi@gmail.com>
Fixing coding style of Image.c

* Declare variables at the begining of a block
* Don't put several statements on a single line
* Don't put a else branch when the code exits in the if branch
* Use symbolic constants instead of harcoded constants
* return is not a function and do not take parentheses
* Put braces around a loop body of more than one line

Signed-off-by: Celelibi <celelibi@gmail.com>
Added a few FIXME

One weird data structure layout that may hurt performance and two
security bugs.

Signed-off-by: Celelibi <celelibi@gmail.com>
Bug: C_new takes floats between 0 and 1

A call was giving it values 255 instead of 1.0.

Signed-off-by: Celelibi <celelibi@gmail.com>
Little indentation correction of main.c

* Tabs on empty lines
* Bad indentation (with spaces)
* Multiple statements on a single line

Signed-off-by: Celelibi <celelibi@gmail.com>
Added new structures
- Struct polygon (list of points)
- Struct drawing (list of polygons)
- Goodbye my typedef, goodbye my friend, you have been the one, you have been the one for me