From e114ec0095d9dc5d487aa853ba6a276867f187b3 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 19 Mar 2018 17:13:36 -0400 Subject: [PATCH] Move web client code. --- src/mainclient/init.dst | 4 ---- {web => src/web}/index.html | 0 src/web/main.c | 26 ++++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) rename {web => src/web}/index.html (100%) create mode 100644 src/web/main.c diff --git a/src/mainclient/init.dst b/src/mainclient/init.dst index 34c3782a..6a184c81 100644 --- a/src/mainclient/init.dst +++ b/src/mainclient/init.dst @@ -1,5 +1,3 @@ -(do - (var should-repl false) (var no-file true) @@ -33,5 +31,3 @@ (when (or should-repl no-file) (print (string "Dst " VERSION " Copyright (C) 2017-2018 Calvin Rose")) (repl getline)) - -) diff --git a/web/index.html b/src/web/index.html similarity index 100% rename from web/index.html rename to src/web/index.html diff --git a/src/web/main.c b/src/web/main.c new file mode 100644 index 00000000..5eeee28c --- /dev/null +++ b/src/web/main.c @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2018 Calvin Rose +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to +* deal in the Software without restriction, including without limitation the +* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +* sell copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +*/ + +#include +#include + +// emscripten client code to go here