Removed #AX_PREFIX_CONFIG_H
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "prof_config.h"
|
||||
#include "config.h"
|
||||
#include "common.h"
|
||||
#include "config/preferences.h"
|
||||
#include "log.h"
|
||||
@@ -46,12 +46,12 @@
|
||||
#include "plugins/themes.h"
|
||||
#include "plugins/settings.h"
|
||||
|
||||
#ifdef PROF_HAVE_PYTHON
|
||||
#ifdef HAVE_PYTHON
|
||||
#include "plugins/python_plugins.h"
|
||||
#include "plugins/python_api.h"
|
||||
#endif
|
||||
|
||||
#ifdef PROF_HAVE_C
|
||||
#ifdef HAVE_C
|
||||
#include "plugins/c_plugins.h"
|
||||
#include "plugins/c_api.h"
|
||||
#endif
|
||||
@@ -67,10 +67,10 @@ plugins_init(void)
|
||||
callbacks_init();
|
||||
autocompleters_init();
|
||||
|
||||
#ifdef PROF_HAVE_PYTHON
|
||||
#ifdef HAVE_PYTHON
|
||||
python_env_init();
|
||||
#endif
|
||||
#ifdef PROF_HAVE_C
|
||||
#ifdef HAVE_C
|
||||
c_env_init();
|
||||
#endif
|
||||
|
||||
@@ -85,7 +85,7 @@ plugins_init(void)
|
||||
{
|
||||
gboolean loaded = FALSE;
|
||||
gchar *filename = plugins_load[i];
|
||||
#ifdef PROF_HAVE_PYTHON
|
||||
#ifdef HAVE_PYTHON
|
||||
if (g_str_has_suffix(filename, ".py")) {
|
||||
ProfPlugin *plugin = python_plugin_create(filename);
|
||||
if (plugin) {
|
||||
@@ -94,7 +94,7 @@ plugins_init(void)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef PROF_HAVE_C
|
||||
#ifdef HAVE_C
|
||||
if (g_str_has_suffix(filename, ".so")) {
|
||||
ProfPlugin *plugin = c_plugin_create(filename);
|
||||
if (plugin) {
|
||||
@@ -112,7 +112,7 @@ plugins_init(void)
|
||||
GSList *curr = plugins;
|
||||
while (curr) {
|
||||
ProfPlugin *plugin = curr->data;
|
||||
plugin->init_func(plugin, PROF_PACKAGE_VERSION, PROF_PACKAGE_STATUS);
|
||||
plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS);
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
}
|
||||
@@ -554,12 +554,12 @@ plugins_shutdown(void)
|
||||
GSList *curr = plugins;
|
||||
|
||||
while (curr) {
|
||||
#ifdef PROF_HAVE_PYTHON
|
||||
#ifdef HAVE_PYTHON
|
||||
if (((ProfPlugin *)curr->data)->lang == LANG_PYTHON) {
|
||||
python_plugin_destroy(curr->data);
|
||||
}
|
||||
#endif
|
||||
#ifdef PROF_HAVE_C
|
||||
#ifdef HAVE_C
|
||||
if (((ProfPlugin *)curr->data)->lang == LANG_C) {
|
||||
c_plugin_destroy(curr->data);
|
||||
}
|
||||
@@ -567,10 +567,10 @@ plugins_shutdown(void)
|
||||
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
#ifdef PROF_HAVE_PYTHON
|
||||
#ifdef HAVE_PYTHON
|
||||
python_shutdown();
|
||||
#endif
|
||||
#ifdef PROF_HAVE_C
|
||||
#ifdef HAVE_C
|
||||
c_shutdown();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user