archive/List: add `noexcept`
This commit is contained in:
parent
096c23f27d
commit
c0e9246a66
|
@ -49,7 +49,7 @@ static bool archive_plugins_enabled[ARRAY_SIZE(archive_plugins) - 1];
|
||||||
if (archive_plugins_enabled[archive_plugin_iterator - archive_plugins])
|
if (archive_plugins_enabled[archive_plugin_iterator - archive_plugins])
|
||||||
|
|
||||||
const ArchivePlugin *
|
const ArchivePlugin *
|
||||||
archive_plugin_from_suffix(const char *suffix)
|
archive_plugin_from_suffix(const char *suffix) noexcept
|
||||||
{
|
{
|
||||||
if (suffix == nullptr)
|
if (suffix == nullptr)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
@ -63,7 +63,7 @@ archive_plugin_from_suffix(const char *suffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ArchivePlugin *
|
const ArchivePlugin *
|
||||||
archive_plugin_from_name(const char *name)
|
archive_plugin_from_name(const char *name) noexcept
|
||||||
{
|
{
|
||||||
archive_plugins_for_each_enabled(plugin)
|
archive_plugins_for_each_enabled(plugin)
|
||||||
if (strcmp(plugin->name, name) == 0)
|
if (strcmp(plugin->name, name) == 0)
|
||||||
|
@ -81,7 +81,8 @@ void archive_plugin_init_all(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void archive_plugin_deinit_all(void)
|
void
|
||||||
|
archive_plugin_deinit_all() noexcept
|
||||||
{
|
{
|
||||||
archive_plugins_for_each_enabled(plugin)
|
archive_plugins_for_each_enabled(plugin)
|
||||||
if (plugin->finish != nullptr)
|
if (plugin->finish != nullptr)
|
||||||
|
|
|
@ -33,10 +33,10 @@ extern const ArchivePlugin *const archive_plugins[];
|
||||||
/* interface for using plugins */
|
/* interface for using plugins */
|
||||||
|
|
||||||
const ArchivePlugin *
|
const ArchivePlugin *
|
||||||
archive_plugin_from_suffix(const char *suffix);
|
archive_plugin_from_suffix(const char *suffix) noexcept;
|
||||||
|
|
||||||
const ArchivePlugin *
|
const ArchivePlugin *
|
||||||
archive_plugin_from_name(const char *name);
|
archive_plugin_from_name(const char *name) noexcept;
|
||||||
|
|
||||||
/* this is where we "load" all the "plugins" ;-) */
|
/* this is where we "load" all the "plugins" ;-) */
|
||||||
void
|
void
|
||||||
|
@ -44,6 +44,6 @@ archive_plugin_init_all();
|
||||||
|
|
||||||
/* this is where we "unload" all the "plugins" */
|
/* this is where we "unload" all the "plugins" */
|
||||||
void
|
void
|
||||||
archive_plugin_deinit_all();
|
archive_plugin_deinit_all() noexcept;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue