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@214 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
option.c
diff --git
a/ltt/branches/poly/lttv/option.c
b/ltt/branches/poly/lttv/option.c
index 3a95a4af9b001c88bcbd475fa5cc8b3ea678df12..4c45d2ab97d21cbd19ab1b0c13ca63750cc3d78b 100644
(file)
--- a/
ltt/branches/poly/lttv/option.c
+++ b/
ltt/branches/poly/lttv/option.c
@@
-1,15
+1,16
@@
-#include <popt.h>
+#include <popt.h>
+#include <glib.h>
#include <lttv/option.h>
typedef struct _LttvOption {
#include <lttv/option.h>
typedef struct _LttvOption {
- c
onst c
har *long_name;
+ char *long_name;
char char_name;
char char_name;
- c
onst c
har *description;
- c
onst c
har *arg_description;
+ char *description;
+ char *arg_description;
LttvOptionType t;
gpointer p;
LttvOptionType t;
gpointer p;
- LttvOptionHook h;
+ LttvOptionHook h
ook
;
gpointer hook_data;
} LttvOption;
gpointer hook_data;
} LttvOption;
@@
-43,7
+44,7
@@
void lttv_option_destroy()
{
LttvOption option;
{
LttvOption option;
- GPtrArray list = g_ptr_array_new();
+ GPtrArray
*
list = g_ptr_array_new();
int i;
int i;
@@
-76,7
+77,7
@@
void lttv_option_add(const char *long_name, const char char_name,
option->arg_description = g_strdup(arg_description);
option->t = t;
option->p = p;
option->arg_description = g_strdup(arg_description);
option->t = t;
option->p = p;
- option->h = h;
+ option->h
ook
= h;
option->hook_data = hook_data;
g_hash_table_insert(options, option->long_name, option);
}
option->hook_data = hook_data;
g_hash_table_insert(options, option->long_name, option);
}
@@
-105,7
+106,7
@@
static struct poptOption endOption = { NULL, '\0', 0, NULL, 0};
static void
build_popts(GPtrArray **plist, struct poptOption **ppopts, poptContext *pc,
static void
build_popts(GPtrArray **plist, struct poptOption **ppopts, poptContext *pc,
- int arg
v
, char **argv)
+ int arg
c
, char **argv)
{
LttvOption *option;
{
LttvOption *option;
@@
-152,7
+153,7
@@
destroy_popts(GPtrArray **plist, struct poptOption **ppopts, poptContext *pc)
{
g_ptr_array_free(*plist, TRUE); *plist = NULL;
g_free(*ppopts); *ppopts = NULL;
{
g_ptr_array_free(*plist, TRUE); *plist = NULL;
g_free(*ppopts); *ppopts = NULL;
- poptFreeContext(*c);
+ poptFreeContext(*
p
c);
}
}
This page took
0.023654 seconds
and
4
git commands to generate.