2004-08-21 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / dis / util.h
index c6647c7d2ec15c7ae1e8e5fab88718681f151a79..cbb9a4f365dfb92462643146bc288a0e59bace71 100644 (file)
@@ -1,11 +1,10 @@
-
 typedef struct {
        int code;
-       char *str;
-} map_t;
+       const char *str;
+} dis_map_t;
 
-const char *map       (guint32 code, map_t *table);
-const char *flags     (guint32 code, map_t *table);
+const char *map       (guint32 code, dis_map_t *table);
+const char *flags     (guint32 code, dis_map_t *table);
 void        hex_dump  (const char *buffer, int base, int count);
+char*       data_dump (const char *data, int len, const char* prefix);
 
-#define CSIZE(x) (sizeof (x) / 4)