mirror of
https://github.com/augustin64/projet-tipe
synced 2025-02-02 19:39:39 +01:00
change comments
This commit is contained in:
parent
dd9613f159
commit
a2cd6ef551
@ -1,3 +1,5 @@
|
|||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
|
|
||||||
#ifndef DEF_MAIN_H
|
#ifndef DEF_MAIN_H
|
||||||
|
@ -173,7 +173,7 @@ Network* read_network(char* filename) {
|
|||||||
printf_error((char*)"Incorrect magic number !\n");
|
printf_error((char*)"Incorrect magic number !\n");
|
||||||
if (INITIAL_MAGIC_NUMBER < magic && magic >= INITIAL_MAGIC_NUMBER) {
|
if (INITIAL_MAGIC_NUMBER < magic && magic >= INITIAL_MAGIC_NUMBER) {
|
||||||
printf("\tThis backup is no longer supported\n");
|
printf("\tThis backup is no longer supported\n");
|
||||||
printf("\tnPlease update it manually or re-train the network.\n");
|
printf("\tPlease update it manually or re-train the network.\n");
|
||||||
printf("\t(You can update it with a script or manually with a Hex Editor)\n");
|
printf("\t(You can update it with a script or manually with a Hex Editor)\n");
|
||||||
}
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -14,13 +14,16 @@
|
|||||||
// L'initialisation passe de 1h02 à 2.4s sur mon matériel
|
// L'initialisation passe de 1h02 à 2.4s sur mon matériel
|
||||||
#define MEMORY_TAIL_OPT
|
#define MEMORY_TAIL_OPT
|
||||||
|
|
||||||
// We define our memory with a linked list of memory blocks
|
// Liste chaînée de blocs de mémoire
|
||||||
typedef struct Memory {
|
typedef struct Memory {
|
||||||
void* start; // Start of the allocated memory
|
void* start; // Début du bloc de mémoire alloué
|
||||||
void* cursor; // Current cursor
|
void* cursor; // Curseur actuel
|
||||||
|
|
||||||
size_t size; // Taille de la mémoire allouée
|
size_t size; // Taille de la mémoire allouée
|
||||||
int nb_alloc; // Nombre d'allocations dans le bloc
|
int nb_alloc; // Nombre d'allocations actives dans le bloc
|
||||||
unsigned int id; // Nombre aléatoire permettant d'identifier le bloc plus facilement lors du débogage
|
|
||||||
|
unsigned int id; // Nombre aléatoire permettant d'identifier le bloc
|
||||||
|
// plus facilement lors du débogage
|
||||||
struct Memory* next; // Élément suivant
|
struct Memory* next; // Élément suivant
|
||||||
} Memory;
|
} Memory;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user