1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 02:23:18 +02:00

Fix a few build bugs, still no go

This commit is contained in:
Zeev Suraski
2000-09-19 17:53:09 +00:00
parent 51498e1d3f
commit 5b0ca1585a
2 changed files with 12 additions and 6 deletions

View File

@@ -22,7 +22,10 @@
#ifdef TRANS_SID
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -107,7 +110,7 @@ static char *check_tag_arg[] = {
NULL
};
static inline void tag_arg(url_adapt_state_t *ctx PLS_CC)
static inline void tag_arg(url_adapt_state_t *ctx PLS_DC)
{
char f = 0;
int i;
@@ -585,7 +588,7 @@ yy45:
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
tag_arg(ctx PLS_DC);
tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;
@@ -626,7 +629,7 @@ yy54:
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
tag_arg(ctx PLS_DC);
tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;

View File

@@ -20,7 +20,10 @@
#ifdef TRANS_SID
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -105,7 +108,7 @@ static char *check_tag_arg[] = {
NULL
};
static inline void tag_arg(url_adapt_state_t *ctx PLS_CC)
static inline void tag_arg(url_adapt_state_t *ctx PLS_DC)
{
char f = 0;
int i;
@@ -253,7 +256,7 @@ static void mainloop(url_adapt_state_t *ctx, smart_str *newstuff)
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
tag_arg(ctx PLS_DC);
tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;
@@ -265,7 +268,7 @@ static void mainloop(url_adapt_state_t *ctx, smart_str *newstuff)
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
tag_arg(ctx PLS_DC);
tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;