pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:9642:    const char **params,    const char *comment)   {    while ((start < end) || opcode || (params && params[0]) ||    (comment && comment[0])) {    ptrdiff_t field_width = sizeof(PIKE_OPCODE_T) * 2;    ptrdiff_t i;    int skip_params = 0;    int skip_comment = 0;    -  if (start < end) { +  if (end) {    /* Address */    string_builder_sprintf(s, "0x%016lx ", start);    -  +  if (start < end) {    /* Memory dump */    for (i = 0; i < 8; i += field_width) {    if (start < end) {    string_builder_sprintf(s, "%0*x ", field_width, start[0]);    start++; -  +  if (start == end) { +  end = NULL; +  }    } else {    string_builder_sprintf(s, "%*s ", field_width, "");    }    }    } else { -  +  end = NULL; +  string_builder_sprintf(s, "%*s ", 8 + 8/field_width, ""); +  } +  } else {    string_builder_sprintf(s, "%*s ", 18 + 8 + 8/field_width, "");    }       /* Opcode */    if (opcode) {    if (strlen(opcode) < 8) {    string_builder_sprintf(s, " %-8s ", opcode);    } else if (strlen(opcode) < 32) {    string_builder_sprintf(s, " %-28s ", opcode);    skip_params = 1;