chiark / gitweb /
Factor some HTML dialog functions out of emcclib.
authorSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:09:56 +0000 (20:09 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:55:11 +0000 (20:55 +0100)
commitb31ea221673a8f49a383a4a119d6edaabd39642d
treefc455f492a68ca109f0eeaa9831adbca5ca2a9ef
parent5e53ec5e36de0485467cb9553b8fa0bb580dc403
Factor some HTML dialog functions out of emcclib.

I'm about to want to call these from Javascript as well as from
Emscripten-compiled C, so I need versions of them that aren't wrapped
up in the Emscripten library object and also don't expect half their
parameters to be Emscripten-verse char pointers requiring calls to
Pointer_stringify.

The easiest way to achieve all of that is to turn the Emscripten-
ready versions of those functions in emcclib.js into tiny wrappers
around the JS versions, which do the pointer stringification and a
couple of other details like directing callbacks to the right C
functions.
emcclib.js
emccpre.js