From dfd5f96e7eb36b18edd92ebe830913262b133160 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 17 Jan 2014 13:11:52 +0900 Subject: [PATCH] change memory open API --- include/picrin/port.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/picrin/port.h b/include/picrin/port.h index cb326bd1..8c78c707 100644 --- a/include/picrin/port.h +++ b/include/picrin/port.h @@ -66,15 +66,11 @@ int pic_setvbuf(pic_file *, char *, int, size_t); int pic_fflush(pic_file *); int pic_ffill(pic_file *); -/* file access */ +/* resource aquisition */ pic_file *pic_fopen(const char *, const char *); +pic_file *pic_mopen(const char *, size_t, const char *); int pic_fclose(pic_file *); -/* memory access */ -pic_file *pic_mropen(const char *, size_t, const char *); -pic_file *pic_mwopen(); -const char *pic_getmbuf(pic_file *); - /* direct IO with buffering */ size_t pic_fread(void *, size_t, size_t, pic_file *); size_t pic_fwrite(const void *, size_t, size_t, pic_file *);