miinitext: move AddStaticExtensions() to LoadExtension()
Separate the function from NewExtensionModule() as the former does only memory reallocation. No functional change. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
bf087659f0
commit
6fea450d41
|
@ -346,10 +346,6 @@ NewExtensionModule(void)
|
||||||
ExtensionModule *save = ExtensionModuleList;
|
ExtensionModule *save = ExtensionModuleList;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
/* Make sure built-in extensions get added to the list before those
|
|
||||||
* in modules. */
|
|
||||||
AddStaticExtensions();
|
|
||||||
|
|
||||||
/* Sanity check */
|
/* Sanity check */
|
||||||
if (!ExtensionModuleList)
|
if (!ExtensionModuleList)
|
||||||
numExtensionModules = 0;
|
numExtensionModules = 0;
|
||||||
|
@ -376,6 +372,10 @@ LoadExtension(const ExtensionModule * e, Bool builtin)
|
||||||
if (e == NULL || e->name == NULL)
|
if (e == NULL || e->name == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Make sure built-in extensions get added to the list before those
|
||||||
|
* in modules. */
|
||||||
|
AddStaticExtensions();
|
||||||
|
|
||||||
if (!(newext = NewExtensionModule()))
|
if (!(newext = NewExtensionModule()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue