annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /* -----------------------------------------------------------------------------
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * syn.h
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Copyright (c) 2006, Vivek Mohan <vivek@sig9.com>
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * All rights reserved. See LICENSE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * -----------------------------------------------------------------------------
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 #ifndef UD_SYN_H
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 #define UD_SYN_H
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 #include <stdio.h>
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 #include <stdarg.h>
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 #include "types.h"
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 extern const char* ud_reg_tab[];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 static void mkasm(struct ud* u, const char* fmt, ...)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 va_list ap;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 va_start(ap, fmt);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 u->insn_fill += vsprintf((char*) u->insn_buffer + u->insn_fill, fmt, ap);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 va_end(ap);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 #endif