projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
[pspp]
/
src
/
language
/
data-io
/
file-handle.q
diff --git
a/src/language/data-io/file-handle.q
b/src/language/data-io/file-handle.q
index 35fabc08842a25dc79453f3597853ded2df2620f..827dbab499e9af94a7c55fee5a42764a1ca39f89 100644
(file)
--- a/
src/language/data-io/file-handle.q
+++ b/
src/language/data-io/file-handle.q
@@
-15,6
+15,7
@@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
+#include <limits.h>
#include <language/data-io/file-handle.h>
#include <libpspp/message.h>
#include <errno.h>
#include <language/data-io/file-handle.h>
#include <libpspp/message.h>
#include <errno.h>
@@
-50,7
+51,7
@@
int
cmd_file_handle (struct lexer *lexer, struct dataset *ds)
{
int
cmd_file_handle (struct lexer *lexer, struct dataset *ds)
{
- char handle_name[
LONG
_NAME_LEN + 1];
+ char handle_name[
VAR
_NAME_LEN + 1];
struct cmd_file_handle cmd;
struct file_handle *handle;
struct cmd_file_handle cmd;
struct file_handle *handle;
@@
-210,7
+211,7
@@
fh_parse (struct lexer *lexer, enum fh_referent referent_mask)
handle = fh_from_id (lex_tokid (lexer));
if (handle == NULL)
{
handle = fh_from_id (lex_tokid (lexer));
if (handle == NULL)
{
- if (lex_token (lexer) != T_ID || lex_tokid (lexer)[0] != '#' || get_syntax () != ENHANCED)
+ if (lex_token (lexer) != T_ID || lex_tokid (lexer)[0] != '#' ||
settings_
get_syntax () != ENHANCED)
handle = fh_create_file (NULL, ds_cstr (lex_tokstr (lexer)),
fh_default_properties ());
else
handle = fh_create_file (NULL, ds_cstr (lex_tokstr (lexer)),
fh_default_properties ());
else