view src/allocate/allocateContext.h @ 235:05e61405cc88

fix worker compile error
author mir3636
date Mon, 23 Jan 2017 17:49:36 +0900
parents 1eb599acffe4
children
line wrap: on
line source

/* Context definition for allocate example */

enum Code {
    Code1,
    Code2,
    Code3,
    Allocate,
    Exit,
};

struct Context {
    int codeSize;
    __code (**code) (struct Context *);
    void* heap;
    int dataSize;
    union Data **data;
};

union Data {
    char data[8];
    long count;
    struct Allocate {
        long size;
        enum Code next;
    } allocate;
};