blob: 1919e761f72a5ff642d8320353817a63cf0de290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <orc/orcprogram.h>
void
orc_rule_register (const char *opcode_name, unsigned int mode,
OrcRuleEmitFunc emit, void *emit_user, unsigned int flags)
{
OrcOpcode *opcode;
opcode = orc_opcode_find_by_name (opcode_name);
opcode->rules[mode].emit = emit;
opcode->rules[mode].emit_user = emit_user;
opcode->rules[mode].flags = flags;
}
|