X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpor-file-reader.c;h=b5486a4a0e3dcfa1ee795869b46a2922fe03b725;hb=09f992ebd556113e28cdf0829459121e3d2ec865;hp=668a8429d5839d9f8fb810009ef50d24d25eb169;hpb=707848060e414fe93458834446dd7cdbf800667f;p=pspp diff --git a/src/data/por-file-reader.c b/src/data/por-file-reader.c index 668a8429d5..b5486a4a0e 100644 --- a/src/data/por-file-reader.c +++ b/src/data/por-file-reader.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -46,6 +47,7 @@ #include "gettext.h" #define _(msgid) gettext (msgid) +#define N_(msgid) (msgid) /* portable_to_local[PORTABLE] translates the given portable character into the local character set. */ @@ -261,7 +263,9 @@ pfm_open_reader (struct file_handle *fh, struct dictionary **dict, goto error; /* Lock file. */ - r->lock = fh_lock (fh, FH_REF_FILE, "portable file", FH_ACC_READ, false); + /* TRANSLATORS: this fragment will be interpolated into + messages in fh_lock() that identify types of files. */ + r->lock = fh_lock (fh, FH_REF_FILE, N_("portable file"), FH_ACC_READ, false); if (r->lock == NULL) goto error; @@ -666,8 +670,8 @@ read_variables (struct pfm_reader *r, struct dictionary *dict) int i; for (i = 1; i < 100000; i++) { - char try_name[LONG_NAME_LEN + 1]; - sprintf (try_name, "%.*s_%d", LONG_NAME_LEN - 6, name, i); + char try_name[VAR_NAME_LEN + 1]; + sprintf (try_name, "%.*s_%d", VAR_NAME_LEN - 6, name, i); v = dict_create_var (dict, try_name, width); if (v != NULL) break; @@ -689,12 +693,12 @@ read_variables (struct pfm_reader *r, struct dictionary *dict) { double x = read_float (r); double y = read_float (r); - mv_add_num_range (&miss, x, y); + mv_add_range (&miss, x, y); } else if (match (r, 'A')) - mv_add_num_range (&miss, read_float (r), HIGHEST); + mv_add_range (&miss, read_float (r), HIGHEST); else if (match (r, '9')) - mv_add_num_range (&miss, LOWEST, read_float (r)); + mv_add_range (&miss, LOWEST, read_float (r)); /* Single missing values. */ while (match (r, '8'))