#include "filename.h"
#include "command.h"
#include "lexer.h"
-#include "getline.h"
+#include "getl.h"
#include "error.h"
#include "magic.h"
#include "var.h"
#include "linked-list.h"
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
/* (headers) */
/* File handle. */
else if (cmd.n_lrecl[0] < 1)
{
msg (SE, _("Record length (%ld) must be at least one byte. "
- "1-character records will be assumed."), cmd.n_lrecl);
+ "1-character records will be assumed."), cmd.n_lrecl[0]);
handle->length = 1;
}
else
}
-/* Tries to open FILE with the given TYPE and MODE.
+/* Tries to open handle H with the given TYPE and MODE.
TYPE is the sort of file, e.g. "system file". Only one given
type of access is allowed on a given file handle at once.
return handle->mode;
}
-/* Returns the width of a logical record on HANDLE. Applicable
- only to MODE_BINARY files. */
+/* Returns the width of a logical record on HANDLE. */
size_t
handle_get_record_width (const struct file_handle *handle)
{