comparison udis86-1.4/libudis86/syn.h @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
comparison
equal deleted inserted replaced
0:586e4a649642 1:4a9dcbd9e54f
1 /* -----------------------------------------------------------------------------
2 * syn.h
3 *
4 * Copyright (c) 2006, Vivek Mohan <vivek@sig9.com>
5 * All rights reserved. See LICENSE
6 * -----------------------------------------------------------------------------
7 */
8 #ifndef UD_SYN_H
9 #define UD_SYN_H
10
11 #include <stdio.h>
12 #include <stdarg.h>
13 #include "types.h"
14
15 extern const char* ud_reg_tab[];
16
17 static void mkasm(struct ud* u, const char* fmt, ...)
18 {
19 va_list ap;
20 va_start(ap, fmt);
21 u->insn_fill += vsprintf((char*) u->insn_buffer + u->insn_fill, fmt, ap);
22 va_end(ap);
23 }
24
25 #endif