X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffile-handle.h;h=eab80521a2d6fdd7d845b42352940b607bd4528e;hb=a29bbbe97388bb6f9c9b4df36b448dfe5023363c;hp=ba0d75108d9e9d48afeec4ecba8d48b0b4ae3155;hpb=b7852df2743416201dc85fd672644799cdd1b7b5;p=pspp diff --git a/src/file-handle.h b/src/file-handle.h index ba0d75108d..eab80521a2 100644 --- a/src/file-handle.h +++ b/src/file-handle.h @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !file_handle_h #define file_handle_h 1 @@ -23,19 +23,14 @@ /* File handles. */ #include - -/* File modes. */ -enum file_handle_mode - { - MODE_TEXT, /* New-line delimited lines. */ - MODE_BINARY /* Fixed-length records. */ - }; +#include "file-handle-def.h" void fh_init(void); void fh_done(void); + /* Parsing handles. */ struct file_handle *fh_parse (void); @@ -44,11 +39,5 @@ struct file_handle *fh_parse (void); void **fh_open (struct file_handle *, const char *type, const char *mode); int fh_close (struct file_handle *, const char *type, const char *mode); -/* Handle info. */ -const char *handle_get_name (const struct file_handle *); -const char *handle_get_filename (const struct file_handle *); -enum file_handle_mode handle_get_mode (const struct file_handle *); -size_t handle_get_record_width (const struct file_handle *); -size_t handle_get_tab_width (const struct file_handle *); #endif /* !file_handle.h */