#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "toke.h"#include "stack.h"#include "emit.h"Include dependency graph for emit.c:

Go to the source code of this file.
Functions | |
| u16 | lookup_token (char *name) |
| static bool | little_endian (void) |
| int | emit_byte (u8 data) |
| int | emit_fcode (u16 tok) |
| int | emit_token (const char *name) |
| int | emit_num32 (u32 num) |
| int | emit_num16 (u16 num) |
| int | emit_offset (s16 offs) |
| s16 | receive_offset (void) |
| int | emit_string (u8 *string, unsigned int cnt) |
| int | emit_fcodehdr (void) |
| int | finish_fcodehdr (void) |
| int | emit_pcihdr (u16 vid, u16 did, u32 classid) |
| int | finish_pcihdr (void) |
| void | finish_headers (void) |
Variables | |
| bool | offs16 |
| int | verbose |
| u8 * | ostart |
| u8 * | opc |
| u8 * | oend |
| u16 | pci_vpd |
| u16 | pci_revision |
| bool | pci_is_last_image |
| u8 * | fcode_hdr |
| u8 * | pci_hdr |
| bool | haveend |
|
|
Definition at line 57 of file emit.c. References oend, opc, ostart, and u8. Referenced by emit_fcode(), emit_fcodehdr(), emit_num16(), emit_num32(), emit_offset(), emit_pcihdr(), emit_string(), finish_pcihdr(), and handle_internal(). |
|
|
Definition at line 83 of file emit.c. References emit_byte(). Referenced by create_word(), emit_token(), handle_internal(), and tokenize(). Here is the call graph for this function: ![]() |
|
|
Definition at line 153 of file emit.c. References emit_byte(), emit_num16(), and emit_num32(). Referenced by handle_internal(). Here is the call graph for this function: ![]() |
|
|
Definition at line 108 of file emit.c. References emit_byte(). Referenced by emit_fcodehdr(), emit_offset(), and finish_fcodehdr(). Here is the call graph for this function: ![]() |
|
|
Definition at line 98 of file emit.c. References emit_byte(). Referenced by emit_fcodehdr(), finish_fcodehdr(), handle_internal(), and tokenize(). Here is the call graph for this function: ![]() |
|
|
Definition at line 116 of file emit.c. References emit_byte(), emit_num16(), and offs16. Referenced by handle_internal(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 201 of file emit.c. References emit_byte(), and little_endian(). Referenced by handle_internal(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 138 of file emit.c. References emit_byte(). Referenced by create_word(), encode_file(), and handle_internal(). Here is the call graph for this function: ![]() |
|
|
Definition at line 93 of file emit.c. References emit_fcode(), and lookup_token(). Referenced by create_word(), encode_file(), finish_fcodehdr(), and handle_internal(). Here is the call graph for this function: ![]() |
|
|
Definition at line 167 of file emit.c. References dpop(), dpush(), emit_num16(), emit_num32(), emit_token(), FALSE, fcode_hdr, haveend, opc, u16, u32, u8, and verbose. Referenced by finish_headers(). Here is the call graph for this function: ![]() |
|
|
Definition at line 301 of file emit.c. References fcode_hdr, finish_fcodehdr(), finish_pcihdr(), and pci_hdr. Referenced by main(). Here is the call graph for this function: ![]() |
|
|
Definition at line 261 of file emit.c. References emit_byte(), opc, ostart, pci_hdr, pci_is_last_image, pci_revision, pci_vpd, u32, and u8. Referenced by finish_headers(), and handle_internal(). Here is the call graph for this function: ![]() |
|
|
Definition at line 51 of file emit.c. Referenced by emit_pcihdr(). |
|
|
Definition at line 63 of file dictionary.c. |
|
|
Definition at line 126 of file emit.c. References offs16, opc, and s16. Referenced by handle_internal(). |
|
|
Definition at line 53 of file scanner.c. Referenced by finish_fcodehdr(), finish_headers(), and handle_internal(). |
|
|
Definition at line 64 of file scanner.c. Referenced by finish_fcodehdr(), and handle_internal(). |
|
|
Definition at line 47 of file stream.c. Referenced by emit_byte(), and init_output(). |
|
|
Definition at line 62 of file scanner.c. Referenced by emit_offset(), handle_internal(), and receive_offset(). |
|
|
Definition at line 47 of file stream.c. Referenced by close_output(), emit_byte(), finish_fcodehdr(), finish_pcihdr(), handle_internal(), init_output(), and receive_offset(). |
|
|
Definition at line 47 of file stream.c. Referenced by close_output(), emit_byte(), finish_pcihdr(), handle_internal(), and init_output(). |
|
|
Definition at line 54 of file scanner.c. Referenced by finish_headers(), finish_pcihdr(), and handle_internal(). |
|
|
Definition at line 57 of file scanner.c. Referenced by finish_pcihdr(), and handle_internal(). |
|
|
Definition at line 59 of file scanner.c. Referenced by finish_pcihdr(), and handle_internal(). |
|
|
Definition at line 60 of file scanner.c. Referenced by finish_pcihdr(). |
|
|
Definition at line 44 of file toke.c. Referenced by finish_fcodehdr(), get_string(), main(), and tokenize(). |
1.4.4