1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

Converted old Ruby interface to new plugin system (Ruby plugin still NOT ok!)

This commit is contained in:
Sebastien Helleu
2005-10-23 11:33:39 +00:00
parent cde66456fb
commit f7872a9dd8
10 changed files with 1054 additions and 720 deletions
+1
View File
@@ -344,6 +344,7 @@ AC_OUTPUT([Makefile
src/plugins/scripts/Makefile
src/plugins/scripts/perl/Makefile
src/plugins/scripts/python/Makefile
src/plugins/scripts/ruby/Makefile
src/gui/Makefile
src/gui/curses/Makefile
src/gui/wxwidgets/Makefile
+15
View File
@@ -933,6 +933,21 @@ weechat_ascii_strcasecmp (t_weechat_plugin *plugin,
return ascii_strcasecmp (string1, string2);
}
/*
* weechat_ascii_strncasecmp: locale and case independent string comparison
* with max length
*/
int
weechat_ascii_strncasecmp (t_weechat_plugin *plugin,
char *string1, char *string2, int max)
{
/* make gcc happy */
(void) plugin;
return ascii_strncasecmp (string1, string2, max);
}
/*
* weechat_explode_string: explode a string
*/
+1 -1
View File
@@ -31,7 +31,7 @@ python_dir = python
endif
if PLUGIN_RUBY
#ruby_dir = ruby
ruby_dir = ruby
endif
SUBDIRS = . $(perl_dir) $(python_dir) $(ruby_dir)
File diff suppressed because it is too large Load Diff
+2
View File
@@ -116,6 +116,7 @@ struct t_weechat_plugin
existing plugins */
int (*ascii_strcasecmp) (t_weechat_plugin *, char *, char *);
int (*ascii_strncasecmp) (t_weechat_plugin *, char *, char *, int);
char **(*explode_string) (t_weechat_plugin *, char *, char *, int, int *);
void (*free_exploded_string) (t_weechat_plugin *, char **);
int (*mkdir_home) (t_weechat_plugin *, char *);
@@ -149,6 +150,7 @@ struct t_weechat_plugin
/* general useful functions */
extern int weechat_ascii_strcasecmp (t_weechat_plugin *,char *, char *);
extern int weechat_ascii_strncasecmp (t_weechat_plugin *,char *, char *, int);
extern char **weechat_explode_string (t_weechat_plugin *, char *, char *, int, int *);
extern void weechat_free_exploded_string (t_weechat_plugin *, char **);
extern int weechat_plugin_mkdir_home (t_weechat_plugin *, char *);
+1
View File
@@ -344,6 +344,7 @@ AC_OUTPUT([Makefile
src/plugins/scripts/Makefile
src/plugins/scripts/perl/Makefile
src/plugins/scripts/python/Makefile
src/plugins/scripts/ruby/Makefile
src/gui/Makefile
src/gui/curses/Makefile
src/gui/wxwidgets/Makefile
+15
View File
@@ -933,6 +933,21 @@ weechat_ascii_strcasecmp (t_weechat_plugin *plugin,
return ascii_strcasecmp (string1, string2);
}
/*
* weechat_ascii_strncasecmp: locale and case independent string comparison
* with max length
*/
int
weechat_ascii_strncasecmp (t_weechat_plugin *plugin,
char *string1, char *string2, int max)
{
/* make gcc happy */
(void) plugin;
return ascii_strncasecmp (string1, string2, max);
}
/*
* weechat_explode_string: explode a string
*/
+1 -1
View File
@@ -31,7 +31,7 @@ python_dir = python
endif
if PLUGIN_RUBY
#ruby_dir = ruby
ruby_dir = ruby
endif
SUBDIRS = . $(perl_dir) $(python_dir) $(ruby_dir)
File diff suppressed because it is too large Load Diff
+2
View File
@@ -116,6 +116,7 @@ struct t_weechat_plugin
existing plugins */
int (*ascii_strcasecmp) (t_weechat_plugin *, char *, char *);
int (*ascii_strncasecmp) (t_weechat_plugin *, char *, char *, int);
char **(*explode_string) (t_weechat_plugin *, char *, char *, int, int *);
void (*free_exploded_string) (t_weechat_plugin *, char **);
int (*mkdir_home) (t_weechat_plugin *, char *);
@@ -149,6 +150,7 @@ struct t_weechat_plugin
/* general useful functions */
extern int weechat_ascii_strcasecmp (t_weechat_plugin *,char *, char *);
extern int weechat_ascii_strncasecmp (t_weechat_plugin *,char *, char *, int);
extern char **weechat_explode_string (t_weechat_plugin *, char *, char *, int, int *);
extern void weechat_free_exploded_string (t_weechat_plugin *, char **);
extern int weechat_plugin_mkdir_home (t_weechat_plugin *, char *);