1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-25 02:26:22 -05:00

Relocate display specific MEMMAP customization.

This commit is contained in:
Renaud 2021-08-22 10:53:02 +08:00
parent bfb78e5382
commit 62e1109802
2 changed files with 7 additions and 5 deletions

View File

@ -29,7 +29,6 @@
#define MSDOS 0
#define IBMPC MSDOS
#define COLOR MSDOS
#define MEMMAP IBMPC
#define FILOCK (SVR4 | BSD)
@ -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

View File

@ -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
@ -11,6 +12,7 @@
Modified by Petri Kutvonen
*/
#include <assert.h>
#include <errno.h>
#include <locale.h>
#include <stdarg.h>
@ -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: '»' */