Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
Compiler output is identical before & after this step git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4e48722b63
commit
752d7d239a
209 changed files with 9698 additions and 7658 deletions
|
@ -1,3 +1,5 @@
|
|||
// Unicode support by Jim Park -- 08/22/2007
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <math.h>
|
||||
|
@ -97,13 +99,13 @@ typedef struct __ParseInfo
|
|||
ExpressionItem *OpsStack;
|
||||
ExpressionItem **place;
|
||||
ExpressionItem **root;
|
||||
char valbuf[108];
|
||||
TCHAR valbuf[108];
|
||||
} ParseInfo;
|
||||
|
||||
#define OPERATOR_SET_PRECEDENCE 14
|
||||
typedef struct __OpStruct
|
||||
{
|
||||
char name[3];
|
||||
TCHAR name[3];
|
||||
unsigned char precedence;
|
||||
unsigned short int type;
|
||||
} OpStruct;
|
||||
|
@ -111,16 +113,16 @@ typedef struct __OpStruct
|
|||
#define MAX_USER_VARS 256
|
||||
typedef struct __UserVar
|
||||
{
|
||||
char name[28];
|
||||
TCHAR name[28];
|
||||
ExpressionItem *item;
|
||||
} UserVar;
|
||||
|
||||
#define MAX_USER_FUNCS 256
|
||||
typedef struct __UserFunc
|
||||
{
|
||||
char name[20];
|
||||
unsigned char vars[31];
|
||||
unsigned char varsnum;
|
||||
TCHAR name[20];
|
||||
unsigned char vars[31]; // only used for indexing
|
||||
unsigned char varsnum; // number of vars < 256
|
||||
unsigned int varflags;
|
||||
ExpressionItem *root;
|
||||
} UserFunc;
|
||||
|
@ -140,7 +142,7 @@ typedef double (*Math2dFuncPtr)(double arg, double *arg2);
|
|||
|
||||
typedef struct __MathFunction
|
||||
{
|
||||
char name[3];
|
||||
TCHAR name[3];
|
||||
unsigned char type;
|
||||
Math1FuncPtr fptr;
|
||||
} MathFunction;
|
||||
|
@ -159,8 +161,8 @@ typedef struct __MathFunction
|
|||
#define RTO_PREFFEREDTYPE 0xFF00
|
||||
void RunTree(ExpressionItem *from, ExpressionItem* &result, int type);
|
||||
|
||||
void StringToItem(char *&sbuf, ExpressionItem *item, int options);
|
||||
void ItemToString(char *sbuf, ExpressionItem *item);
|
||||
void FloatFormat(char *sbuf, double value, int options);
|
||||
void itoa64(__int64 i, char *buffer);
|
||||
int lstrcmpn(char *s1, const char *s2, int chars);
|
||||
void StringToItem(TCHAR *&sbuf, ExpressionItem *item, int options);
|
||||
void ItemToString(TCHAR *sbuf, ExpressionItem *item);
|
||||
void FloatFormat(TCHAR *sbuf, double value, int options);
|
||||
void itoa64(__int64 i, TCHAR *buffer);
|
||||
int lstrcmpn(TCHAR *s1, const TCHAR *s2, int chars);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue