Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "duktape.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | alloc_hdr |
Macros | |
#define | ALLOC_LOG_FILE "/tmp/duk-alloc-log.txt" |
Functions | |
static void | write_log (const char *fmt,...) |
void * | duk_alloc_logging (void *udata, duk_size_t size) |
void * | duk_realloc_logging (void *udata, void *ptr, duk_size_t size) |
void | duk_free_logging (void *udata, void *ptr) |
Variables | |
static FILE * | log_file = NULL |
#define ALLOC_LOG_FILE "/tmp/duk-alloc-log.txt" |
Definition at line 23 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
Referenced by write_log().
void * duk_alloc_logging | ( | void * | udata, |
duk_size_t | size ) |
Definition at line 53 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
References malloc, NULL, alloc_hdr::sz, alloc_hdr::u, and write_log().
Referenced by create_duktape_heap(), and create_duktape_heap().
void duk_free_logging | ( | void * | udata, |
void * | ptr ) |
Definition at line 126 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
References free, alloc_hdr::sz, alloc_hdr::u, and write_log().
Referenced by create_duktape_heap(), and create_duktape_heap().
void * duk_realloc_logging | ( | void * | udata, |
void * | ptr, | ||
duk_size_t | size ) |
Definition at line 75 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
References free, malloc, NULL, realloc, alloc_hdr::sz, alloc_hdr::u, and write_log().
Referenced by create_duktape_heap(), and create_duktape_heap().
|
static |
Definition at line 38 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
References ALLOC_LOG_FILE, and log_file.
Referenced by duk_alloc_logging(), duk_free_logging(), and duk_realloc_logging().
|
static |
Definition at line 36 of file duktape-1.5.2/examples/alloc-logging/duk_alloc_logging.c.
Referenced by write_log().