static int peekchr(void);
static void skipchr(void);
static void ungetchr(void);
-static int gethexchrs(int maxinputlen);
-static int getoctchrs(void);
-static int getdecchrs(void);
+static long gethexchrs(int maxinputlen);
+static long getoctchrs(void);
+static long getdecchrs(void);
static int coll_get_char(void);
static void regcomp_start(char_u *expr, int flags);
static char_u *reg(int, int *);
case Magic('@'):
{
int lop = END;
- int nr;
+ long nr;
nr = getdecchrs();
switch (no_Magic(getchr()))
case 'u': /* %uabcd hex 4 */
case 'U': /* %U1234abcd hex 8 */
{
- int i;
+ long i;
switch (c)
{
* The parameter controls the maximum number of input characters. This will be
* 2 when reading a \%x20 sequence and 4 when reading a \%u20AC sequence.
*/
- static int
+ static long
gethexchrs(int maxinputlen)
{
- int nr = 0;
+ long_u nr = 0;
int c;
int i;
if (i == 0)
return -1;
- return nr;
+ return (long)nr;
}
/*
* Get and return the value of the decimal string immediately after the
* current position. Return -1 for invalid. Consumes all digits.
*/
- static int
+ static long
getdecchrs(void)
{
- int nr = 0;
+ long_u nr = 0;
int c;
int i;
if (i == 0)
return -1;
- return nr;
+ return (long)nr;
}
/*
* blahblah\%o210asdf
* before-^ ^-after
*/
- static int
+ static long
getoctchrs(void)
{
- int nr = 0;
+ long_u nr = 0;
int c;
int i;
if (i == 0)
return -1;
- return nr;
+ return (long)nr;
}
/*
static int
coll_get_char(void)
{
- int nr = -1;
+ long nr = -1;
switch (*regparse++)
{
case 'u': /* %uabcd hex 4 */
case 'U': /* %U1234abcd hex 8 */
{
- int nr;
+ long nr;
switch (c)
{
int greedy = TRUE; /* Braces are prefixed with '-' ? */
parse_state_T old_state;
parse_state_T new_state;
- int c2;
+ long c2;
int old_post_pos;
int my_post_start;
int quest;