Ticket #7911: descumm_patch.diff

File descumm_patch.diff, 1.4 KB (added by SF/realmz, 23 years ago)
  • descumm/descumm5.cpp

    Common subdirectories: ../descumm/CVS and descumm/CVS
    Only in ../descumm: Makefile
    diff -u ../descumm/descumm5.cpp descumm/descumm5.cpp
    ../  
    2121
    2222#include <string.h>
    2323#include <stdio.h>
    24 
    25 //Very little modification was required to make this work under Unix/Linux
    26 #ifdef UNIX
    27 #include <ctype.h>
    28 #endif
    29 
    30 #ifdef WIN32
    3124#include <io.h>
    3225#include <process.h>
    33 #endif
    34 
    3526#include <stdlib.h>
    3627
    3728#define A1B (1<<0)
     
    987978        case 0x5A: s = " += "; break;           /* add */
    988979        case 0x5B: s = " /= "; break;           /* divide */
    989980        case 0x17: s = " &= "; break;           /* and */
    990 //realmz - Change Nov 10, 2001 - Fix to allow compile
    991 #ifdef UNIX
    992         case 0x46:
    993         if(opcode&128)
    994                 s = "--";
    995         else
    996                 s = "++";
    997         break;
    998 #endif
    999 #ifdef WIN32
    1000981        case 0x46: s = (opcode&128) ? "--" : "++"; break; /* increment & decrement*/
    1001 #endif
    1002982    default:
    1003983      /* Exit, this should never happen, only if my code is buggy */
    1004984      printf("Unknown VARSET code %x", opcode); exit(0);
  • descumm/descumm6.cpp

    diff -u ../descumm/descumm6.cpp descumm/descumm6.cpp
    ../  
    2121
    2222#include <string.h>
    2323#include <stdio.h>
    24 
    25 #ifdef UNIX
    26 #include <ctype.h>
    27 #endif
    28 
    29 #ifdef WIN32
    3024#include <io.h>
    3125#include <process.h>
    32 #endif
    33 
    3426#include <stdlib.h>
    3527#include <assert.h>
    3628