pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeff Parsons 5ed8f13840 A (PC8080) VT100 can now connect to a (PCx86) IBM PC AT; only problem seems to be flow control now.
Also, each PCjs debugger can now be independently accessed from an external debugger (eg, "pcx86('ver')" or "pc8080('ver')"); the global '$' symbol is no longer used for debugger access.
TODO: There are still many places where GLOBALVAR should be replaced with PCX86.GLOBALVAR or PC8080.GLOBALVAR as appropriate (which I've finally started doing in each debugger.js file).
2016-08-18 16:46:34 -07:00
..
component.js Successfully running PCx86 and PC8080 machines on the same page now 2016-08-18 10:29:24 -07:00
defines.js And more PCjs/PCx86 disambiguation 2016-05-18 00:03:07 -07:00
diskapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
dumpapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
embed.js And more PCjs/PCx86 disambiguation 2016-05-18 00:03:07 -07:00
externs.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
netlib.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
nodebug.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
private.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
proclib.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
README.md Last of the link fixes (I hope) 2015-07-19 09:07:50 -07:00
reportapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
save.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
sockets.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
state.js Successfully running PCx86 and PC8080 machines on the same page now 2016-08-18 10:29:24 -07:00
strlib.js A (PC8080) VT100 can now connect to a (PCx86) IBM PC AT; only problem seems to be flow control now. 2016-08-18 16:46:34 -07:00
userapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
usrlib.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
weblib.js A (PC8080) VT100 can now connect to a (PCx86) IBM PC AT; only problem seems to be flow control now. 2016-08-18 16:46:34 -07:00

Shared Sources

This folder contains a mix of shared code, with some files used only by Node (server) modules, some used only by Browser (client) modules, and others used by both.

At the moment, only a few files are completely agnostic; eg: strlib.js and usrlib.js. One give-away is that neither contain references to any globals (although references to each other would be fine).

netlib.js is appropriate only for Node modules, because it contains code that relies on Node's global Buffer object, as indicated by:

/* global Buffer: false */

weblib.js is appropriate only for client modules, because it contains code that relies on the browser's global window object, as indicated by:

/* global window: true */

We declare window modifiable (true) so that defines.js can set global.window to false when running within Node, allowing any other code to test the existence of window with a simple:

if (window) {...}

instead of:

if (typeof window !== "undefined") {...}