diff options
Diffstat (limited to 'doc/errcodes.c')
-rw-r--r-- | doc/errcodes.c | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/doc/errcodes.c b/doc/errcodes.c index f0d2d6e94e..93f3a63a25 100644 --- a/doc/errcodes.c +++ b/doc/errcodes.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include <string.h> #include <gnutls/gnutls.h> +#include "common.h" static void main_latex(void); static int main_texinfo (void); @@ -77,28 +78,6 @@ main (int argc, char *argv[]) return 0; } -static char* escape_texi_string( const char* str, char* buffer, int buffer_size) -{ -int i = 0, j = 0; - - -while( str[i] != 0 && j <buffer_size - 1) { - if (str[i]=='_') { - buffer[j++] = '_'; - buffer[j++] = '@'; - buffer[j++] = '-'; - } else { - buffer[j++] = str[i]; - } - i++; -}; - -buffer[j] = 0; - -return buffer; - -} - static int main_texinfo (void) { int i, j; @@ -131,32 +110,6 @@ static int main_texinfo (void) return 0; } -static char* escape_string( const char* str, char* buffer, int buffer_size) -{ -int i = 0, j = 0; - - -while( str[i] != 0 && j <buffer_size - 1) { - if (str[i]=='_') { - buffer[j++] = '\\'; - buffer[j++] = '_'; - buffer[j++] = '\\'; - buffer[j++] = '-'; - } else if (str[i]=='#') { - buffer[j++] = '\\'; - buffer[j++] = '#'; - } else { - buffer[j++] = str[i]; - } - i++; -}; - -buffer[j] = 0; - -return buffer; - -} - static void main_latex(void) { int i, j; |