#ifndef MITYPES_H
#define MITYPES_H

#include <alloca.h>

#define ALLOCATE_LOCAL(size) alloca((int)(size))
#define DEALLOCATE_LOCAL(ptr)  /* as nothing */

#include <stdlib.h>

typedef struct _miDash *miDashPtr;

#define CT_NONE                 0
#define CT_PIXMAP               1
#define CT_REGION               2
#define CT_UNSORTED             6
#define CT_YSORTED              10
#define CT_YXSORTED             14
#define CT_YXBANDED             18

#define PixmapBytePad(w, d) (w)
#define BitmapBytePad(w) (w)

typedef struct _miArc {
    short x, y;
    unsigned short   width, height;
    short   angle1, angle2;
} miArc;

#define SCRRIGHT(x, n) ((x)>>(n))

#endif /* MITYPES_H */
