History

20110330-0926

forsyth committed 15 years ago

Commit ef949cd1 parent ce72ccb6 files · +7 −5Browse files

Unified · Split

6 files
  1. CHANGES +2 −0
  2. include/version.h +1 −1
  3. libtk/buton.c +1 −1
  4. libtk/listb.c +1 −1
  5. libtk/menus.c +1 −1
  6. libtk/scale.c +1 −1
CHANGES+2−0
@@ -1,3 +1,5 @@
1+20110330
2+ call strtol not atoi for hex numbers [issue 255, mechiel]
13 20110329
24 utils/mkdir/mkdir.c - add -p option [mechiel, issue 250]
35 emu/Linux/mkfile - try searching -lpthread after -lrt for sem_* [issue 247]
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20110329)"
1+#define VERSION "Fourth Edition (20110330)"
libtk/buton.c+1−1
@@ -584,7 +584,7 @@ tkbuttonkey(Tk *tk, char *arg, char **val) · 583 unmodified lines
584584 if(tk->flag & Tkdisabled)
585585 return nil;
586586
587− key = atoi(arg);
587+ key = strtol(arg, nil, 0);
588588 if (key == '\n' || key ==' ')
589589 return tkbuttoninvoke(tk, nil, val);
590590 return nil;
libtk/listb.c+1−1
@@ -999,7 +999,7 @@ tklistbkey(Tk *tk, char *arg, char **val) · 998 unmodified lines
999999 if(tk->flag & Tkdisabled)
10001000 return nil;
10011001
1002− key = atoi(arg);
1002+ key = strtol(arg, nil, 0);
10031003 active = 0;
10041004 for (e = l->head; e != nil; e = e->link) {
10051005 if (e->flag & Tkactive)
libtk/menus.c+1−1
@@ -449,7 +449,7 @@ tkMBkey(Tk *tk, char *arg, char **val) · 448 unmodified lines
449449 if(tk->flag & Tkdisabled)
450450 return nil;
451451
452− key = atoi(arg);
452+ key = strtol(arg, nil, 0);
453453 if (key == '\n' || key == ' ')
454454 return tkMBpress(tk, "1", nil);
455455 return nil;
libtk/scale.c+1−1
@@ -926,7 +926,7 @@ tkscalekey(Tk *tk, char *arg, char **val) · 925 unmodified lines
926926 if(tk->flag & Tkdisabled)
927927 return nil;
928928
929− key = atoi(arg);
929+ key = strtol(arg, nil, 0);
930930 if (key == Up || key == Left)
931931 pos = trough1;
932932 else if (key == Down || key == Right)