Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
664c9f19
Commit
664c9f19
authored
Nov 12, 2003
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c: little fix in RPN evaluator (now it is real RPN).
parent
b03111a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/control/http.c
modules/control/http.c
+13
-13
No files found.
modules/control/http.c
View file @
664c9f19
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: http.c,v 1.3
2 2003/11/12 02:43:3
3 garf Exp $
* $Id: http.c,v 1.3
3 2003/11/12 02:56:1
3 garf Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -2599,8 +2599,8 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
}
else
if
(
!
strcmp
(
s
,
"-"
)
)
{
int
i
=
SSPopN
(
st
,
vars
);
int
j
=
SSPopN
(
st
,
vars
);
int
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
i
-
j
);
}
else
if
(
!
strcmp
(
s
,
"*"
)
)
...
...
@@ -2611,8 +2611,8 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
{
int
i
,
j
;
i
=
SSPopN
(
st
,
vars
);
j
=
SSPopN
(
st
,
vars
);
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
j
!=
0
?
i
/
j
:
0
);
}
...
...
@@ -2620,8 +2620,8 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
{
int
i
,
j
;
i
=
SSPopN
(
st
,
vars
);
j
=
SSPopN
(
st
,
vars
);
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
j
!=
0
?
i
%
j
:
0
);
}
...
...
@@ -2632,37 +2632,37 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
}
else
if
(
!
strcmp
(
s
,
"<"
)
)
{
int
i
=
SSPopN
(
st
,
vars
);
int
j
=
SSPopN
(
st
,
vars
);
int
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
i
<
j
?
-
1
:
0
);
}
else
if
(
!
strcmp
(
s
,
">"
)
)
{
int
i
=
SSPopN
(
st
,
vars
);
int
j
=
SSPopN
(
st
,
vars
);
int
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
i
>
j
?
-
1
:
0
);
}
else
if
(
!
strcmp
(
s
,
"<="
)
)
{
int
i
=
SSPopN
(
st
,
vars
);
int
j
=
SSPopN
(
st
,
vars
);
int
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
i
<=
j
?
-
1
:
0
);
}
else
if
(
!
strcmp
(
s
,
">="
)
)
{
int
i
=
SSPopN
(
st
,
vars
);
int
j
=
SSPopN
(
st
,
vars
);
int
i
=
SSPopN
(
st
,
vars
);
SSPushN
(
st
,
i
>=
j
?
-
1
:
0
);
}
/* 3. string functions */
else
if
(
!
strcmp
(
s
,
"strcat"
)
)
{
char
*
s1
=
SSPop
(
st
);
char
*
s2
=
SSPop
(
st
);
char
*
s1
=
SSPop
(
st
);
char
*
str
=
malloc
(
strlen
(
s1
)
+
strlen
(
s2
)
+
1
);
strcpy
(
str
,
s1
);
...
...
@@ -2675,8 +2675,8 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
}
else
if
(
!
strcmp
(
s
,
"strcmp"
)
)
{
char
*
s1
=
SSPop
(
st
);
char
*
s2
=
SSPop
(
st
);
char
*
s1
=
SSPop
(
st
);
SSPushN
(
st
,
strcmp
(
s1
,
s2
)
);
free
(
s1
);
...
...
@@ -2684,9 +2684,9 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
}
else
if
(
!
strcmp
(
s
,
"strncmp"
)
)
{
char
*
s1
=
SSPop
(
st
);
char
*
s2
=
SSPop
(
st
);
int
n
=
SSPopN
(
st
,
vars
);
char
*
s2
=
SSPop
(
st
);
char
*
s1
=
SSPop
(
st
);
SSPushN
(
st
,
strncmp
(
s1
,
s2
,
n
)
);
free
(
s1
);
...
...
@@ -2729,8 +2729,8 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
}
else
if
(
!
strcmp
(
s
,
"store"
)
)
{
char
*
name
=
SSPop
(
st
);
char
*
value
=
SSPop
(
st
);
char
*
name
=
SSPop
(
st
);
mvar_PushNewVar
(
vars
,
name
,
value
);
free
(
name
);
...
...
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