Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
5f5d4e18
Commit
5f5d4e18
authored
Jul 12, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c : fix definition conflict under OS X (at least).
parent
28de87ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
modules/control/http.c
modules/control/http.c
+17
-17
No files found.
modules/control/http.c
View file @
5f5d4e18
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
* http.c : http mini-server ;)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: http.c,v 1.1
3 2003/07/11 18:19:43
fenrir Exp $
* $Id: http.c,v 1.1
4 2003/07/12 00:56:18
fenrir Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -88,7 +88,7 @@ typedef struct
...
@@ -88,7 +88,7 @@ typedef struct
{
{
char
*
stack
[
STACK_MAX
];
char
*
stack
[
STACK_MAX
];
int
i_stack
;
int
i_stack
;
}
stack_t
;
}
rpn_
stack_t
;
struct
httpd_file_callback_args_t
struct
httpd_file_callback_args_t
{
{
...
@@ -100,7 +100,7 @@ struct httpd_file_callback_args_t
...
@@ -100,7 +100,7 @@ struct httpd_file_callback_args_t
char
*
mime
;
char
*
mime
;
/* inited for each access */
/* inited for each access */
stack_t
stack
;
rpn_
stack_t
stack
;
mvar_t
*
vars
;
mvar_t
*
vars
;
};
};
...
@@ -1092,15 +1092,15 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
...
@@ -1092,15 +1092,15 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
return
s
;
return
s
;
}
}
static
void
SSInit
(
stack_t
*
);
static
void
SSInit
(
rpn_
stack_t
*
);
static
void
SSClean
(
stack_t
*
);
static
void
SSClean
(
rpn_
stack_t
*
);
static
void
EvaluateRPN
(
mvar_t
*
,
stack_t
*
,
char
*
);
static
void
EvaluateRPN
(
mvar_t
*
,
rpn_
stack_t
*
,
char
*
);
static
void
SSPush
(
stack_t
*
,
char
*
);
static
void
SSPush
(
rpn_
stack_t
*
,
char
*
);
static
char
*
SSPop
(
stack_t
*
);
static
char
*
SSPop
(
rpn_
stack_t
*
);
static
void
SSPushN
(
stack_t
*
,
int
);
static
void
SSPushN
(
rpn_
stack_t
*
,
int
);
static
int
SSPopN
(
stack_t
*
,
mvar_t
*
);
static
int
SSPopN
(
rpn_
stack_t
*
,
mvar_t
*
);
/****************************************************************************
/****************************************************************************
...
@@ -1904,12 +1904,12 @@ static void uri_decode_url_encoded( char *psz )
...
@@ -1904,12 +1904,12 @@ static void uri_decode_url_encoded( char *psz )
/****************************************************************************
/****************************************************************************
* Light RPN evaluator
* Light RPN evaluator
****************************************************************************/
****************************************************************************/
static
void
SSInit
(
stack_t
*
st
)
static
void
SSInit
(
rpn_
stack_t
*
st
)
{
{
st
->
i_stack
=
0
;
st
->
i_stack
=
0
;
}
}
static
void
SSClean
(
stack_t
*
st
)
static
void
SSClean
(
rpn_
stack_t
*
st
)
{
{
while
(
st
->
i_stack
>
0
)
while
(
st
->
i_stack
>
0
)
{
{
...
@@ -1917,7 +1917,7 @@ static void SSClean( stack_t *st )
...
@@ -1917,7 +1917,7 @@ static void SSClean( stack_t *st )
}
}
}
}
static
void
SSPush
(
stack_t
*
st
,
char
*
s
)
static
void
SSPush
(
rpn_
stack_t
*
st
,
char
*
s
)
{
{
if
(
st
->
i_stack
<
STACK_MAX
)
if
(
st
->
i_stack
<
STACK_MAX
)
{
{
...
@@ -1925,7 +1925,7 @@ static void SSPush( stack_t *st, char *s )
...
@@ -1925,7 +1925,7 @@ static void SSPush( stack_t *st, char *s )
}
}
}
}
static
char
*
SSPop
(
stack_t
*
st
)
static
char
*
SSPop
(
rpn_
stack_t
*
st
)
{
{
if
(
st
->
i_stack
<=
0
)
if
(
st
->
i_stack
<=
0
)
{
{
...
@@ -1937,7 +1937,7 @@ static char * SSPop( stack_t *st )
...
@@ -1937,7 +1937,7 @@ static char * SSPop( stack_t *st )
}
}
}
}
static
int
SSPopN
(
stack_t
*
st
,
mvar_t
*
vars
)
static
int
SSPopN
(
rpn_
stack_t
*
st
,
mvar_t
*
vars
)
{
{
char
*
name
;
char
*
name
;
char
*
value
;
char
*
value
;
...
@@ -1957,7 +1957,7 @@ static int SSPopN( stack_t *st, mvar_t *vars )
...
@@ -1957,7 +1957,7 @@ static int SSPopN( stack_t *st, mvar_t *vars )
return
(
i
);
return
(
i
);
}
}
static
void
SSPushN
(
stack_t
*
st
,
int
i
)
static
void
SSPushN
(
rpn_
stack_t
*
st
,
int
i
)
{
{
char
v
[
512
];
char
v
[
512
];
...
@@ -1965,7 +1965,7 @@ static void SSPushN( stack_t *st, int i )
...
@@ -1965,7 +1965,7 @@ static void SSPushN( stack_t *st, int i )
SSPush
(
st
,
v
);
SSPush
(
st
,
v
);
}
}
static
void
EvaluateRPN
(
mvar_t
*
vars
,
stack_t
*
st
,
char
*
exp
)
static
void
EvaluateRPN
(
mvar_t
*
vars
,
rpn_
stack_t
*
st
,
char
*
exp
)
{
{
for
(
;;
)
for
(
;;
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment