Skip to content

Commit

Permalink
Relocate display specific MEMMAP customization.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfivet committed Aug 22, 2021
1 parent bfb78e5 commit 62e1109
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#define MSDOS 0
#define IBMPC MSDOS
#define COLOR MSDOS
#define MEMMAP IBMPC


#define FILOCK (SVR4 | BSD)
Expand All @@ -46,8 +45,8 @@
void *allocate( size_t size) ;
void release( void *ptr) ;

# define malloc allocate
# define free release
# define malloc allocate
# define free release
#endif

/* De-allocate memory always on exit (if the operating system or main
Expand Down
7 changes: 5 additions & 2 deletions display.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "display.h"

#define REVSTA 1 /* Status line appears in reverse video */
#define MEMMAP 0

/* The functions in this file handle redisplay. There are two halves, the
ones that update the virtual display screen, and the ones that make the
Expand All @@ -11,6 +12,7 @@
Modified by Petri Kutvonen
*/

#include <assert.h>
#include <errno.h>
#include <locale.h>
#include <stdarg.h>
Expand Down Expand Up @@ -203,8 +205,9 @@ static void sane_vtputc( unicode_t c) {

static void vtputc( unicode_t c) {
/* In case somebody passes us a signed char.. */
if( c > 0x10FFFF) /* Let's assume this is due to sign extension */
c &= 0xFF ;
// if( c > 0x10FFFF) /* Let's assume this is due to sign extension */
// c &= 0xFF ;
assert( c <= 0x10FFFF) ;

if( c == '\t') {
sane_vtputc( viewtab ? 0xBB : ' ') ; /* 0xBB: '»' */
Expand Down

0 comments on commit 62e1109

Please sign in to comment.