VirtualBox

Changeset 2152 in kBuild


Ignore:
Timestamp:
Dec 28, 2008 1:43:22 PM (16 years ago)
Author:
bird
Message:

kmk: testcases and lastpos fixes.

Location:
trunk/src/kmk
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/function.c

    r2151 r2152  
    24062406        return math_int_to_variable_buffer (o, 0);
    24072407    }
     2408  else if (funcname[0] == 'l')
     2409    start = haystack_len - 1;
    24082410
    24092411  /* do the searching */
     
    25462548func_translate (char *o, char **argv, const char *funcname UNUSED)
    25472549{
    2548   const unsigned char *str     = argv[0];
    2549   const unsigned char *new_set = argv[1];
    2550   const char          *old_set = argv[2];
     2550  const unsigned char *str     = (const unsigned char *)argv[0];
     2551  const unsigned char *new_set = (const unsigned char *)argv[1];
     2552  const char          *old_set = argv[2] != NULL ? argv[2] : "";
    25512553  char                 trans_tab[1 << CHAR_BIT];
    25522554  int                  i;
     
    48874889  { STRING_SIZE_TUPLE("length"),        1,  1,  1,  func_length},
    48884890  { STRING_SIZE_TUPLE("length-var"),    1,  1,  1,  func_length_var},
    4889   { STRING_SIZE_TUPLE("insert"),        3,  3,  1,  func_insert},
     4891  { STRING_SIZE_TUPLE("insert"),        2,  5,  1,  func_insert},
    48904892  { STRING_SIZE_TUPLE("pos"),           2,  3,  1,  func_pos},
    48914893  { STRING_SIZE_TUPLE("lastpos"),       2,  3,  1,  func_pos},
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette