/[qemacs]/qemacs/unihex.c
ViewVC logotype

Diff of /qemacs/unihex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by bellard, Sat May 29 10:18:12 2004 UTC revision 1.2 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 56  static int unihex_display(EditState *s, Line 56  static int unihex_display(EditState *s,
56      display_printf(ds, -1, -1, "%08x ", offset);      display_printf(ds, -1, -1, "%08x ", offset);
57    
58      len = 0;      len = 0;
59      for(j=0;j<s->disp_width;j++) {      for (j = 0; j < s->disp_width; j++) {
60          if (offset < s->b->total_size) {          if (offset < s->b->total_size) {
61              b = eb_nextc(s->b, offset, &offset1);              b = eb_nextc(s->b, offset, &offset1);
62              pos[len] = offset;              pos[len] = offset;
# Line 67  static int unihex_display(EditState *s, Line 67  static int unihex_display(EditState *s,
67      }      }
68      pos[len] = offset;      pos[len] = offset;
69    
70      for(j=0;j<s->disp_width;j++) {      for (j = 0; j < s->disp_width; j++) {
71          display_char(ds, -1, -1, ' ');          display_char(ds, -1, -1, ' ');
72          if (j < len) {          if (j < len) {
73              display_printhex(ds, pos[j], pos[j+1], buf[j], 4);              display_printhex(ds, pos[j], pos[j+1], buf[j], 4);
# Line 85  static int unihex_display(EditState *s, Line 85  static int unihex_display(EditState *s,
85      display_char(ds, -1, -1, ' ');      display_char(ds, -1, -1, ' ');
86      display_char(ds, -1, -1, ' ');      display_char(ds, -1, -1, ' ');
87    
88      for(j=0;j<s->disp_width;j++) {      for (j = 0; j < s->disp_width; j++) {
89          if (j < len) {          if (j < len) {
90              b = buf[j];              b = buf[j];
91              if (b < ' ' || b == 127)              if (b < ' ' || b == 127)

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26