Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
ea436bd6
Commit
ea436bd6
authored
Mar 23, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed message, minor restructuring
parent
268da0c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
config.l
src/config.l
+7
-6
No files found.
src/config.l
View file @
ea436bd6
...
...
@@ -1591,21 +1591,22 @@ void Config::check()
checkFileName("GENERATE_TAGFILE");
//
sanity check if all depends relations are valid
//
disable any boolean options that depend on disabled options
QListIterator<ConfigOption> it = iterator();
ConfigOption *option;
for (it.toFirst();(option=it.current());++it)
{
QCString depName = option->dependsOn();
QCString depName = option->dependsOn();
// option has a dependency
if (!depName.isEmpty())
{
ConfigOption * dep = Config::instance()->get(depName);
if (dep->kind()==ConfigOption::O_Bool
&& Config_getBool(depName)==FALSE)
if (dep->kind()==ConfigOption::O_Bool
&&
Config_getBool(depName)==FALSE) // dependent option is disabled
{
msg("disabling %s since its dependency(%s) is also disabled\n",option->name().data(),depName.data());
if (option->kind()==ConfigOption::O_Bool)
Config_getBool(option->name())=FALSE;
{
Config_getBool(option->name())=FALSE; // also disable this option
}
}
}
}
...
...
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