X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdfm.h;h=df2307c816195f9df022d1e2338ce30fa3ffb726;hb=92bfefccd465052e492f669ce561aa25b0110283;hp=30f12846a808b7869ff134afcb4a25bed2549ed6;hpb=1aaf5919aa5709fa6cfa710652143635a68bdbfb;p=pspp-builds.git diff --git a/src/dfm.h b/src/dfm.h index 30f12846..df2307c8 100644 --- a/src/dfm.h +++ b/src/dfm.h @@ -28,21 +28,26 @@ #include -/* I/O utilities. */ struct file_handle; -int dfm_open_for_reading (struct file_handle *handle); -int dfm_open_for_writing (struct file_handle *handle); -char *dfm_get_record (struct file_handle *handle, int *len); -int dfm_put_record (struct file_handle *handle, const char *rec, size_t len); - -/* Motion control. */ -void dfm_fwd_record (struct file_handle *handle); -void dfm_bkwd_record (struct file_handle *handle, int column); - -/* Weirdness. */ -void dfm_set_record (struct file_handle *handle, char *new_line); -int dfm_get_cur_col (struct file_handle *handle); -void dfm_push (struct file_handle *handle); -void dfm_pop (struct file_handle *handle); +struct len_string; + +/* Input. */ +int dfm_open_for_reading (struct file_handle *); +int dfm_eof (struct file_handle *); +void dfm_get_record (struct file_handle *, struct len_string *); +void dfm_expand_tabs (struct file_handle *); + +void dfm_forward_record (struct file_handle *); +void dfm_reread_record (struct file_handle *, size_t column); +void dfm_forward_columns (struct file_handle *, size_t columns); +size_t dfm_column_start (struct file_handle *); + +/* Output. */ +int dfm_open_for_writing (struct file_handle *); +int dfm_put_record (struct file_handle *, const char *rec, size_t len); + +/* File stack. */ +void dfm_push (struct file_handle *); +void dfm_pop (struct file_handle *); #endif /* dfm_h */