From fd43567b3ca8686811718d8cdeb805ffffc16141 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta Date: Fri, 1 Jan 2021 20:39:27 +0100 Subject: [PATCH] =?UTF-8?q?http://www.open-std.org/jtc1/sc22/wg14/www/docs?= =?UTF-8?q?/n1256.pdf=20By=20the=20draft=20C99=20standart=20section=206.7.?= =?UTF-8?q?8=20paragraph=2010:=20=20=20=20=20an=20object=20that=20has=20st?= =?UTF-8?q?atic=20storage=20duration=20is=20not=20initialized=20explicitly?= =?UTF-8?q?,=20then:=20=09=E2=80=94=20if=20it=20has=20pointer=20type,=20it?= =?UTF-8?q?=20is=20initialized=20to=20a=20null=20pointer;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- window.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/window.c b/window.c index bc57045..7608f13 100644 --- a/window.c +++ b/window.c @@ -39,19 +39,12 @@ static int get_sign(float x, float y); static uint _screenId = 0; // surface representing the Sun. -static surface_t * _sun = NULL; +static surface_t * _sun; // surface array representing 8 planets + pluto (dwarf planet). -static surface_t * _planet[9] = { NULL, NULL, NULL, - NULL, NULL, NULL, - NULL, NULL, NULL }; - +static surface_t * _planet[9]; // surface array representing 18 moons of the planets. -static surface_t * _moon[18] = {NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, - NULL, NULL}; +static surface_t * _moon[18]; /* des variable d'états pour activer/désactiver des options de rendu */ static int _use_tex = 1, _use_color = 0, _use_lighting = 1; @@ -82,7 +75,7 @@ static float _s = 1.0f; // multiplier for angle (for speeding planets movement a static float _a = 0.0f; // rotation angle. static float _r = 0.0f; // -//- -static Mix_Chunk * bsound = NULL; // background sound. +static Mix_Chunk * bsound; // background sound. /*!\brief paramètre l'application et lance la boucle infinie. */ int main(int argc, char ** argv) {