projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save coefficients in innovations estimate structure
[pspp]
/
src
/
language
/
dictionary
/
sys-file-info.c
diff --git
a/src/language/dictionary/sys-file-info.c
b/src/language/dictionary/sys-file-info.c
index 98cc90ddfb9e600114de1b8712ff97b65c08c729..5c3985be68c06c5fe8aca0377ba6e3863fb80aad 100644
(file)
--- a/
src/language/dictionary/sys-file-info.c
+++ b/
src/language/dictionary/sys-file-info.c
@@
-18,25
+18,29
@@
02110-1301, USA. */
#include <config.h>
02110-1301, USA. */
#include <config.h>
-#include <libpspp/message.h>
+
#include <ctype.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdlib.h>
-#include <libpspp/array.h>
-#include <libpspp/alloc.h>
-#include <language/command.h>
+
#include <data/dictionary.h>
#include <data/dictionary.h>
-#include <libpspp/message.h>
#include <data/file-handle-def.h>
#include <data/file-handle-def.h>
-#include <libpspp/hash.h>
+#include <data/procedure.h>
+#include <data/sys-file-reader.h>
+#include <data/value-labels.h>
+#include <data/variable.h>
+#include <language/command.h>
+#include <language/data-io/file-handle.h>
#include <language/lexer/lexer.h>
#include <language/lexer/lexer.h>
+#include <libpspp/alloc.h>
+#include <libpspp/array.h>
+#include <libpspp/hash.h>
#include <libpspp/magic.h>
#include <libpspp/magic.h>
+#include <libpspp/message.h>
+#include <libpspp/message.h>
#include <libpspp/misc.h>
#include <libpspp/misc.h>
-#include <output/output.h>
-#include <data/sys-file-reader.h>
#include <output/manager.h>
#include <output/manager.h>
+#include <output/output.h>
#include <output/table.h>
#include <output/table.h>
-#include <data/value-labels.h>
-#include <data/variable.h>
#include "gettext.h"
#define _(msgid) gettext (msgid)
#include "gettext.h"
#define _(msgid) gettext (msgid)
@@
-96,9
+100,9
@@
cmd_sysfile_info (void)
sfm_close_reader (reader);
t = tab_create (2, 9, 0);
sfm_close_reader (reader);
t = tab_create (2, 9, 0);
- tab_vline (t, TAL_
1 | TAL_SPACING
, 1, 0, 8);
+ tab_vline (t, TAL_
GAP
, 1, 0, 8);
tab_text (t, 0, 0, TAB_LEFT, _("File:"));
tab_text (t, 0, 0, TAB_LEFT, _("File:"));
- tab_text (t, 1, 0, TAB_LEFT, fh_get_filename (h));
+ tab_text (t, 1, 0, TAB_LEFT, fh_get_file
_
name (h));
tab_text (t, 0, 1, TAB_LEFT, _("Label:"));
{
const char *label = dict_get_label (d);
tab_text (t, 0, 1, TAB_LEFT, _("Label:"));
{
const char *label = dict_get_label (d);
@@
-200,7
+204,7
@@
cmd_display (void)
else
{
tab_output_text (TAB_LEFT | TAT_TITLE, _("File label:"));
else
{
tab_output_text (TAB_LEFT | TAT_TITLE, _("File label:"));
- tab_output_text (TAB_LEFT | TA
T
_FIX, dict_get_label (default_dict));
+ tab_output_text (TAB_LEFT | TA
B
_FIX, dict_get_label (default_dict));
}
}
else
}
}
else
@@
-311,7
+315,7
@@
display_documents (void)
&& len > 0)
len--;
buf[len + 1] = 0;
&& len > 0)
len--;
buf[len + 1] = 0;
- tab_output_text (TAB_LEFT | TA
T
_FIX | TAT_NOWRAP, buf);
+ tab_output_text (TAB_LEFT | TA
B
_FIX | TAT_NOWRAP, buf);
}
}
}
}
}
}
@@
-478,11
+482,11
@@
describe_variable (struct variable *v, struct tab_table *t, int r, int as)
double x, y;
mv_pop_range (&mv, &x, &y);
if (x == LOWEST)
double x, y;
mv_pop_range (&mv, &x, &y);
if (x == LOWEST)
- cp +=
n
sprintf (cp, "LOWEST THRU %g", y);
+ cp += sprintf (cp, "LOWEST THRU %g", y);
else if (y == HIGHEST)
else if (y == HIGHEST)
- cp +=
n
sprintf (cp, "%g THRU HIGHEST", x);
+ cp += sprintf (cp, "%g THRU HIGHEST", x);
else
else
- cp +=
n
sprintf (cp, "%g THRU %g", x, y);
+ cp += sprintf (cp, "%g THRU %g", x, y);
cnt++;
}
while (mv_has_value (&mv))
cnt++;
}
while (mv_has_value (&mv))
@@
-490,9
+494,9
@@
describe_variable (struct variable *v, struct tab_table *t, int r, int as)
union value value;
mv_pop_value (&mv, &value);
if (cnt++ > 0)
union value value;
mv_pop_value (&mv, &value);
if (cnt++ > 0)
- cp +=
n
sprintf (cp, "; ");
+ cp += sprintf (cp, "; ");
if (v->type == NUMERIC)
if (v->type == NUMERIC)
- cp +=
n
sprintf (cp, "%g", value.f);
+ cp += sprintf (cp, "%g", value.f);
else
{
*cp++ = '"';
else
{
*cp++ = '"';