OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../vdr/image-getchar.diff
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- image/libimage/pnm.h.orig 2005-02-14 18:01:00.464704296 +0100
  17. +++ image/libimage/pnm.h 2005-02-14 18:01:11.924962072 +0100
  18. @@ -151,7 +151,7 @@
  19. Get next significant character, i.e. jump over comments
  20. @param file - source file
  21. @param - Next significant character*/
  22. - bool getchar(FILE* f,char& nNext);
  23. + bool getchar_(FILE* f,char& nNext);
  24. /*****************************************************************************
  25. Get next bit from file
  26. --- image/libimage/pnm.c.orig 2005-02-14 18:01:04.294122136 +0100
  27. +++ image/libimage/pnm.c 2005-02-14 18:01:30.060205096 +0100
  28. @@ -73,7 +73,7 @@
  29. Get next significant character, i.e. jump over comments
  30. @param file - source file
  31. @param - Next significant character*/
  32. -bool cPNM::getchar(FILE* f, char& nNext)
  33. +bool cPNM::getchar_(FILE* f, char& nNext)
  34. {
  35. register int ich;
  36. register char ch;
  37. @@ -112,7 +112,7 @@
  38. register char ch;
  39. do {
  40. - if(!getchar( f, ch ))
  41. + if(!getchar_( f, ch ))
  42. return false;
  43. } while ( ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' );
  44. @@ -156,7 +156,7 @@
  45. register T i;
  46. do {
  47. - if(!getchar( f,ch ))
  48. + if(!getchar_( f,ch ))
  49. return false;
  50. } while ( ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' );
  51. @@ -168,7 +168,7 @@
  52. i = 0;
  53. do {
  54. i = i * 10 + ch - '0';
  55. - if(!getchar( f,ch ))
  56. + if(!getchar_( f,ch ))
  57. return false;
  58. } while ( ch >= '0' && ch <= '9' );
  59. nNext = i;