
Go to the source code of this file.
Functions/Subroutines | |
| gs_void_t | gs_write (const gs_string_t filename) |
| gs_unsigned_char_t * | gs_read (const gs_string_t filename) |
| gs_t | gs_read_file (const gs_string_t filename) |
| gs_unsigned_char_t* gs_read | ( | const gs_string_t | filename | ) |
Definition at line 144 of file gspin-io.c.
References _gs_s_no_alloc(), close, DOT, fd, fstat, GS_ASSERT, gs_code_arity(), gs_operand(), gs_set_operand(), gs_u(), gspin_node_size(), IB_STRING, L, MAP_FAILED, mmap(), NULL, O_RDONLY, open, p, q, and stat::st_size.
Referenced by gs_read_file().
| gs_t gs_read_file | ( | const gs_string_t | filename | ) |
Definition at line 191 of file gspin-io.c.
References GS_ASSERT, gs_program, gs_read(), NULL, and p.
Referenced by main().
| gs_void_t gs_write | ( | const gs_string_t | filename | ) |
Definition at line 76 of file gspin-io.c.
References _gs_em(), _gs_u(), close, gs_arena::current_index, DOT, fd, GS_ARENA, GS_ASSERT, gs_code_arity(), gs_dump(), gs_em(), gs_length(), gs_mempool, gs_mempool_address2byteofst(), gs_mempool_idx2address(), gs_operand(), gs_s(), gs_set_operand(), gs_slen(), gs_u(), gspin_node_size(), i, IB_STRING, IB_STRING_ARENA, lseek, MAP_FAILED, memcpy, mmap(), NULL, O_CREAT, O_RDWR, O_TRUNC, open, printf(), s, SEEK_SET, size, and write.
1.5.6