Skip to content
Snippets Groups Projects
Commit 611b8cc7 authored by Adrien Lescourt's avatar Adrien Lescourt
Browse files

Fix infinite loop at the end of test_sglib.adb

parent cae5d282
Branches
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ git clone https://githepia.hesge.ch/iti_logiciel_public/ada_sglib.git /home/monU ...@@ -15,6 +15,7 @@ git clone https://githepia.hesge.ch/iti_logiciel_public/ada_sglib.git /home/monU
Compilation de la librairie (ignorer les 'warning') Compilation de la librairie (ignorer les 'warning')
``` ```
cd /home/monUsername/ada_sglib
gcc -c Xdraw.c gcc -c Xdraw.c
gnatmake -c sglib.adb gnatmake -c sglib.adb
ar rc libSglib.a *.o ar rc libSglib.a *.o
......
...@@ -2,7 +2,6 @@ with Sglib; use Sglib; -- Définition des paquetages utilises ...@@ -2,7 +2,6 @@ with Sglib; use Sglib; -- Définition des paquetages utilises
procedure TEST_SGLIB is procedure TEST_SGLIB is
-- Procedure principale dessinant textes et figures: -- Procedure principale dessinant textes et figures:
A : Integer;
begin begin
-- Initialisation de la fenetre X: -- Initialisation de la fenetre X:
INITX(100,100,400,400); INITX(100,100,400,400);
...@@ -68,7 +67,7 @@ begin ...@@ -68,7 +67,7 @@ begin
end loop ; end loop ;
-- Attente infinie: -- Attente infinie:
loop loop
A:=A+1; Null;
end loop ; end loop ;
-- -- Fermeture de la fenêtre X: -- -- Fermeture de la fenêtre X:
--CLOSEX; --CLOSEX;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment