projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@225 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
main.c
diff --git
a/ltt/branches/poly/lttv/main.c
b/ltt/branches/poly/lttv/main.c
index 1123af44429bf4d9f6b3fc8566a2ac049a15c311..a1bfcd087726a8f6349d3f4240fea13b0ac3ea7a 100644
(file)
--- a/
ltt/branches/poly/lttv/main.c
+++ b/
ltt/branches/poly/lttv/main.c
@@
-41,10
+41,6
@@
static void lttv_module_option(void *hook_data);
static void lttv_module_path_option(void *hook_data);
static void lttv_module_path_option(void *hook_data);
-#ifdef MEMDEBUG
-extern struct GMemVTable *glib_mem_profiler_table;
-#endif
-
/* Since everything is done in modules, the main program only takes care
of the infrastructure. */
/* Since everything is done in modules, the main program only takes care
of the infrastructure. */
@@
-59,6
+55,9
@@
int main(int argc, char **argv) {
g_mem_profile();
#endif
g_mem_profile();
#endif
+ g_type_init();
+ //g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
+
attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL));
before_options = lttv_hooks_new();
attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL));
before_options = lttv_hooks_new();
@@
-101,7
+100,9
@@
int main(int argc, char **argv) {
lttv_module_path_option, NULL);
lttv_hooks_call(before_options, NULL);
lttv_module_path_option, NULL);
lttv_hooks_call(before_options, NULL);
+ lttv_option_parse(argc, argv);
lttv_hooks_call(after_options, NULL);
lttv_hooks_call(after_options, NULL);
+
lttv_hooks_call(before_main, NULL);
lttv_hooks_call(after_main, NULL);
lttv_hooks_call(before_main, NULL);
lttv_hooks_call(after_main, NULL);
@@
-124,7
+125,7
@@
int main(int argc, char **argv) {
LttvAttribute *lttv_global_attributes()
{
LttvAttribute *lttv_global_attributes()
{
- return attributes;
+ return
(LttvAttribute*)
attributes;
}
}
This page took
0.022931 seconds
and
4
git commands to generate.