[Extractor-gtk-cvslog] SF.net SVN: extractor-gtk:[82] trunk/extractor/extractor.c
Extract files from unusual archive formats
Brought to you by:
someone-guy
From: <som...@us...> - 2008-08-22 16:02:08
|
Revision: 82 http://extractor-gtk.svn.sourceforge.net/extractor-gtk/?rev=82&view=rev Author: someone-guy Date: 2008-08-22 16:02:06 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Make globals file-local (static), use proper GType instead of int type. Modified Paths: -------------- trunk/extractor/extractor.c Modified: trunk/extractor/extractor.c =================================================================== --- trunk/extractor/extractor.c 2008-08-22 16:01:44 UTC (rev 81) +++ trunk/extractor/extractor.c 2008-08-22 16:02:06 UTC (rev 82) @@ -17,7 +17,7 @@ #include "formats.h" //! brief NULL-terminated array of supported formats -const fmt_desc_t * const fmts[] = { +static const fmt_desc_t * const fmts[] = { &bloodrayne_fmt, &generic_fmt, &homeworld2_fmt, @@ -48,7 +48,7 @@ }; //! types of columns in the file list table -const int coltypes[] = { +static const GType coltypes[] = { [FNAME_COL] = G_TYPE_STRING, [SIZE_COL] = G_TYPE_UINT64, [OFFSET_COL] = G_TYPE_UINT64, @@ -56,13 +56,13 @@ [PTR_COL] = G_TYPE_POINTER, }; -GtkWidget *dir_button; -GtkListStore *gflist; -GtkWidget *treeview; -GtkTreeSelection *selection; -FILE *input_file = NULL; -file_t *flist = NULL; -const fmt_desc_t *cur_fmt = NULL; +static GtkWidget *dir_button; +static GtkListStore *gflist; +static GtkWidget *treeview; +static GtkTreeSelection *selection; +static FILE *input_file = NULL; +static file_t *flist = NULL; +static const fmt_desc_t *cur_fmt = NULL; /** * \brief extracts the file specified by iter This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |