projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
encoding-guesser: Fix bug in parsing fallback encodings.
[pspp]
/
src
/
language
/
lexer
/
segment.h
diff --git
a/src/language/lexer/segment.h
b/src/language/lexer/segment.h
index 686b471e18d4bc7e3536c33ed3dcbb6c7bf9a937..1c209c5acb395dfe630035a4e34f4650215491dc 100644
(file)
--- a/
src/language/lexer/segment.h
+++ b/
src/language/lexer/segment.h
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2010, 2011
, 2013
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-97,9
+97,13
@@
enum segment_type
#define SEG_TYPE(NAME) SEG_##NAME,
SEG_TYPES
#undef SEG_TYPE
#define SEG_TYPE(NAME) SEG_##NAME,
SEG_TYPES
#undef SEG_TYPE
- SEG_N_TYPES
};
};
+/* Number of segment types. */
+#define SEG_TYPE(NAME) + 1
+enum { SEG_N_TYPES = SEG_TYPES };
+#undef SEG_TYPE
+
const char *segment_type_to_string (enum segment_type);
/* A segmenter. Opaque. */
const char *segment_type_to_string (enum segment_type);
/* A segmenter. Opaque. */