mirror of the now-defunct rocklinux.org
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.

70 lines
2.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mathieu/dosbox/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- dosbox-0.61-orig/include/dos_inc.h 2004-01-10 15:03:33.000000000 +0100
  20. +++ dosbox-0.61/include/dos_inc.h 2004-06-08 17:52:39.958890112 +0200
  21. @@ -215,22 +215,22 @@
  22. class MemStruct {
  23. public:
  24. - INLINE Bit8u GetIt(Bit8u&,PhysPt addr) {
  25. + INLINE Bit8u GetIt(Bit8u,PhysPt addr) {
  26. return mem_readb(pt+addr);
  27. }
  28. - INLINE Bit16u GetIt(Bit16u&,PhysPt addr) {
  29. + INLINE Bit16u GetIt(Bit16u,PhysPt addr) {
  30. return mem_readw(pt+addr);
  31. }
  32. - INLINE Bit32u GetIt(Bit32u&,PhysPt addr) {
  33. + INLINE Bit32u GetIt(Bit32u,PhysPt addr) {
  34. return mem_readd(pt+addr);
  35. }
  36. - INLINE void SaveIt(Bit8u&,PhysPt addr,Bit8u val) {
  37. + INLINE void SaveIt(Bit8u,PhysPt addr,Bit8u val) {
  38. mem_writeb(pt+addr,val);
  39. }
  40. - INLINE void SaveIt(Bit16u&,PhysPt addr,Bit16u val) {
  41. + INLINE void SaveIt(Bit16u,PhysPt addr,Bit16u val) {
  42. mem_writew(pt+addr,val);
  43. }
  44. - INLINE void SaveIt(Bit32u&,PhysPt addr,Bit32u val) {
  45. + INLINE void SaveIt(Bit32u,PhysPt addr,Bit32u val) {
  46. mem_writed(pt+addr,val);
  47. }
  48. INLINE void SetPt(Bit16u seg) { pt=PhysMake(seg,0);}
  49. --- dosbox-0.61-orig/src/dos/dos_classes.cpp 2004-01-10 15:03:34.000000000 +0100
  50. +++ dosbox-0.61/src/dos/dos_classes.cpp 2004-06-08 17:56:50.869745864 +0200
  51. @@ -121,7 +121,7 @@
  52. /* FCBs are filled with 0 */
  53. // ....
  54. /* Init file pointer and max_files */
  55. - sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files[0])));
  56. + sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files)));
  57. sSave(sPSP,max_files,20);
  58. for (i=0;i<20;i++) SetFileHandle(i,0xff);
  59. @@ -218,7 +218,7 @@
  60. MEM_BlockCopy(pt+offsetof(sPSP,cmdtail),Real2Phys(src),128);
  61. } else { // empty
  62. sSave(sPSP,cmdtail.count,0x00);
  63. - mem_writeb(pt+offsetof(sPSP,cmdtail.buffer[0]),0x0d);
  64. + mem_writeb(pt+offsetof(sPSP,cmdtail.buffer),0x0d);
  65. };
  66. };