Skip to content
Snippets Groups Projects
Select Git revision
  • 7bd55f5a16bb4fb7618f2c37fbbb5970ef985acb
  • master default protected
2 results

Item.java

Blame
  • alloc.h 411 B
    #ifndef _ALLOC_H_
    #define _ALLOC_H_
    
    #include <stdint.h>
    #include <sys/types.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    #define ALLOC_FIRST_FIT 0
    #define ALLOC_BEST_FIT 1
    #define ALLOC_WORST_FIT 2
    
    
    typedef struct meta_struct {
    	struct meta_struct* next;
    	struct meta_struct* prev;
    
    	uint32_t free;
    	uint32_t size;
    
    } meta;
    
    meta* head;
    meta* tail;
    int fit;
    
    int num;
    char type[10];
    
    #endif