projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INPUT PROGRAM: Use a separate dataset for the input program.
[pspp]
/
src
/
language
/
control
/
repeat.c
diff --git
a/src/language/control/repeat.c
b/src/language/control/repeat.c
index 72d45c2c2ff96344cfe65c3948475fd661792469..b2c2bb413e501bda41721c95b8ded972fd02950b 100644
(file)
--- a/
src/language/control/repeat.c
+++ b/
src/language/control/repeat.c
@@
-30,8
+30,10
@@
#include "libpspp/cast.h"
#include "libpspp/hash-functions.h"
#include "libpspp/hmap.h"
#include "libpspp/cast.h"
#include "libpspp/hash-functions.h"
#include "libpspp/hmap.h"
+#include "libpspp/i18n.h"
#include "libpspp/message.h"
#include "libpspp/str.h"
#include "libpspp/message.h"
#include "libpspp/str.h"
+#include "libpspp/misc.h"
#include "gl/ftoastr.h"
#include "gl/minmax.h"
#include "gl/ftoastr.h"
#include "gl/minmax.h"
@@
-77,7
+79,7
@@
cmd_do_repeat (struct lexer *lexer, struct dataset *ds)
static unsigned int
hash_dummy (const char *name, size_t name_len)
{
static unsigned int
hash_dummy (const char *name, size_t name_len)
{
- return hash_case_bytes (name, name_len, 0);
+ return
utf8_
hash_case_bytes (name, name_len, 0);
}
static const struct dummy_var *
}
static const struct dummy_var *
@@
-87,7
+89,7
@@
find_dummy_var (struct hmap *hmap, const char *name, size_t name_len)
HMAP_FOR_EACH_WITH_HASH (dv, struct dummy_var, hmap_node,
hash_dummy (name, name_len), hmap)
HMAP_FOR_EACH_WITH_HASH (dv, struct dummy_var, hmap_node,
hash_dummy (name, name_len), hmap)
- if (strcasecmp (dv->name, name))
+ if (
utf8_
strcasecmp (dv->name, name))
return dv;
return NULL;
return dv;
return NULL;
@@
-399,7
+401,7
@@
parse_numbers (struct lexer *lexer, struct dummy_var *dv)
{
char s[DBL_BUFSIZE_BOUND];
{
char s[DBL_BUFSIZE_BOUND];
- dtoastr (s, sizeof s, 0, 0, lex_number (lexer));
+
c_
dtoastr (s, sizeof s, 0, 0, lex_number (lexer));
add_replacement (dv, xstrdup (s), &allocated);
lex_get (lexer);
}
add_replacement (dv, xstrdup (s), &allocated);
lex_get (lexer);
}