Added protocols,lists and events, and fixed some bugs... refer to changelog.

This commit is contained in:
Vatiken 2012-02-12 22:07:50 +00:00
parent 6dadf24c51
commit dd280c1b58
22 changed files with 419 additions and 89 deletions

View file

@ -75,6 +75,24 @@ void smash_tilde(char *str)
*p=' ';
}
/* Parse out the @ character and replace it with the '\t' to work with
* KaVir's protocol snippet */
void parse_at(char *str)
{
char *p = str;
for (; *p; p++)
if (*p == '@')
*p = '\t';
}
void parse_tab(char *str)
{
char *p = str;
for (; *p; p++)
if (*p == '\t')
*p = '@';
}
/* Basic API function to start writing somewhere. 'data' isn't used, but you
* can use it to pass whatever else you may want through it. The improved
* editor patch when updated could use it to pass the old text buffer, for