Skip to content

Commit

Permalink
make printable() shared
Browse files Browse the repository at this point in the history
  • Loading branch information
davidly committed Feb 26, 2024
1 parent a60683e commit 79c6eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions djl_os.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,11 @@ class CFile
}
};

inline char printable( uint8_t x )
{
if ( x < ' ' || x >= 127 )
return ' ';
return x;
} //printable


7 changes: 0 additions & 7 deletions ntvdm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1316,13 +1316,6 @@ void UpdateScreenCursorPosition()
UpdateScreenCursorPosition( row, col );
} //UpdateScreenCursorPosition

char printable( uint8_t x )
{
if ( x < ' ' || x >= 127 )
return ' ';
return x;
} //printable

void init_blankline( uint8_t attribute )
{
uint8_t * pbyte = (uint8_t *) blankLine;
Expand Down

0 comments on commit 79c6eb1

Please sign in to comment.