Sha256: 8a3ca78f08834d7af7c6d9daa80af7ea5eb8962cfc6a19d0768a2a1fe37d44e1

Contents?: true

Size: 641 Bytes

Versions: 18

Compression:

Stored size: 641 Bytes

Contents

#ifndef MALLOC_FAIL_H
#define MALLOC_FAIL_H

#include "mpdecimal.h"
#include <stdio.h>

extern int alloc_count;
extern int alloc_fail;
extern int alloc_idx;
void *mpd_malloc_count(void *data, size_t size);
void *mpd_calloc_count(void *data, size_t nmemb, size_t size);
void *mpd_realloc_count(void *data, void *ptr, size_t size);
void *mpd_malloc_fail(void *data, size_t size);
void *mpd_calloc_fail(void *data, size_t nmemb, size_t size);
void *mpd_realloc_fail(void *data, void *ptr, size_t size);

void mpd_set_alloc_count(mpd_context_t *ctx);
void mpd_set_alloc_fail(mpd_context_t *ctx);
void mpd_set_alloc(mpd_context_t *ctx);


#endif

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.3.0 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.7 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.6 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.5 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.4 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.3 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.2 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.1 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.2.0 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.1.1 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.1.0 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.6 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.5 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.4 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.3 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.2 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h
script_core-0.0.1 ext/enterprise_script_service/mruby-mpdecimal/tests/malloc_fail.h