summaryrefslogtreecommitdiffstats
path: root/libmsi/tokenize.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-05 10:11:47 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:34 +0100
commit1222609fc5d9c980c1da9fb839f86455047c7c91 (patch)
tree745775fe5729f7cfa13dc99f9ff085f7aa52caca /libmsi/tokenize.c
parent175346aac4942eb97ccf2f00ca127cf700cd2eff (diff)
downloadmsitools-1222609fc5d9c980c1da9fb839f86455047c7c91.tar.gz
msitools-1222609fc5d9c980c1da9fb839f86455047c7c91.tar.xz
msitools-1222609fc5d9c980c1da9fb839f86455047c7c91.zip
eliminate WCHAR
Diffstat (limited to 'libmsi/tokenize.c')
-rw-r--r--libmsi/tokenize.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmsi/tokenize.c b/libmsi/tokenize.c
index 007411e..c19a9ad 100644
--- a/libmsi/tokenize.c
+++ b/libmsi/tokenize.c
@@ -88,7 +88,7 @@ static const Keyword aKeywordTable[] = {
** Comparison function for binary search.
*/
static int sql_compare_keyword(const void *m1, const void *m2){
- const WCHAR *p = m1;
+ const char *p = m1;
const Keyword *k = m2;
const char *q = k->zName;
@@ -111,14 +111,14 @@ static int sql_compare_keyword(const void *m1, const void *m2){
** keyword. If it is a keyword, the token code of that keyword is
** returned. If the input is not a keyword, TK_ID is returned.
*/
-static int sqlite_find_keyword(const WCHAR *z, int n){
- WCHAR str[MAX_TOKEN_LEN+1];
+static int sqlite_find_keyword(const char *z, int n){
+ char str[MAX_TOKEN_LEN+1];
Keyword *r;
if( n>MAX_TOKEN_LEN )
return TK_ID;
- memcpy( str, z, n*sizeof (WCHAR) );
+ memcpy( str, z, n*sizeof (char) );
str[n] = 0;
r = bsearch( str, aKeywordTable, KEYWORD_COUNT, sizeof (Keyword), sql_compare_keyword );
if( r )
@@ -163,7 +163,7 @@ static const char isIdChar[] = {
** -1 if the token is (or might be) incomplete. Store the token
** type in *tokenType before returning.
*/
-int sql_get_token(const WCHAR *z, int *tokenType, int *skip){
+int sql_get_token(const char *z, int *tokenType, int *skip){
int i;
*skip = 0;