opcodes.h

src/opcodes.h · 372 B

From the archive coldmud-0.11-3.tar.gz

Download the archive   « Back to the archive contents

/* opcodes.h: Declarations for the opcodes table. */

#ifndef OPCODES_H
#define OPCODES_H

typedef struct op_info Op_info;

#include "ident.h"

struct op_info {
    long opcode;
    char *name;
    void (*func)(void);
    int arg1;
    int arg2;
    Ident symbol;
};

extern Op_info op_table[LAST_TOKEN];

void init_op_table(void);
int find_function(char *name);

#endif

Site Stats

Snippets: 1791
Codebases: 571