-Some doxygening

-Removed useless parts of the doxyfile and enabled DOT to generate callgraph and includegraphs. Use \callgraph or \callergraph where you think it'd be nice to have.
-Replaced Num2str with a call to sprintf. Less code is better !


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1165 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-11-11 13:51:54 +00:00
parent c3e087fa7e
commit 3de1d9f883
4 changed files with 21 additions and 344 deletions

18
misc.c
View File

@@ -759,24 +759,8 @@ unsigned long Memory_free(void)
}
// Transformer un nombre (entier naturel) en chaîne
void Num2str(dword number,char * str,byte nb_char)
{
int index;
for (index=nb_char-1;index>=0;index--)
{
str[index]=(number%10)+'0';
number/=10;
if (number==0)
for (index--;index>=0;index--)
str[index]=' ';
}
str[nb_char]='\0';
}
// Arrondir un nombre réel à la valeur entière la plus proche
// TODO : this should probably be replaced with round() from C99...
short Round(float value)
{
short temp=value;