Skip to content

Commit

Permalink
redefined filename
Browse files Browse the repository at this point in the history
  • Loading branch information
b3h3moth committed Feb 29, 2016
1 parent b78afa0 commit a15c530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
@@ -1,5 +1,5 @@
#include <unistd.h>
#include "zmalloc.h"
#include "malloc_one.h"

// L'allocatore e' inizializzato
int init_allocator = 0;
Expand Down Expand Up @@ -32,7 +32,7 @@ void free_mem(void *first_byte) {
}

// Assegna tanta memoria quanta richiesta da 'size'
void my_mallocb(size_t size) {
void malloc_one(size_t size) {
void *cur_location;
struct memory_block *cur_block;
void *location;
Expand Down
@@ -1,5 +1,5 @@
#ifndef YMALLOC
#define YMALLOC
#ifndef MALLOC_ONE_H
#define MALLOC_ONE_H

#include <stdio.h>

Expand All @@ -11,6 +11,6 @@ struct memory_block {
// Prototipi
void init_alloc(void);
void free_mem(void *first_byte);
void my_mallocb(size_t size);
void malloc_one(size_t size);

#endif

0 comments on commit a15c530

Please sign in to comment.