Commit 7ff47764 authored by Morten Welinder's avatar Morten Welinder

House cleaning.

parent 6d00c585
......@@ -112,110 +112,6 @@ plugins/xml_sax/xml-sax-read.c
schemas/gnumeric-dialogs.schemas.in
schemas/gnumeric-general.schemas.in
schemas/gnumeric-plugins.schemas.in
src/cut-n-paste-code/goffice/app/error-info.c
src/cut-n-paste-code/goffice/app/error-info.h
src/cut-n-paste-code/goffice/app/file.c
src/cut-n-paste-code/goffice/app/file.h
src/cut-n-paste-code/goffice/app/file-priv.h
src/cut-n-paste-code/goffice/app/module-plugin-defs.h
src/cut-n-paste-code/goffice/app/go-plugin.c
src/cut-n-paste-code/goffice/app/go-plugin.h
src/cut-n-paste-code/goffice/app/go-plugin-loader.c
src/cut-n-paste-code/goffice/app/go-plugin-loader.h
src/cut-n-paste-code/goffice/app/go-plugin-loader-module.c
src/cut-n-paste-code/goffice/app/go-plugin-loader-module.h
src/cut-n-paste-code/goffice/app/go-plugin-service.c
src/cut-n-paste-code/goffice/app/go-plugin-service.h
src/cut-n-paste-code/goffice/app/go-plugin-service-impl.h
src/cut-n-paste-code/goffice/graph/go-data.c
src/cut-n-paste-code/goffice/graph/gog-axis.c
src/cut-n-paste-code/goffice/graph/gog-axis-prefs.glade
src/cut-n-paste-code/goffice/graph/gog-chart.c
src/cut-n-paste-code/goffice/graph/gog-control-foocanvas.c
src/cut-n-paste-code/goffice/graph/gog-data-allocator.c
src/cut-n-paste-code/goffice/graph/gog-error-bar.c
src/cut-n-paste-code/goffice/graph/gog-error-bar-prefs.glade
src/cut-n-paste-code/goffice/graph/gog-graph.c
src/cut-n-paste-code/goffice/graph/gog-guru.c
src/cut-n-paste-code/goffice/graph/gog-guru.glade
src/cut-n-paste-code/goffice/graph/gog-label.c
src/cut-n-paste-code/goffice/graph/gog-legend.c
src/cut-n-paste-code/goffice/graph/gog-object.c
src/cut-n-paste-code/goffice/graph/gog-plot.c
src/cut-n-paste-code/goffice/graph/gog-plot-engine.c
src/cut-n-paste-code/goffice/graph/gog-renderer.c
src/cut-n-paste-code/goffice/graph/gog-renderer-pixbuf.c
src/cut-n-paste-code/goffice/graph/gog-series.c
src/cut-n-paste-code/goffice/graph/gog-style.c
src/cut-n-paste-code/goffice/graph/gog-styled-object.c
src/cut-n-paste-code/goffice/graph/gog-style-prefs.glade
src/cut-n-paste-code/goffice/graph/gog-theme.c
src/cut-n-paste-code/goffice/graph/gog-view.c
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/gog-1.5d.c
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/gog-barcol.c
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/gog-barcol-prefs.c
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/gog-barcol-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/gog-line.c
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/plugin.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_boxes/gog-boxplot.c
src/cut-n-paste-code/goffice/graph/plugins/plot_boxes/gog-boxplot-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_boxes/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_boxes/plugin.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/gog-pie.c
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/gog-pie-prefs.c
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/gog-pie-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/gog-pie-series.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/gog-ring-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/plugin.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_radar/gog-radar.c
src/cut-n-paste-code/goffice/graph/plugins/plot_radar/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_radar/plugin.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_surface/gog-contour-prefs.c
src/cut-n-paste-code/goffice/graph/plugins/plot_surface/gog-contour-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_surface/gog-surface.c
src/cut-n-paste-code/goffice/graph/plugins/plot_surface/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_surface/plugin.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_xy/gog-bubble-prefs.glade
src/cut-n-paste-code/goffice/graph/plugins/plot_xy/gog-xy.c
src/cut-n-paste-code/goffice/graph/plugins/plot_xy/plot-types.xml.in
src/cut-n-paste-code/goffice/graph/plugins/plot_xy/plugin.xml.in
src/cut-n-paste-code/goffice/gui-utils/go-color-palette.c
src/cut-n-paste-code/goffice/gui-utils/go-dock-item.c
src/cut-n-paste-code/goffice/gui-utils/go-dock-item-grip.c
src/cut-n-paste-code/goffice/gui-utils/go-format-sel.c
src/cut-n-paste-code/goffice/gui-utils/go-format-sel.glade
src/cut-n-paste-code/goffice/gui-utils/go-format-sel.h
src/cut-n-paste-code/goffice/gui-utils/go-font-sel.c
src/cut-n-paste-code/goffice/gui-utils/go-font-sel.glade
src/cut-n-paste-code/goffice/gui-utils/go-gui-utils.c
src/cut-n-paste-code/goffice/utils/datetime.c
src/cut-n-paste-code/goffice/utils/datetime.h
src/cut-n-paste-code/goffice/utils/format.c
src/cut-n-paste-code/goffice/utils/format.h
src/cut-n-paste-code/goffice/utils/format-impl.h
src/cut-n-paste-code/goffice/utils/formats.c
src/cut-n-paste-code/goffice/utils/go-color.c
src/cut-n-paste-code/goffice/utils/go-file.c
src/cut-n-paste-code/goffice/utils/go-font.c
src/cut-n-paste-code/goffice/utils/go-format.c
src/cut-n-paste-code/goffice/utils/go-format-match.c
src/cut-n-paste-code/goffice/utils/go-format-match.h
src/cut-n-paste-code/goffice/utils/go-glib-extras.c
src/cut-n-paste-code/goffice/utils/go-glib-extras.h
src/cut-n-paste-code/goffice/utils/go-gradient.c
src/cut-n-paste-code/goffice/utils/go-libxml-extras.c
src/cut-n-paste-code/goffice/utils/go-libxml-extras.h
src/cut-n-paste-code/goffice/utils/go-line.c
src/cut-n-paste-code/goffice/utils/go-locale.c
src/cut-n-paste-code/goffice/utils/go-marker.c
src/cut-n-paste-code/goffice/utils/go-marshalers.list
src/cut-n-paste-code/goffice/utils/go-math.c
src/cut-n-paste-code/goffice/utils/go-pattern.c
src/cut-n-paste-code/goffice/utils/numbers.h
src/cut-n-paste-code/goffice/utils/regutf8.c
src/cut-n-paste-code/goffice/utils/regutf8.h
src/dialogs/advanced-filter.glade
src/dialogs/anova-one.glade
src/dialogs/anova-two.glade
......@@ -345,10 +241,7 @@ src/widgets/gnumeric-cell-renderer-expr-entry.c
src/widgets/gnumeric-cell-renderer-text.c
src/widgets/gnumeric-cell-renderer-toggle.c
src/widgets/gnumeric-expr-entry.c
src/widgets/gnumeric-optionmenu.c
src/widgets/widget-charmap-selector.c
src/widgets/widget-font-selector.c
src/widgets/widget-locale-selector.c
src/application.c
src/bonobo-io.c
src/cell.c
......
......@@ -76,6 +76,43 @@ gnm_usr_plugin_dir (void)
return gnm_usr_dir (PLUGIN_SUFFIX);
}
int
gnumeric_regcomp_XL (go_regex_t *preg, char const *pattern, int cflags)
{
GString *res = g_string_new (NULL);
int retval;
while (*pattern) {
switch (*pattern) {
case '~':
pattern++;
if (*pattern == '*')
g_string_append (res, "\\*");
else
g_string_append_c (res, *pattern);
if (*pattern) pattern++;
break;
case '*':
g_string_append (res, ".*");
pattern++;
break;
case '?':
g_string_append_c (res, '.');
pattern++;
break;
default:
pattern = go_regexp_quote1 (res, pattern);
}
}
retval = go_regcomp (preg, res->str, cflags);
g_string_free (res, TRUE);
return retval;
}
#if 0
static const char *
color_to_string (PangoColor color)
......
......@@ -2,6 +2,7 @@
#define GNUMERIC_UTILS_H
#include <goffice/utils/go-glib-extras.h>
#include <goffice/utils/regutf8.h>
/* System and user paths */
char *gnm_sys_lib_dir (char const *subdir);
......@@ -11,4 +12,6 @@ char *gnm_sys_plugin_dir (void);
char *gnm_usr_dir (char const *subdir);
char *gnm_usr_plugin_dir (void);
int gnumeric_regcomp_XL (go_regex_t *preg, char const *pattern, int cflags);
#endif /* GNUMERIC_UTILS_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment