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
3f775a5e
Commit
3f775a5e
authored
Jun 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace CONFIG_HINT and CONFIG_ITEM with a boolean macro
parent
473c32a8
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
24 deletions
+20
-24
extras/analyser/zsh.cpp
extras/analyser/zsh.cpp
+7
-9
include/vlc_configuration.h
include/vlc_configuration.h
+1
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+2
-2
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+1
-1
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+1
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+2
-2
src/config/cmdline.c
src/config/cmdline.c
+1
-1
src/config/core.c
src/config/core.c
+1
-1
src/config/file.c
src/config/file.c
+1
-1
src/libvlc.c
src/libvlc.c
+1
-1
src/modules/entry.c
src/modules/entry.c
+1
-1
No files found.
extras/analyser/zsh.cpp
View file @
3f775a5e
...
...
@@ -134,16 +134,14 @@ void ParseModules( mumap &mods, mcmap &mods2 )
i_items
=
0
;
do
{
if
(
p_item
->
i_type
==
CONFIG_CATEGORY
)
{
// printf( " #Category %d\n", p_item->i_value );
}
else
if
(
p_item
->
i_type
==
CONFIG_SUBCATEGORY
)
{
// printf( " #Subcategory %d\n", p_item->i_value );
}
if
(
p_item
->
i_type
&
CONFIG_ITEM
)
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
)
ParseOption
(
p_item
,
mods
,
mods2
);
#if 0
else if( p_item->i_type == CONFIG_CATEGORY )
printf( " #Category %d\n", p_item->i_value );
else if( p_item->i_type == CONFIG_SUBCATEGORY )
printf( " #Subcategory %d\n", p_item->i_value );
#endif
}
while
(
++
i_items
<
p_module
->
confsize
&&
p_item
++
);
...
...
include/vlc_configuration.h
View file @
3f775a5e
...
...
@@ -52,8 +52,6 @@ extern "C" {
#define CONFIG_SUBCATEGORY 0x0007
/* Set subcategory */
#define CONFIG_SECTION 0x0008
/* Start of new section */
#define CONFIG_HINT 0x000F
/* Configuration item types */
#define CONFIG_ITEM_STRING 0x0010
/* String option */
/* unused 0x0020 */
...
...
@@ -71,7 +69,7 @@ extern "C" {
#define CONFIG_ITEM_LOADFILE 0x00E0
/* Read file option */
#define CONFIG_ITEM_SAVEFILE 0x00F0
/* Written file option */
#define CONFIG_ITEM
0x00F0
#define CONFIG_ITEM
(x) (((x) & 0xF0) != 0)
/*******************************************************************
* All predefined categories and subcategories
...
...
modules/gui/macosx/intf.m
View file @
3f775a5e
...
...
@@ -1068,7 +1068,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
{
module_config_t
*
p_item
=
p_config
+
i
;
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
p_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
&&
p_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"key-"
,
4
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
{
...
...
modules/gui/macosx/prefs.m
View file @
3f775a5e
...
...
@@ -385,7 +385,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
}
}
if
(
module_is_main
(
p_module
)
&&
(
configType
&
CONFIG_ITEM
)
)
if
(
module_is_main
(
p_module
)
&&
CONFIG_ITEM
(
configType
)
)
{
if
(
categoryItem
&&
[
self
isSubCategoryGeneral
:
lastsubcat
]
)
{
...
...
@@ -396,7 +396,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
[[
subCategoryItem
options
]
addObject
:[[
VLCTreeLeafItem
alloc
]
initWithConfigItem
:
&
p_configs
[
j
]]];
}
}
else
if
(
!
module_is_main
(
p_module
)
&&
(
configType
&
CONFIG_ITEM
))
else
if
(
!
module_is_main
(
p_module
)
&&
CONFIG_ITEM
(
configType
))
{
if
(
!
[[
subCategoryItem
children
]
containsObject
:
pluginItem
]
)
{
...
...
modules/gui/macosx/simple_prefs.m
View file @
3f775a5e
...
...
@@ -628,7 +628,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
{
module_config_t
*
p_item
=
p_config
+
i
;
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
p_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
&&
p_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"key-"
,
4
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
{
...
...
modules/gui/qt4/components/complete_preferences.cpp
View file @
3f775a5e
...
...
@@ -213,7 +213,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
else
if
(
p_item
->
i_type
==
CONFIG_SUBCATEGORY
)
i_subcategory
=
p_item
->
value
.
i
;
if
(
p_item
->
i_type
&
CONFIG_ITEM
)
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
)
b_options
=
true
;
if
(
b_options
&&
i_category
&&
i_subcategory
)
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
3f775a5e
...
...
@@ -1255,7 +1255,7 @@ void KeySelectorControl::finish()
module_config_t
*
p_item
=
p_config
+
i
;
/* If we are a (non-global) key option not empty */
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
p_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
&&
p_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"key-"
,
4
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
{
...
...
@@ -1277,7 +1277,7 @@ void KeySelectorControl::finish()
continue
;
}
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
p_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
&&
p_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"global-key"
,
10
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
{
...
...
src/config/cmdline.c
View file @
3f775a5e
...
...
@@ -133,7 +133,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
p_item
++
)
{
/* Ignore hints */
if
(
p_item
->
i_type
&
CONFIG_HINT
)
if
(
!
CONFIG_ITEM
(
p_item
->
i_type
)
)
continue
;
/* Add item to long options */
...
...
src/config/core.c
View file @
3f775a5e
...
...
@@ -408,7 +408,7 @@ int config_SortConfig (void)
item
<
end
;
item
++
)
{
if
(
item
->
i_type
&
CONFIG_HINT
)
if
(
!
CONFIG_ITEM
(
item
->
i_type
)
)
continue
;
/* ignore hints */
clist
[
nconf
++
]
=
item
;
}
...
...
src/config/file.c
View file @
3f775a5e
...
...
@@ -512,7 +512,7 @@ static int SaveConfigFile (vlc_object_t *p_this)
p_item
<
p_end
;
p_item
++
)
{
if
(
(
p_item
->
i_type
&
CONFIG_HINT
)
/* ignore hint */
if
(
!
CONFIG_ITEM
(
p_item
->
i_type
)
/* ignore hint */
||
p_item
->
b_removed
/* ignore deprecated option */
||
p_item
->
b_unsaveable
)
/* ignore volatile option */
continue
;
...
...
src/libvlc.c
View file @
3f775a5e
...
...
@@ -1425,7 +1425,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
p_item
<
p_end
;
p_item
++
)
{
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
if
(
CONFIG_ITEM
(
p_item
->
i_type
)
&&
!
p_item
->
b_advanced
&&
!
p_item
->
b_removed
)
break
;
}
...
...
src/modules/entry.c
View file @
3f775a5e
...
...
@@ -140,7 +140,7 @@ static module_config_t *vlc_config_create (module_t *module, int type)
}
tab
[
confsize
].
i_type
=
type
;
if
(
type
&
CONFIG_ITEM
)
if
(
CONFIG_ITEM
(
type
)
)
{
module
->
i_config_items
++
;
if
(
type
==
CONFIG_ITEM_BOOL
)
...
...
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