+Sat Apr 15 21:45:40 2006 Ben Pfaff <blp@gnu.org>
+
+ Get rid of src/libpspp/debug-print.h and all its users. (There
+ were few real users, but many inclusions of its header file.)
+
Sat Apr 15 19:51:22 2006 Ben Pfaff <blp@gnu.org>
Get rid of our own int32 type in favor of the standard int32_t
#include "gettext.h"
#define _(msgid) gettext (msgid)
-
-#include <libpspp/debug-print.h>
\f
/* Specialized error routine. */
#include "gettext.h"
#define _(msgid) gettext (msgid)
-
-#include <libpspp/debug-print.h>
\f
/* Public functions. */
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* PORTME: Everything in this file is system dependent. */
#ifdef unix
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* portable_to_local[PORTABLE] translates the given portable
character into the local character set. */
static const char portable_to_local[256] =
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Portable file writer. */
struct pfm_writer
{
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* System file reader. */
struct sfm_reader
{
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Compression bias used by PSPP. Values between (1 -
COMPRESSION_BIAS) and (251 - COMPRESSION_BIAS) inclusive can be
compressed. */
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Defines a list of lines used by DO REPEAT. */
struct line_list
{
#include <language/command.h>
#include <libpspp/compiler.h>
#include <data/data-in.h>
-#include <libpspp/debug-print.h>
#include <language/data-io/data-reader.h>
#include <data/dictionary.h>
#include <libpspp/message.h>
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Flags for DFM readers. */
enum dfm_reader_flags
{
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Rearranging and reducing a dictionary. */
static void start_case_map (struct dictionary *);
static struct case_map *finish_case_map (struct dictionary *);
\f
/* MATCH FILES. */
-#include <libpspp/debug-print.h>
-
/* File types. */
enum
{
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Indicates how a `union value' should be initialized. */
enum value_init_type
{
/* (headers) */
-#include <libpspp/debug-print.h>
-
/* (specification)
list (lst_):
*variables=varlist("PV_NO_SCRATCH");
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* FIXME: /N subcommand not implemented. It should be pretty simple,
too. */
if (mx->fmt != FREE
&& !force_eol (mx->reader, content_names[content]))
return 0;
- debug_printf (("\n"));
}
if (mx->section == LOWER)
size_t factor;
for (factor = 0; factor < mx->n_factors; factor++)
- {
- case_data_rw (c, mx->factors[factor]->fv)->f
- = nr->factor_values[factor + cell * mx->n_factors];
- debug_printf (("f:%s ", mx->factors[factor]->name));
- }
+ case_data_rw (c, mx->factors[factor]->fv)->f
+ = nr->factor_values[factor + cell * mx->n_factors];
}
{
}
c->n_rows[wr->content]++;
- debug_printf ((" (c=%p,r=%d,n=%d)", c, n_rows + 1, n_cols));
-
/* Read N_COLS items at CP. */
{
int j;
if (mx->fmt != FREE
&& !force_eol (mx->reader, content_names[wr->content]))
return 0;
- debug_printf (("\n"));
}
return 1;
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Parses and executes APPLY DICTIONARY. */
int
cmd_apply_dictionary (void)
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
enum
{
FORMATS_PRINT = 001,
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
int
cmd_missing_values (void)
{
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* Parses the NUMERIC command. */
int
cmd_numeric (void)
#include <libpspp/str.h>
#include <data/variable.h>
-#include <libpspp/debug-print.h>
-
/* Set variables' alignment
This is the alignment for GUI display only.
It affects nothing but GUIs
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
int
cmd_variable_labels (void)
{
#endif
-#include <libpspp/debug-print.h>
-
/* Max length of an input line. */
#define MAX_LINE_LEN 1024
#include <data/variable.h>
/* (headers) */
-#include <libpspp/debug-print.h>
-
struct cor_set
{
struct cor_set *next;
/* (headers) */
-#include <libpspp/debug-print.h>
-
/* (specification)
crosstabs (crs_):
*^tables=custom;
/* (headers) */
-#include <libpspp/debug-print.h>
-
/* (specification)
FREQUENCIES (frq_):
*variables=custom;
/* (headers) */
-#include <libpspp/debug-print.h>
-
/* (specification)
means (mns_):
*tables=custom;
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
static int get_title (const char *cmd, char **title);
int
int c;
c = lex_look_ahead ();
- debug_printf ((_("%s before: %s\n"), cmd, *title ? *title : _("<none>")));
if (c == '"' || c == '\'')
{
lex_get ();
*cp = toupper ((unsigned char) (*cp));
token = '.';
}
- debug_printf ((_("%s after: %s\n"), cmd, *title));
return CMD_SUCCESS;
}
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* The two different types of samples. */
enum
{
src/libpspp/copyleft.c \
src/libpspp/copyleft.h \
src/libpspp/compiler.h \
- src/libpspp/debug-print.h \
src/libpspp/freaderror.c \
src/libpspp/freaderror.h \
src/libpspp/hash.c \
+++ /dev/null
-/* This file can be included multiple times. It redeclares its macros
- appropriately each time, like assert.h. */
-
-#undef debug_printf
-#undef debug_puts
-#undef debug_putc
-
-#if DEBUGGING
-
-#define debug_printf(args) \
- do \
- { \
- printf args; \
- fflush (stdout); \
- } \
- while (0)
-
-#define debug_puts(string) \
- do \
- { \
- puts (string); \
- fflush (stdout); \
- } \
- while (0)
-
-#define debug_putc(char, stream) \
- do \
- { \
- putc (char, stream); \
- fflush (stdout); \
- } \
- while (0)
-
-#else /* !DEBUGGING */
-
-#define debug_printf(args) \
- do \
- { \
- } \
- while (0)
-
-#define debug_puts(string) \
- do \
- { \
- } \
- while (0)
-
-#define debug_putc(char, stream) \
- do \
- { \
- } \
- while (0)
-
-#endif /* !DEBUGGING */
#include "gettext.h"
#define _(msgid) gettext (msgid)
-#include <libpspp/debug-print.h>
-
/* These should only be changed for testing purposes. */
int min_buffers = 64;
int max_buffers = INT_MAX;
#include <stdio.h>
#include <stdlib.h>
#include "output.h"
-#include <libpspp/debug-print.h>
/* Table. */
int table_num = 1;
#include "gettext.h"
#define _(msgid) gettext (msgid)
-
-#include <libpspp/debug-print.h>
\f
struct som_table_class tab_table_class;
static char *command_name;
#include <stdlib.h>
-#include <libpspp/debug-print.h>
-
static void i18n_init (void);
static void fpu_init (void);
static void handle_error (int code);