patch-guix11_xdialog_c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. $OpenBSD: patch-guix11_xdialog_c,v 1.1 2008/12/11 13:58:14 jasper Exp $
  2. Prevent symbol clash with stdio.h .
  3. --- guix11/xdialog.c.orig Tue Dec 9 23:32:39 2008
  4. +++ guix11/xdialog.c Tue Dec 9 23:33:34 2008
  5. @@ -387,7 +387,7 @@ static void parsespec(dia)
  6. case 'o': ft = FT_ONEOF, limit = scan; break;
  7. case 'n': ft = FT_NUMBER, limit = scan; break;
  8. case 's': ft = FT_STRING; break;
  9. - case 'f': ft = FT_FILE; break;
  10. + case 'f': ft = ELV_FT_FILE; break;
  11. case 'l': ft = FT_LOCKED; break;
  12. }
  13. @@ -556,7 +556,7 @@ void x_dl_add(xw, name, desc, excmd, spec)
  14. break;
  15. case FT_STRING:
  16. - case FT_FILE:
  17. + case ELV_FT_FILE:
  18. button = addbutton(dia, "<", 'l', ELVCTRL('L'));
  19. button->y = dia->y0 + dia->rowh * i;
  20. button->x = dia->x0 + 3;
  21. @@ -1111,7 +1111,7 @@ static void keystroke(dia, key)
  22. newvalue = keystring(dia, key);
  23. break;
  24. - case FT_FILE:
  25. + case ELV_FT_FILE:
  26. #ifdef FEATURE_COMPLETE
  27. if (key == '\t')
  28. {
  29. @@ -1179,7 +1179,7 @@ static void exposerow(dia, row, fromscratch)
  30. switch (dia->field[row].ft)
  31. {
  32. case FT_STRING:
  33. - case FT_FILE:
  34. + case ELV_FT_FILE:
  35. case FT_NUMBER:
  36. case FT_LOCKED:
  37. drawtext(dia, row);
  38. @@ -1207,7 +1207,7 @@ static void exposerow(dia, row, fromscratch)
  39. break;
  40. case FT_STRING:
  41. - case FT_FILE:
  42. + case ELV_FT_FILE:
  43. if (button->shape == 'l')
  44. if (row == dia->current
  45. ? dia->shift > 0