#include "memory.h"
- /********* allgemeine Typen, Variablen und Hilfsfunktionen *********/
+ /********* general types, variables and auxiliary functions *********/
-#define DUMPBLOCKSIZE (2<<18)
+#define DUMPBLOCKSIZE (2<<21)
#define ALIGNSIZE 8
typedef struct dumplist {
#ifdef DEBUG
- /************ Sichere Version des Speichermanages **************/
+ /************ Memory manager, safe version **************/
typedef struct memblock {
}
#else
- /******* Schnelle Version des Speichermanagers ******/
+ /******* Memory manager, fast version ******/
void *mem_alloc(int length)
#endif
- /******* allgemeine Teile des Speichermanagers ******/
+ /******* common memory manager parts ******/
#include "loging.h"
/***************************************************************************
- LOGFILE - BEHANDLUNG
+ LOG FILE HANDLING
***************************************************************************/
-char logtext[MAXLOGTEXT]; /* Musz mit dem gewuenschten Text vor */
- /* Aufruf von dolog() beschrieben werden */
+char logtext[MAXLOGTEXT]; /* Needs to be filled with desired text before */
+ /* call to dolog() */
FILE *logfile = NULL;
-/*********************** Funktion: dolog ************************************
+/*********************** Function: dolog ************************************
-Gibt den in logtext stehenden Text auf die Protokollierungsdatei
-aus (wenn sie offen ist) und auszerdem auf stdout.
+Writes the contents of logtext to both the protocol file (if opened) and to
+stdout.
**************************************************************************/
}
}
-/********************* Funktion: log_text ********************************/
+/********************* Function: log_text ********************************/
void log_text (char *text)
{
}
-/********************* Funktion: log_cputime ****************************/
+/********************* Function: log_cputime ****************************/
void log_cputime ()
{
-/************************** Funktion: error *******************************
+/************************** Function: error *******************************
-Wie dolog(), aber das Programm wird auszerdem sofort terminiert.
+Like dolog(), but terminates the program immediately.
**************************************************************************/
}
-/************************ Funktion: panic (txt) ****************************
+/************************ Function: panic (txt) ****************************
- Wie error(), jedoch wird der auszugebende Text als Argument uebergeben
+ Like error(), takes the text to output as an argument
***************************************************************************/
}
-/********************** Funktion: getcputime ********************************
+/********************** Function: getcputime ********************************
- liefert die verbrauchte CPU-Zeit im Mikrosekunden
+ Returns the used CPU time in microseconds
****************************************************************************/
#include "memory.h"
- /********* allgemeine Typen, Variablen und Hilfsfunktionen *********/
+ /********* general types, variables and auxiliary functions *********/
-#define DUMPBLOCKSIZE (2<<18)
+#define DUMPBLOCKSIZE (2<<21)
#define ALIGNSIZE 8
typedef struct dumplist {
#ifdef DEBUG
- /************ Sichere Version des Speichermanages **************/
+ /************ Memory manager, safe version **************/
typedef struct memblock {
}
#else
- /******* Schnelle Version des Speichermanagers ******/
+ /******* Memory manager, fast version ******/
void *mem_alloc(int length)
#endif
- /******* allgemeine Teile des Speichermanagers ******/
+ /******* common memory manager parts ******/