mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
74cc5e569c
Finish the perfect hash tokenizer, and actually enable it. Move stdscan() et al to a separate file, since it's not needed in any of the clients of nasmlib other than nasm itself. Run make alldeps.
21 lines
545 B
C
21 lines
545 B
C
/* stdscan.h header file for stdscan.c
|
|
*
|
|
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
|
|
* Julian Hall. All rights reserved. The software is
|
|
* redistributable under the licence given in the file "Licence"
|
|
* distributed in the NASM archive.
|
|
*/
|
|
|
|
#ifndef NASM_STDSCAN_H
|
|
#define NASM_STDSCAN_H
|
|
/*
|
|
* Standard scanner.
|
|
*/
|
|
extern char *stdscan_bufptr;
|
|
void stdscan_reset(void);
|
|
int stdscan(void *private_data, struct tokenval *tv);
|
|
int nasm_token_hash(const char *token, struct tokenval *tv);
|
|
void stdscan_cleanup(void);
|
|
|
|
#endif
|