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
3d6b672b
Commit
3d6b672b
authored
Nov 14, 2002
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make --version --help --longhelp --list and -p output to stdout.
parent
2547dac3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/libvlc.c
src/libvlc.c
+13
-13
No files found.
src/libvlc.c
View file @
3d6b672b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
* libvlc.c: main libvlc source
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.c,v 1.4
6 2002/11/10 23:41:53 sam
Exp $
* $Id: libvlc.c,v 1.4
7 2002/11/14 15:07:49 sigmunau
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -276,7 +276,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
...
@@ -276,7 +276,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
/* Check for short help option */
/* Check for short help option */
if
(
config_GetInt
(
p_vlc
,
"help"
)
)
if
(
config_GetInt
(
p_vlc
,
"help"
)
)
{
{
fprintf
(
std
err
,
_
(
"Usage: %s [options] [items]...
\n\n
"
),
fprintf
(
std
out
,
_
(
"Usage: %s [options] [items]...
\n\n
"
),
p_vlc
->
psz_object_name
);
p_vlc
->
psz_object_name
);
Usage
(
p_vlc
,
"main"
);
Usage
(
p_vlc
,
"main"
);
Usage
(
p_vlc
,
"help"
);
Usage
(
p_vlc
,
"help"
);
...
@@ -1048,7 +1048,7 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
...
@@ -1048,7 +1048,7 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
{
{
case
CONFIG_HINT_CATEGORY
:
case
CONFIG_HINT_CATEGORY
:
case
CONFIG_HINT_USAGE
:
case
CONFIG_HINT_USAGE
:
fprintf
(
std
err
,
" %s
\n
"
,
p_item
->
psz_text
);
fprintf
(
std
out
,
" %s
\n
"
,
p_item
->
psz_text
);
break
;
break
;
case
CONFIG_ITEM_STRING
:
case
CONFIG_ITEM_STRING
:
...
@@ -1151,13 +1151,13 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
...
@@ -1151,13 +1151,13 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
if
(
p_item
->
i_type
==
CONFIG_ITEM_BOOL
&&
if
(
p_item
->
i_type
==
CONFIG_ITEM_BOOL
&&
!
b_help_module
)
!
b_help_module
)
{
{
fprintf
(
std
err
,
psz_format
,
p_item
->
psz_name
,
psz_prefix
,
fprintf
(
std
out
,
psz_format
,
p_item
->
psz_name
,
psz_prefix
,
p_item
->
psz_name
,
psz_bra
,
psz_type
,
psz_ket
,
p_item
->
psz_name
,
psz_bra
,
psz_type
,
psz_ket
,
psz_spaces
,
p_item
->
psz_text
,
psz_suf
);
psz_spaces
,
p_item
->
psz_text
,
psz_suf
);
}
}
else
else
{
{
fprintf
(
std
err
,
psz_format
,
p_item
->
psz_name
,
""
,
""
,
fprintf
(
std
out
,
psz_format
,
p_item
->
psz_name
,
""
,
""
,
psz_bra
,
psz_type
,
psz_ket
,
psz_spaces
,
psz_bra
,
psz_type
,
psz_ket
,
psz_spaces
,
p_item
->
psz_text
,
psz_suf
);
p_item
->
psz_text
,
psz_suf
);
}
}
...
@@ -1174,7 +1174,7 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
...
@@ -1174,7 +1174,7 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
std
err
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
fprintf
(
std
out
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
getchar
();
#endif
#endif
}
}
...
@@ -1198,10 +1198,10 @@ static void ListModules( vlc_t *p_this )
...
@@ -1198,10 +1198,10 @@ static void ListModules( vlc_t *p_this )
#endif
#endif
/* Usage */
/* Usage */
fprintf
(
std
err
,
_
(
"Usage: %s [options] [items]...
\n\n
"
),
fprintf
(
std
out
,
_
(
"Usage: %s [options] [items]...
\n\n
"
),
p_this
->
p_vlc
->
psz_object_name
);
p_this
->
p_vlc
->
psz_object_name
);
fprintf
(
std
err
,
_
(
"[module] [description]
\n
"
)
);
fprintf
(
std
out
,
_
(
"[module] [description]
\n
"
)
);
/* List all modules */
/* List all modules */
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
...
@@ -1219,7 +1219,7 @@ static void ListModules( vlc_t *p_this )
...
@@ -1219,7 +1219,7 @@ static void ListModules( vlc_t *p_this )
if
(
i
<
0
)
i
=
0
;
if
(
i
<
0
)
i
=
0
;
psz_spaces
[
i
]
=
0
;
psz_spaces
[
i
]
=
0
;
fprintf
(
std
err
,
" %s%s %s
\n
"
,
(
*
pp_parser
)
->
psz_object_name
,
fprintf
(
std
out
,
" %s%s %s
\n
"
,
(
*
pp_parser
)
->
psz_object_name
,
psz_spaces
,
(
*
pp_parser
)
->
psz_longname
);
psz_spaces
,
(
*
pp_parser
)
->
psz_longname
);
psz_spaces
[
i
]
=
' '
;
psz_spaces
[
i
]
=
' '
;
...
@@ -1228,7 +1228,7 @@ static void ListModules( vlc_t *p_this )
...
@@ -1228,7 +1228,7 @@ static void ListModules( vlc_t *p_this )
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
std
err
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
fprintf
(
std
out
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
getchar
();
#endif
#endif
}
}
...
@@ -1244,15 +1244,15 @@ static void Version( void )
...
@@ -1244,15 +1244,15 @@ static void Version( void )
ShowConsole
();
ShowConsole
();
#endif
#endif
fprintf
(
std
err
,
VERSION_MESSAGE
"
\n
"
);
fprintf
(
std
out
,
VERSION_MESSAGE
"
\n
"
);
fprintf
(
std
err
,
fprintf
(
std
out
,
_
(
"This program comes with NO WARRANTY, to the extent permitted by "
_
(
"This program comes with NO WARRANTY, to the extent permitted by "
"law.
\n
You may redistribute it under the terms of the GNU General "
"law.
\n
You may redistribute it under the terms of the GNU General "
"Public License;
\n
see the file named COPYING for details.
\n
"
"Public License;
\n
see the file named COPYING for details.
\n
"
"Written by the VideoLAN team at Ecole Centrale, Paris.
\n
"
)
);
"Written by the VideoLAN team at Ecole Centrale, Paris.
\n
"
)
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
std
err
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
fprintf
(
std
out
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
getchar
();
#endif
#endif
}
}
...
...
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