projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed buglet in file open action.
[pspp]
/
src
/
data
/
any-reader.c
diff --git
a/src/data/any-reader.c
b/src/data/any-reader.c
index 0ab6dc23fd4786e091d295b5e7c66331d3e4d53a..4951d490ba2484f67e2281b87aaca66ab309ff8e 100644
(file)
--- a/
src/data/any-reader.c
+++ b/
src/data/any-reader.c
@@
-1,6
+1,5
@@
/* PSPP - computes sample statistics.
Copyright (C) 2006 Free Software Foundation, Inc.
/* PSPP - computes sample statistics.
Copyright (C) 2006 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@
-24,6
+23,7
@@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <libpspp/assertion.h>
#include <libpspp/message.h>
#include "file-handle-def.h"
#include "file-name.h"
#include <libpspp/message.h>
#include "file-handle-def.h"
#include "file-name.h"
@@
-139,7
+139,7
@@
any_reader_open (struct file_handle *handle, struct dictionary **dict)
return make_any_reader (SCRATCH_FILE,
scratch_reader_open (handle, dict));
}
return make_any_reader (SCRATCH_FILE,
scratch_reader_open (handle, dict));
}
-
abort
();
+
NOT_REACHED
();
}
/* Reads a single case from READER into C.
}
/* Reads a single case from READER into C.
@@
-158,7
+158,7
@@
any_reader_read (struct any_reader *reader, struct ccase *c)
case SCRATCH_FILE:
return scratch_reader_read_case (reader->private, c);
}
case SCRATCH_FILE:
return scratch_reader_read_case (reader->private, c);
}
-
abort
();
+
NOT_REACHED
();
}
/* Returns true if an I/O error has occurred on READER, false
}
/* Returns true if an I/O error has occurred on READER, false
@@
-177,7
+177,7
@@
any_reader_error (struct any_reader *reader)
case SCRATCH_FILE:
return scratch_reader_error (reader->private);
}
case SCRATCH_FILE:
return scratch_reader_error (reader->private);
}
-
abort
();
+
NOT_REACHED
();
}
/* Closes READER. */
}
/* Closes READER. */
@@
-202,7
+202,7
@@
any_reader_close (struct any_reader *reader)
break;
default:
break;
default:
-
abort
();
+
NOT_REACHED
();
}
free (reader);
}
free (reader);