change comments

This commit is contained in:
augustin64 2023-05-25 10:40:19 +02:00
parent dd9613f159
commit a2cd6ef551
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,5 @@
#include <stdbool.h>
#include "struct.h"
#ifndef DEF_MAIN_H

View File

@ -173,7 +173,7 @@ Network* read_network(char* filename) {
printf_error((char*)"Incorrect magic number !\n");
if (INITIAL_MAGIC_NUMBER < magic && magic >= INITIAL_MAGIC_NUMBER) {
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");
}
exit(1);

View File

@ -14,13 +14,16 @@
// L'initialisation passe de 1h02 à 2.4s sur mon matériel
#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 {
void* start; // Start of the allocated memory
void* cursor; // Current cursor
void* start; // Début du bloc de mémoire alloué
void* cursor; // Curseur actuel
size_t size; // Taille de la mémoire allouée
int nb_alloc; // Nombre d'allocations dans le bloc
unsigned int id; // Nombre aléatoire permettant d'identifier le bloc plus facilement lors du débogage
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
struct Memory* next; // Élément suivant
} Memory;