mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-18 18:22:07 +08:00
fix gtk/gnome compilation of gmdb, export table fixes, more dissection in debug tab.
This commit is contained in:
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
|
@@ -2,8 +2,8 @@ bin_PROGRAMS = gmdb
|
||||
gmdb_SOURCES = debug.c file.c form.c gtkhlist.c info.c macro.c main.c \
|
||||
module.c query.c report.c sql.c table.c table_data.c table_def.c \
|
||||
table_export.c util.c
|
||||
LIBS = `gnome-config gnome gnomeui --libs` @LEXLIB@
|
||||
INCLUDES = -I$(top_srcdir)/include `gnome-config gnome gnomeui --cflags`
|
||||
LIBS = $(GTK_LIBS) @LEXLIB@
|
||||
INCLUDES = -I$(top_srcdir)/include $(GTK_CFLAGS)
|
||||
LDADD = ../libmdb/libmdb.la
|
||||
if SQL
|
||||
gmdb_LDADD = ../libmdb/libmdb.la ../sql/libmdbsql.la
|
||||
|
118
src/gmdb/debug.c
118
src/gmdb/debug.c
@@ -45,6 +45,23 @@ GMdbValStr table_types[] = {
|
||||
{ 0x53, "User Table" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
GMdbValStr column_types[] = {
|
||||
{ 0x01, "boolean" },
|
||||
{ 0x02, "byte" },
|
||||
{ 0x03, "int" },
|
||||
{ 0x04, "longint" },
|
||||
{ 0x05, "money" },
|
||||
{ 0x06, "float" },
|
||||
{ 0x07, "double" },
|
||||
{ 0x08, "short datetime" },
|
||||
{ 0x09, "binary" },
|
||||
{ 0x0a, "text" },
|
||||
{ 0x0b, "OLE" },
|
||||
{ 0x0c, "memo/hyperlink" },
|
||||
{ 0x0d, "Unknown" },
|
||||
{ 0x0f, "GUID" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
GMdbValStr object_types[] = {
|
||||
{ 0x00, "Database Definition Page" },
|
||||
{ 0x01, "Data Page" },
|
||||
@@ -63,6 +80,9 @@ int start_col, end_col;
|
||||
int i;
|
||||
|
||||
range = gtk_ctree_node_get_row_data(tree, GTK_CTREE_NODE(node));
|
||||
/* container node or otherwise non-represented in the data */
|
||||
if (range->start_byte == -1 || range->end_byte == -1) return;
|
||||
|
||||
start_row = range->start_byte / 16;
|
||||
end_row = range->end_byte / 16;
|
||||
start_col = 8 + (range->start_byte % 16) * 3;
|
||||
@@ -100,6 +120,9 @@ int start_col, end_col;
|
||||
int i;
|
||||
|
||||
range = gtk_ctree_node_get_row_data(tree, GTK_CTREE_NODE(node));
|
||||
/* container node or otherwise non-represented in the data */
|
||||
if (range->start_byte == -1 || range->end_byte == -1) return;
|
||||
|
||||
start_row = range->start_byte / 16;
|
||||
end_row = range->end_byte / 16;
|
||||
start_col = 8 + (range->start_byte % 16) * 3;
|
||||
@@ -232,6 +255,31 @@ l+=c[0];
|
||||
return l;
|
||||
}
|
||||
void
|
||||
gmdb_debug_dissect_column(GMdbDebugTab *dbug, GtkCTreeNode *parent, char *fbuf, int offset)
|
||||
{
|
||||
gchar str[100];
|
||||
GtkCTreeNode *node;
|
||||
|
||||
snprintf(str, 100, "Column Type: 0x%02x (%s)", fbuf[offset],
|
||||
gmdb_val_to_str(column_types, fbuf[offset]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset, offset);
|
||||
snprintf(str, 100, "Column #: %d", get_uint16(&fbuf[offset+1]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+1, offset+2);
|
||||
snprintf(str, 100, "VarCol Offset: %d", get_uint16(&fbuf[offset+3]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+3, offset+4);
|
||||
snprintf(str, 100, "Unknown", get_uint32(&fbuf[offset+5]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+5, offset+8);
|
||||
snprintf(str, 100, "Unknown", get_uint32(&fbuf[offset+9]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+9, offset+12);
|
||||
snprintf(str, 100, "Variable Column: %s",
|
||||
fbuf[offset+13] & 0x01 ? "No" : "Yes");
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+13, offset+13);
|
||||
snprintf(str, 100, "Fixed Col Offset: %d", get_uint16(&fbuf[offset+14]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+14, offset+15);
|
||||
snprintf(str, 100, "Column Length: %d", get_uint16(&fbuf[offset+16]));
|
||||
gmdb_debug_add_item(dbug, parent, str, offset+16, offset+17);
|
||||
}
|
||||
void
|
||||
gmdb_debug_dissect_index1(GMdbDebugTab *dbug, GtkCTreeNode *parent, char *fbuf, int offset)
|
||||
{
|
||||
gchar str[100];
|
||||
@@ -260,9 +308,9 @@ void
|
||||
gmdb_debug_dissect_tabledef_pg(GMdbDebugTab *dbug, char *fbuf, int offset, int len)
|
||||
{
|
||||
gchar str[100];
|
||||
guint32 i, num_idx;
|
||||
guint32 i, num_idx, num_cols;
|
||||
int newbase;
|
||||
GtkCTreeNode *node;
|
||||
GtkCTreeNode *node, *container;
|
||||
|
||||
snprintf(str, 100, "Next TDEF Page: 0x%06x (%lu)",
|
||||
get_uint32(&fbuf[offset+4]), get_uint32(&fbuf[offset+4]));
|
||||
@@ -276,8 +324,8 @@ GtkCTreeNode *node;
|
||||
snprintf(str, 100, "Table Type: 0x%02x (%s)", fbuf[offset+20],
|
||||
gmdb_val_to_str(table_types, fbuf[offset+20]));
|
||||
gmdb_debug_add_item(dbug, NULL, str, offset+20, offset+20);
|
||||
snprintf(str, 100, "# of Columns: %u",
|
||||
get_uint16(&fbuf[offset+21]));
|
||||
num_cols = get_uint16(&fbuf[offset+21]);
|
||||
snprintf(str, 100, "# of Columns: %u", num_cols);
|
||||
gmdb_debug_add_item(dbug, NULL, str, offset+21, offset+22);
|
||||
snprintf(str, 100, "# of VarCols: %u",
|
||||
get_uint16(&fbuf[offset+23]));
|
||||
@@ -295,12 +343,37 @@ GtkCTreeNode *node;
|
||||
gmdb_debug_add_item(dbug, NULL, str, offset+31, offset+34);
|
||||
gmdb_debug_add_page_ptr(dbug, NULL, fbuf, "Used Pages Pointer", offset+35);
|
||||
|
||||
container = gmdb_debug_add_item(dbug, NULL, "Index Entries", -1, -1);
|
||||
for (i=0;i<num_idx;i++) {
|
||||
snprintf(str, 100, "Index %d", i);
|
||||
node = gmdb_debug_add_item(dbug, NULL, str, offset+43+(8*i), offset+43+(8*i)+8);
|
||||
snprintf(str, 100, "Index %d", i+1);
|
||||
node = gmdb_debug_add_item(dbug, container, str, offset+43+(8*i), offset+43+(8*i)+7);
|
||||
gmdb_debug_dissect_index1(dbug, node, fbuf, offset+43+(8*i));
|
||||
}
|
||||
newbase = offset + 43 + (8*i);
|
||||
|
||||
container = gmdb_debug_add_item(dbug, NULL, "Column Data", -1, -1);
|
||||
for (i=0;i<num_cols;i++) {
|
||||
snprintf(str, 100, "Column %d", i+1);
|
||||
node = gmdb_debug_add_item(dbug, container, str, newbase + (18*i), newbase + (18*i) + 17);
|
||||
gmdb_debug_dissect_column(dbug, node, fbuf, newbase + (18*i));
|
||||
}
|
||||
|
||||
newbase += 18*num_cols;
|
||||
|
||||
container = gmdb_debug_add_item(dbug, NULL, "Column Names", -1, -1);
|
||||
for (i=0;i<num_cols;i++) {
|
||||
char *tmpstr;
|
||||
int namelen;
|
||||
|
||||
namelen = fbuf[newbase];
|
||||
tmpstr = malloc(namelen + 1);
|
||||
strncpy(tmpstr, &fbuf[newbase+1], namelen);
|
||||
tmpstr[namelen]=0;
|
||||
snprintf(str, 100, "Column %d: %s", i+1, tmpstr);
|
||||
free(tmpstr);
|
||||
node = gmdb_debug_add_item(dbug, container, str, newbase + 1, newbase + namelen);
|
||||
newbase += namelen + 1;
|
||||
}
|
||||
}
|
||||
void gmdb_debug_dissect(GMdbDebugTab *dbug, char *fbuf, int offset, int len)
|
||||
{
|
||||
@@ -328,16 +401,30 @@ gchar str[100];
|
||||
}
|
||||
}
|
||||
|
||||
gmdb_clear_node_cb(GtkWidget *ctree, GtkCTreeNode *node, gpointer data)
|
||||
{
|
||||
gpointer rowdata;
|
||||
|
||||
rowdata = gtk_ctree_node_get_row_data(GTK_CTREE(ctree), node);
|
||||
g_free(rowdata);
|
||||
gtk_ctree_remove_node(GTK_CTREE(ctree), node);
|
||||
}
|
||||
|
||||
void
|
||||
gmdb_debug_clear(GMdbDebugTab *dbug)
|
||||
{
|
||||
GtkCTreeNode *node;
|
||||
gpointer data;
|
||||
|
||||
/* clear the tree */
|
||||
gtk_ctree_post_recursive(dbug->ctree, NULL, gmdb_clear_node_cb, NULL);
|
||||
|
||||
/*
|
||||
node = gtk_ctree_node_nth(GTK_CTREE(dbug->ctree), 0);
|
||||
data = gtk_ctree_node_get_row_data(GTK_CTREE(dbug->ctree), node);
|
||||
g_free(data);
|
||||
gtk_ctree_remove_node(GTK_CTREE(dbug->ctree), node);
|
||||
*/
|
||||
|
||||
/* call delete text last because remove_node fires unselect signal */
|
||||
gtk_editable_delete_text(GTK_EDITABLE(dbug->textbox),0, -1);
|
||||
@@ -388,6 +475,7 @@ GtkWidget *hbox;
|
||||
GtkWidget *hpane;
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *scroll;
|
||||
GtkWidget *scroll2;
|
||||
GdkPixmap *pixmap;
|
||||
GdkBitmap *mask;
|
||||
GdkColormap *cmap;
|
||||
@@ -433,9 +521,15 @@ GdkColormap *cmap;
|
||||
gtk_widget_show(hpane);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hpane, TRUE, TRUE, 10);
|
||||
|
||||
scroll = gtk_scrolled_window_new(NULL,NULL);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
|
||||
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
|
||||
gtk_widget_show (scroll);
|
||||
gtk_container_add(GTK_CONTAINER(hpane), scroll);
|
||||
|
||||
dbug->ctree = gtk_ctree_new (1, 0);
|
||||
gtk_widget_show (dbug->ctree);
|
||||
gtk_container_add (GTK_CONTAINER (hpane), dbug->ctree);
|
||||
gtk_container_add (GTK_CONTAINER (scroll), dbug->ctree);
|
||||
|
||||
gtk_signal_connect ( GTK_OBJECT (dbug->ctree),
|
||||
"tree-select-row", GTK_SIGNAL_FUNC (gmdb_debug_select_cb), dbug);
|
||||
@@ -449,15 +543,15 @@ GdkColormap *cmap;
|
||||
gtk_widget_show (frame);
|
||||
gtk_container_add (GTK_CONTAINER (hpane), frame);
|
||||
|
||||
scroll = gtk_scrolled_window_new(NULL,NULL);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
|
||||
scroll2 = gtk_scrolled_window_new(NULL,NULL);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll2),
|
||||
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
gtk_widget_show (scroll);
|
||||
gtk_container_add(GTK_CONTAINER(frame), scroll);
|
||||
gtk_widget_show (scroll2);
|
||||
gtk_container_add(GTK_CONTAINER(frame), scroll2);
|
||||
|
||||
dbug->textbox = gtk_text_new (NULL,NULL);
|
||||
gtk_widget_show (dbug->textbox);
|
||||
gtk_container_add(GTK_CONTAINER(scroll), dbug->textbox);
|
||||
gtk_container_add(GTK_CONTAINER(scroll2), dbug->textbox);
|
||||
|
||||
/* set selection callback for list */
|
||||
//gtk_signal_connect ( GTK_OBJECT (table_hlist),
|
||||
|
@@ -9,12 +9,40 @@ typedef struct GMdbTableExportDialog {
|
||||
GtkWidget *lineterm;
|
||||
GtkWidget *colsep;
|
||||
GtkWidget *quote;
|
||||
GtkWidget *quotechar;
|
||||
GtkWidget *headers;
|
||||
GtkWidget *filesel;
|
||||
} GMdbTableExportDialog;
|
||||
|
||||
GMdbTableExportDialog *export;
|
||||
|
||||
#define COMMA "Comma (,)"
|
||||
#define TAB "Tab"
|
||||
#define SPACE "Space"
|
||||
#define COLON "Colon (:)"
|
||||
#define SEMICOLON "Semicolon (;)"
|
||||
#define PIPE "Pipe (|)"
|
||||
|
||||
#define LF "Unix (linefeed only)"
|
||||
#define CR "Mac (carriage return only)"
|
||||
#define CRLF "Windows (CR + LF)"
|
||||
|
||||
#define ALWAYS "Always"
|
||||
#define NEVER "Never"
|
||||
#define AUTOMAT "Automatic (where necessary)"
|
||||
|
||||
void
|
||||
print_quote(FILE *outfile, int need_quote, char quotechar, char *colsep, char *str)
|
||||
{
|
||||
if (need_quote==1) {
|
||||
fprintf(outfile, "%c", quotechar);
|
||||
} else if (need_quote==-1) {
|
||||
if (strstr(str,colsep)) {
|
||||
fprintf(outfile, "%c", quotechar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
gmdb_export_file_cb(GtkWidget *selector, GMdbTableExportDialog *export)
|
||||
{
|
||||
@@ -24,9 +52,47 @@ gchar *bound_data[256];
|
||||
MdbTableDef *table;
|
||||
MdbColumn *col;
|
||||
int i;
|
||||
int need_headers = 0;
|
||||
int need_quote = 0;
|
||||
gchar delimiter[11];
|
||||
gchar quotechar;
|
||||
gchar lineterm[5];
|
||||
gchar *str;
|
||||
int rows=0;
|
||||
char msg[100];
|
||||
|
||||
|
||||
str = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(export->colsep)->entry));
|
||||
if (!strcmp(str,COMMA)) { strcpy(delimiter, ","); }
|
||||
else if (!strcmp(str,TAB)) { strcpy(delimiter, "\t"); }
|
||||
else if (!strcmp(str,SPACE)) { strcpy(delimiter, " "); }
|
||||
else if (!strcmp(str,COLON)) { strcpy(delimiter, ":"); }
|
||||
else if (!strcmp(str,SEMICOLON)) { strcpy(delimiter, ";"); }
|
||||
else if (!strcmp(str,PIPE)) { strcpy(delimiter, "|"); }
|
||||
else {
|
||||
strncpy(delimiter,str, 10);
|
||||
delimiter[10]='\0';
|
||||
}
|
||||
|
||||
str = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(export->lineterm)->entry));
|
||||
if (!strcmp(str,LF)) { strcpy(lineterm, "\n"); }
|
||||
else if (!strcmp(str,CR)) { strcpy(lineterm, "\r"); }
|
||||
else if (!strcmp(str,CRLF)) { strcpy(lineterm, "\r\n"); }
|
||||
|
||||
str = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(export->quote)->entry));
|
||||
if (!strcmp(str,ALWAYS)) { need_quote = 1; }
|
||||
else if (!strcmp(str,NEVER)) { need_quote = 0; }
|
||||
else if (!strcmp(str,AUTOMAT)) { need_quote = -1; }
|
||||
|
||||
str = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(export->quotechar)->entry));
|
||||
quotechar = str[0];
|
||||
|
||||
/* headers */
|
||||
str = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(export->headers)->entry));
|
||||
if (str && str[0]=='Y') need_headers = 1;
|
||||
|
||||
file_path = gtk_file_selection_get_filename (GTK_FILE_SELECTION(export->filesel));
|
||||
printf("file path %s\n",file_path);
|
||||
// printf("file path %s\n",file_path);
|
||||
if ((outfile=fopen(file_path, "w"))==NULL) {
|
||||
gmdb_info_msg("Unable to Open File!");
|
||||
return;
|
||||
@@ -45,18 +111,25 @@ int i;
|
||||
|
||||
/* display column titles */
|
||||
col=g_ptr_array_index(table->columns,i);
|
||||
if (i>0) fprintf(outfile,"\t");
|
||||
fprintf(outfile,"%s", col->name);
|
||||
if (need_headers) {
|
||||
if (i>0) fprintf(outfile,delimiter);
|
||||
print_quote(outfile, need_quote, quotechar, delimiter, col->name);
|
||||
fprintf(outfile,"%s", col->name);
|
||||
print_quote(outfile, need_quote, quotechar, delimiter, col->name);
|
||||
}
|
||||
}
|
||||
fprintf(outfile,"\n");
|
||||
if (need_headers) fprintf(outfile,lineterm);
|
||||
|
||||
/* fetch those rows! */
|
||||
while(mdb_fetch_row(table)) {
|
||||
for (i=0;i<table->num_cols;i++) {
|
||||
if (i>0) fprintf(outfile,"\t");
|
||||
if (i>0) fprintf(outfile,delimiter);
|
||||
print_quote(outfile, need_quote, quotechar, delimiter, bound_data[i]);
|
||||
fprintf(outfile,"%s", bound_data[i]);
|
||||
print_quote(outfile, need_quote, quotechar, delimiter, bound_data[i]);
|
||||
}
|
||||
fprintf(outfile,"\n");
|
||||
fprintf(outfile,lineterm);
|
||||
rows++;
|
||||
}
|
||||
|
||||
/* free the memory used to bind */
|
||||
@@ -66,6 +139,8 @@ int i;
|
||||
|
||||
fclose(outfile);
|
||||
gtk_widget_destroy(export->dialog);
|
||||
sprintf(msg,"%d Rows exported successfully.\n", rows);
|
||||
gmdb_info_msg(msg);
|
||||
}
|
||||
void
|
||||
gmdb_export_button_cb(GtkWidget *w, GMdbTableExportDialog *export)
|
||||
@@ -126,27 +201,27 @@ GtkWidget *table;
|
||||
table = gtk_table_new(3,2,FALSE);
|
||||
gtk_widget_show(table);
|
||||
|
||||
glist = g_list_append(glist, "Unix (linefeed only)");
|
||||
glist = g_list_append(glist, "Mac (carriage return only)");
|
||||
glist = g_list_append(glist, "Windows (CR + LF)");
|
||||
glist = g_list_append(glist, LF);
|
||||
glist = g_list_append(glist, CR);
|
||||
glist = g_list_append(glist, CRLF);
|
||||
export->lineterm = gmdb_export_add_combo(table, 0, "Line Terminator:",glist);
|
||||
g_list_free(glist);
|
||||
gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(export->lineterm)->entry), FALSE);
|
||||
|
||||
glist = NULL;
|
||||
glist = g_list_append(glist, "Comma (,)");
|
||||
glist = g_list_append(glist, "Tab");
|
||||
glist = g_list_append(glist, "Space");
|
||||
glist = g_list_append(glist, "Colon (:)");
|
||||
glist = g_list_append(glist, "Semicolon (;)");
|
||||
glist = g_list_append(glist, "Pipe (|)");
|
||||
glist = g_list_append(glist, COMMA);
|
||||
glist = g_list_append(glist, TAB);
|
||||
glist = g_list_append(glist, SPACE);
|
||||
glist = g_list_append(glist, COLON);
|
||||
glist = g_list_append(glist, SEMICOLON);
|
||||
glist = g_list_append(glist, PIPE);
|
||||
export->colsep = gmdb_export_add_combo(table, 1, "Column Separator:",glist);
|
||||
g_list_free(glist);
|
||||
|
||||
glist = NULL;
|
||||
glist = g_list_append(glist, "Always");
|
||||
glist = g_list_append(glist, "Never");
|
||||
glist = g_list_append(glist, "Automatic (where necessary)");
|
||||
glist = g_list_append(glist, ALWAYS);
|
||||
glist = g_list_append(glist, NEVER);
|
||||
glist = g_list_append(glist, AUTOMAT);
|
||||
export->quote = gmdb_export_add_combo(table, 2, "Quotes:",glist);
|
||||
g_list_free(glist);
|
||||
gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(export->quote)->entry), FALSE);
|
||||
@@ -155,7 +230,7 @@ GtkWidget *table;
|
||||
glist = g_list_append(glist, "\"");
|
||||
glist = g_list_append(glist, "'");
|
||||
glist = g_list_append(glist, "`");
|
||||
export->quote = gmdb_export_add_combo(table, 3, "Quote Character:",glist);
|
||||
export->quotechar = gmdb_export_add_combo(table, 3, "Quote Character:",glist);
|
||||
g_list_free(glist);
|
||||
|
||||
glist = NULL;
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
@@ -77,13 +79,13 @@ RANLIB = ranlib
|
||||
READLINE_LIBS = -lncurses -lreadline
|
||||
SQL =
|
||||
VERSION = 0.3
|
||||
YACC = bison -y
|
||||
|
||||
lib_LTLIBRARIES = libmdbsql.la
|
||||
libmdbsql_la_SOURCES = mdbsql.c parser.y lexer.l
|
||||
INCLUDES = -I$(top_srcdir)/include `glib-config --cflags`
|
||||
LIBS = `glib-config --libs`
|
||||
LDADD = ../libmdb/libmdb.la
|
||||
YACC = bison -y -d
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
@@ -353,7 +355,6 @@ uninstall-am uninstall all-redirect all-am all installdirs \
|
||||
mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
#YACC = yacc -d
|
||||
|
||||
dist-hook:
|
||||
rm -f $(distdir)/parser.c $(distdir)/parser.h $(distdir)/lexer.c
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
@@ -77,13 +79,13 @@ RANLIB = @RANLIB@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SQL = @SQL@
|
||||
VERSION = @VERSION@
|
||||
YACC = @YACC@
|
||||
|
||||
lib_LTLIBRARIES = libmdbsql.la
|
||||
libmdbsql_la_SOURCES = mdbsql.c parser.y lexer.l
|
||||
INCLUDES = -I$(top_srcdir)/include `glib-config --cflags`
|
||||
LIBS = `glib-config --libs`
|
||||
LDADD = ../libmdb/libmdb.la
|
||||
YACC = bison -y -d
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
@@ -353,7 +355,6 @@ uninstall-am uninstall all-redirect all-am all installdirs \
|
||||
mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
#YACC = yacc -d
|
||||
|
||||
dist-hook:
|
||||
rm -f $(distdir)/parser.c $(distdir)/parser.h $(distdir)/lexer.c
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = i686-pc-linux-gnu
|
||||
AS = @AS@
|
||||
CC = gcc
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
|
||||
GTK_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
||||
HAVE_GNOME =
|
||||
LD = /usr/bin/ld
|
||||
LEX = flex
|
||||
|
@@ -62,6 +62,8 @@ host_triplet = @host@
|
||||
AS = @AS@
|
||||
CC = @CC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
GTK_CFLAGS = @GTK_CFLAGS@
|
||||
GTK_LIBS = @GTK_LIBS@
|
||||
HAVE_GNOME = @HAVE_GNOME@
|
||||
LD = @LD@
|
||||
LEX = @LEX@
|
||||
|
Reference in New Issue
Block a user