697eb34c63
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31153 a95241bf-73f2-0310-859d-f6bbb57e9c96
26 lines
585 B
C
26 lines
585 B
C
/* -----------------------------------------------------------------------------
|
|
* syn.h
|
|
*
|
|
* Copyright (c) 2006, Vivek Mohan <vivek@sig9.com>
|
|
* All rights reserved. See LICENSE
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
#ifndef UD_SYN_H
|
|
#define UD_SYN_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include "types.h"
|
|
|
|
extern const char* ud_reg_tab[];
|
|
|
|
static void mkasm(struct ud* u, const char* fmt, ...)
|
|
{
|
|
va_list ap;
|
|
va_start(ap, fmt);
|
|
u->insn_fill += vsprintf((char*) u->insn_buffer + u->insn_fill, fmt, ap);
|
|
va_end(ap);
|
|
}
|
|
|
|
#endif
|