~octaspire/dern

1138db6262e1a0eddf15f4ec377c9756566d53b2 — octaspire 5 years ago 8cb8510 v0.479.0
Add initial support for MSVC C/C++ compiler

* Tested with 'Visual Studio 2017 (Community edition)'.

* This is work in progress.
10 files changed, 93 insertions(+), 12 deletions(-)

M dev/doc/book/dern-manual.htm
R dev/doc/book/examples/sh/{windows.sh => windows-mingw.sh}
A dev/doc/book/examples/sh/windows-msvc.bat
M dev/doc/book/lang.map
M dev/etc/amalgamation_head.c
M dev/include/octaspire/dern/octaspire_dern_config.h
M release/documentation/dern-manual.html
R release/how-to-build/{windows.sh => windows-mingw.sh}
A release/how-to-build/windows-msvc.bat
M release/octaspire-dern-amalgamated.c
M dev/doc/book/dern-manual.htm => dev/doc/book/dern-manual.htm +26 -2
@@ 517,7 517,7 @@
    Start <b>Git Bash</b> and run the following commands:
  </p>

  .INCLUDE: dev/doc/book/examples/sh/windows.sh
  .INCLUDE: dev/doc/book/examples/sh/windows-mingw.sh

  <p>
    Start <b>Windows Command Prompt</b> and change directory to the same


@@ 525,6 525,30 @@
    in the <b>Command Prompt</b> window (NOT in the Git Bash window).
  </p>

  <h3>Windows using MSVC and Git</h3>

  <p>
    Download and install <b>Visual Studio 2017 (Community edition)</b> and
    <b>Git</b>.
  </p>

  <p>
    Start <b>Developer Command Prompt for VS 2017</b>.
    It can be found under <i>Visual Studio 2017</i> in
    the start menu.
  </p>

  <p>
    Please note, that you cannot use regular windows command
    prompt.
  </p>

  <p>
    Enter the following commands into the <i>Developer Command Prompt</i>:
  </p>

  .INCLUDE: dev/doc/book/examples/sh/windows-msvc.bat

  <h3>ReactOS</h3>

  <p>


@@ 1237,7 1261,7 @@

  <div class="footer">
    <p>
      Copyright © 2017, 2018 octaspire.com<br/>
      Copyright © 2017, 2018, 2019 octaspire.com<br/>
      All content in this site is released under the Apache 2.0 license,
      unless stated otherwise.
    </p>

R dev/doc/book/examples/sh/windows.sh => dev/doc/book/examples/sh/windows-mingw.sh +1 -1
@@ 1,3 1,3 @@
git clone https://github.com/octaspire/dern.git
cd dern/release
how-to-build/windows.sh
how-to-build/windows-mingw.sh

A dev/doc/book/examples/sh/windows-msvc.bat => dev/doc/book/examples/sh/windows-msvc.bat +4 -0
@@ 0,0 1,4 @@
cd c:\
git clone https://github.com/octaspire/dern.git
cd dern\release
how-to-build\windows-msvc.bat

M dev/doc/book/lang.map => dev/doc/book/lang.map +2 -1
@@ 1,3 1,4 @@
dern = dern.lang
sh = sh.lang
c  = c.lang
\ No newline at end of file
c  = c.lang
bat = bat.lang

M dev/etc/amalgamation_head.c => dev/etc/amalgamation_head.c +5 -1
@@ 1,6 1,6 @@
/******************************************************************************
Octaspire Dern - Programming language
Copyright 2017, 2018 www.octaspire.com
Copyright 2017 - 2019 www.octaspire.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.


@@ 27,6 27,10 @@ limitations under the License.
#ifndef OCTASPIRE_DERN_AMALGAMATED_H
#define OCTASPIRE_DERN_AMALGAMATED_H

#ifdef _MSC_VER
#include <windows.h>
#endif

#ifdef OCTASPIRE_DERN_CONFIG_BINARY_PLUGINS
#ifdef _WIN32
#include <windows.h>

M dev/include/octaspire/dern/octaspire_dern_config.h => dev/include/octaspire/dern/octaspire_dern_config.h +1 -1
@@ 18,7 18,7 @@ limitations under the License.
#define OCTASPIRE_DERN_CONFIG_H

#define OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "0"
#define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "478"
#define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "479"
#define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "0"

#define OCTASPIRE_DERN_CONFIG_VERSION_STR "Octaspire Dern version " \

M release/documentation/dern-manual.html => release/documentation/dern-manual.html +36 -4
@@ 578,7 578,7 @@ http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><span class="normal">git clone https</span><span class="symbol">:</span><span class="normal">//github</span><span class="symbol">.</span><span class="normal">com/octaspire/dern</span><span class="symbol">.</span><span class="normal">git</span>
<span class="normal">cd dern/release</span>
<span class="normal">how-to-build/windows</span><span class="symbol">.</span><span class="normal">sh</span>
<span class="normal">how-to-build/windows-mingw</span><span class="symbol">.</span><span class="normal">sh</span>
</pre>

  <p>


@@ 587,7 587,39 @@ http://www.gnu.org/software/src-highlite -->
    in the <b>Command Prompt</b> window (NOT in the Git Bash window).
  </p>

    <h3>2.5 ReactOS</h3>
    <h3>2.5 Windows using MSVC and Git</h3>

  <p>
    Download and install <b>Visual Studio 2017 (Community edition)</b> and
    <b>Git</b>.
  </p>

  <p>
    Start <b>Developer Command Prompt for VS 2017</b>.
    It can be found under <i>Visual Studio 2017</i> in
    the start menu.
  </p>

  <p>
    Please note, that you cannot use regular windows command
    prompt.
  </p>

  <p>
    Enter the following commands into the <i>Developer Command Prompt</i>:
  </p>

<!-- Generator: GNU source-highlight 3.1.8
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><span class="function">cd</span><span class="normal"> </span><span class="path">c:\</span>
<span class="normal">git clone http</span><span class="path">s:</span><span class="symbol">//</span><span class="normal">github</span><span class="symbol">.</span><span class="normal">com</span><span class="symbol">/</span><span class="normal">octaspire</span><span class="symbol">/</span><span class="normal">dern</span><span class="symbol">.</span><span class="normal">git</span>
<span class="function">cd</span><span class="normal"> dern</span><span class="symbol">\</span><span class="normal">release</span>
<span class="normal">how</span><span class="symbol">-</span><span class="normal">to</span><span class="symbol">-</span><span class="normal">build</span><span class="symbol">\</span><span class="normal">windows</span><span class="symbol">-</span><span class="normal">msvc</span><span class="symbol">.</span><span class="normal">bat</span>
</pre>

    <h3>2.6 ReactOS</h3>

  <p>
    Use <b>ReactOS Applications Manager</b> to install


@@ 607,7 639,7 @@ http://www.gnu.org/software/src-highlite -->
    the <b>version-x.y.z</b> directory.
  </p>

    <h3>2.6 AmigaOS 4.x</h3>
    <h3>2.7 AmigaOS 4.x</h3>

  <p>
    Download and install


@@ 2178,7 2210,7 @@ http://www.gnu.org/software/src-highlite -->

  <div class="footer">
    <p>
      Copyright © 2017, 2018 octaspire.com<br/>
      Copyright © 2017, 2018, 2019 octaspire.com<br/>
      All content in this site is released under the Apache 2.0 license,
      unless stated otherwise.
    </p>

R release/how-to-build/windows.sh => release/how-to-build/windows-mingw.sh +0 -0
A release/how-to-build/windows-msvc.bat => release/how-to-build/windows-msvc.bat +12 -0
@@ 0,0 1,12 @@
@ECHO OFF

@ECHO -----------------------------------------------------------------
@ECHO stand alone unit test runner:
@ECHO -----------------------------------------------------------------
cl /nologo /W3 /DOCTASPIRE_DERN_AMALGAMATED_UNIT_TEST_IMPLEMENTATION octaspire-dern-amalgamated.c /link /out:octaspire-dern-unit-test-runner.exe
@ECHO.
@ECHO RUN WITH:
@ECHO octaspire-dern-unit-test-runner.exe
@ECHO.
@ECHO BUILD WITH:
@ECHO cl /W3 /DOCTASPIRE_DERN_AMALGAMATED_UNIT_TEST_IMPLEMENTATION octaspire-dern-amalgamated.c /link /out:octaspire-dern-unit-test-runner.exe

M release/octaspire-dern-amalgamated.c => release/octaspire-dern-amalgamated.c +6 -2
@@ 1,6 1,6 @@
/******************************************************************************
Octaspire Dern - Programming language
Copyright 2017, 2018 www.octaspire.com
Copyright 2017 - 2019 www.octaspire.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.


@@ 27,6 27,10 @@ limitations under the License.
#ifndef OCTASPIRE_DERN_AMALGAMATED_H
#define OCTASPIRE_DERN_AMALGAMATED_H

#ifdef _MSC_VER
#include <windows.h>
#endif

#ifdef OCTASPIRE_DERN_CONFIG_BINARY_PLUGINS
#ifdef _WIN32
#include <windows.h>


@@ 26332,7 26336,7 @@ limitations under the License.
#define OCTASPIRE_DERN_CONFIG_H

#define OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "0"
#define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "478"
#define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "479"
#define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "0"

#define OCTASPIRE_DERN_CONFIG_VERSION_STR "Octaspire Dern version " \