| 
version 1.3.2.1, 2010/03/22 18:25:07
 | 
version 1.4, 2010/04/16 13:25:27
 | 
| 
 Line 142  inline int io_MakeArray(char * __restrict psArgs, cons
 | 
 Line 142  inline int io_MakeArray(char * __restrict psArgs, cons
 | 
 |   * @psLine = Text string | 
   * @psLine = Text string | 
 |   * return: 0 nothing to do; 1 successful unquoted string | 
   * return: 0 nothing to do; 1 successful unquoted string | 
 |  */ | 
  */ | 
| inline int io_UnquotStr(u_char *psLine); | inline int io_UnquotStr(unsigned char *psLine); | 
 |  /* | 
  /* | 
 |   * io_LTrimStr() Remove left whitespaces from text string | 
   * io_LTrimStr() Remove left whitespaces from text string | 
 |   * @psLine = Text string | 
   * @psLine = Text string | 
 |   * return: 0 nothing to do; !=0 Removed bytes | 
   * return: 0 nothing to do; !=0 Removed bytes | 
 |  */ | 
  */ | 
| inline int io_LTrimStr(u_char *psLine); | inline int io_LTrimStr(unsigned char *psLine); | 
 |  /* | 
  /* | 
 |   * io_RTrimStr() Remove right whitespaces from text string | 
   * io_RTrimStr() Remove right whitespaces from text string | 
 |   * @psLine = Text string | 
   * @psLine = Text string | 
 |   * return: 0 nothing to do; !=0 Removed bytes | 
   * return: 0 nothing to do; !=0 Removed bytes | 
 |  */ | 
  */ | 
| inline int io_RTrimStr(u_char *psLine); | inline int io_RTrimStr(unsigned char *psLine); | 
 |  /* | 
  /* | 
 |   * io_TrimStr() Remove left and right whitespaces from text string | 
   * io_TrimStr() Remove left and right whitespaces from text string | 
 |   * @psLine = Text string | 
   * @psLine = Text string | 
 |   * return: 0 nothing to do; !=0 Removed bytes | 
   * return: 0 nothing to do; !=0 Removed bytes | 
 |  */ | 
  */ | 
| inline int io_TrimStr(u_char *psLine); | inline int io_TrimStr(unsigned char *psLine); | 
|   | /* | 
|   |  * io_Char2Hex() Convert from Char string to Hex string | 
|   |  * @psLine = Text string | 
|   |  * @lineLen = Length of Text string | 
|   |  * return: NULL nothing to do or error; !=0 Allocated new converted string(must be free) | 
|   | */ | 
|   | inline char *io_Char2Hex(unsigned char *psLine, int lineLen); | 
|   | /* | 
|   |  * io_Hex2Char() Convert from Hex string to Char string | 
|   |  * @psLine = Text string | 
|   |  * @lineLen = Length of Text string | 
|   |  * return: NULL nothing to do or error; !=0 Allocated new converted string(must be free) | 
|   | */ | 
|   | inline char *io_Hex2Char(unsigned char *psLine, int lineLen); | 
 |   | 
   | 
 |  /* | 
  /* | 
 |   * ioURLGet() Parse and get data from input URL | 
   * ioURLGet() Parse and get data from input URL | 
| 
 Line 243  int io_Cmd_Exit(void *cmds, FILE *out, char ** __restr
 | 
 Line 257  int io_Cmd_Exit(void *cmds, FILE *out, char ** __restr
 | 
 |                                          !strncmp(CMDS[i].cmd_name, text, len)) \ | 
                                          !strncmp(CMDS[i].cmd_name, text, len)) \ | 
 |                                  return strdup(CMDS[i].cmd_name); \ | 
                                  return strdup(CMDS[i].cmd_name); \ | 
 |                  } \ | 
                  } \ | 
 |   | 
                  return NULL; \ | 
 |   | 
          } | 
 |   | 
   | 
 |   | 
  /* | 
 |   | 
   * io_Make_Comp_Args - Declare helper function for Arguments completion | 
 |   | 
  */ | 
 |   | 
  #define IO_MAKE_COMP_ARGS(FUNC, ARGS)   \ | 
 |   | 
          char *FUNC(const char *text __attribute__((unused)), int state) \ | 
 |   | 
          { \ | 
 |   | 
                  while (ARGS[state]) \ | 
 |   | 
                          return strdup(ARGS[state]); \ | 
 |                  return NULL; \ | 
                  return NULL; \ | 
 |          } | 
          } | 
 |   | 
   |