Subject: SDL-News: SDL and C with Tau telelogic 4.3
From: Manne Andrea (tequila77xyz#libero.it)
Date: Wed Apr 10 2002 - 08:26:48 GMT
I use Tau Telelogic SDL suit 4.3
I work on DemonGame
I have declared, in process GAME, this values
DCL
Count, r , min, max Integer;
DCL
d,x , y Duration ;
procedure tempo;
fpar x Duration, y Duration;
returns Duration;
external;
/*##CODE
##HEADING
##include "tempo.h"
*/
Then in 1 task i put
x:=20 (<----i think here is the error)
y:=10
Then, in other task of process GAME, i call this function (function tempo is in file tempo.h)
d:= tempo(x,y)
###### FUNCTION TEMPO##############
SDL_Duration tempo (SDL_Duration x, SDL_Duration y)
{
SDL_Duration z;
z.s = x.s + y.s;
z.ns = x.ns + y.ns;
return z;
}
########## END FUNCTION TEMPO################
so i aspect that z = d = 30 but the program tell
d:= 0.0091
where is my error?
thx
Count, r , min, max Integer;
DCL
d,x , y Duration ;
procedure tempo;
fpar x Duration, y Duration;
returns Duration;
external;
/*##CODE
##HEADING
##include "tempo.h"
*/
Then in 1 task i put
x:=20
(<----i think here is the error)
y:=10
Then, in other task of process
GAME, i call this function (function tempo is in file tempo.h)
d:= tempo(x,y)
###### FUNCTION TEMPO##############
SDL_Duration tempo (SDL_Duration
x, SDL_Duration y)
{
SDL_Duration z;
z.s = x.s + y.s;
z.ns = x.ns +
y.ns;
return z;
}
########## END FUNCTION
TEMPO################
so i aspect
that z = d = 30 but the program tell
d:= 0.0091
where is my error?
thx
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT