symtab.h

来自「汇编编译器的最新版本的源码.买了自己动手写操作系统这本书的人一定要下」· C头文件 代码 · 共 28 行

H
28
字号
/* symtab.h	Header file for symbol table manipulation routines
 *
 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
 * Julian Hall. All rights reserved. The software is
 * redistributable under the license given in the file "LICENSE"
 * distributed in the NASM archive.
 */

#ifndef RDOFF_SYMTAB_H
#define RDOFF_SYMTAB_H 1

#include <inttypes.h>

typedef struct {
    char *name;
    int segment;
    int32_t offset;
    int32_t flags;
} symtabEnt;

void *symtabNew(void);
void symtabDone(void *symtab);
void symtabInsert(void *symtab, symtabEnt * ent);
symtabEnt *symtabFind(void *symtab, const char *name);
void symtabDump(void *symtab, FILE * of);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?