https://github.com/jrincayc/ucblogo-code
Revision b2227ae71f14b631a8e1c9fead6fed7f2db2f6e6 authored by Dan Malec on 13 November 2020, 01:06:03 UTC, committed by Dan Malec on 13 November 2020, 02:04:05 UTC
On Raspberry Pi (ARM), converting the int output of getc to char
and then back to int results in the EOF character being represented as
255 instead of -1. This causes infinite loops when attempting to detect
the end of input from the editor.
1 parent a7bd4e1
Raw File
Tip revision: b2227ae71f14b631a8e1c9fead6fed7f2db2f6e6 authored by Dan Malec on 13 November 2020, 01:06:03 UTC
ISSUE-67: Pass the output of getc as int.
Tip revision: b2227ae
nographics.c

/* A dummy graphics implementation for Unix */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef X_DISPLAY_MISSING

int pw, ph, pc, pm, pv, px, py, bg;

#ifndef HAVE_WX
char *LogoPlatformName="Unix-Nographics";

void nop()
{
}
#endif
#endif
back to top