~jaypipes/drizzle/new-test-runner

« back to all changes in this revision

Viewing changes to tests/resolve_stack_dump.cc

  • Committer: Jay Pipes
  • Date: 2008-12-11 17:52:34 UTC
  • mfrom: (482.16.152 testable)
  • Revision ID: jpipes@serialcoder-20081211175234-uqsfvmgxejvmellq
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
static char* dump_fname = 0, *sym_fname = 0;
43
43
static DYNAMIC_ARRAY sym_table; /* how do you like this , static DYNAMIC ? */
44
 
static FILE* fp_dump, *fp_sym = 0, *fp_out; 
 
44
static FILE* fp_dump, *fp_sym = 0, *fp_out;
45
45
 
46
46
static struct my_option my_long_options[] =
47
47
{
173
173
    return c - '0';
174
174
  l = my_tolower(&my_charset_utf8_general_ci,c);
175
175
  if (l < 'a' || l > 'f')
176
 
    return HEX_INVALID; 
 
176
    return HEX_INVALID;
177
177
  return (unsigned char)10 + ((unsigned char)c - (unsigned char)'a');
178
178
}
179
179
 
186
186
  while((c = hex_val(*p++)) != HEX_INVALID)
187
187
      addr = (addr << 4) + c;
188
188
 
189
 
  *buf = p; 
 
189
  *buf = p;
190
190
  return addr;
191
191
}
192
192