Hugo Library v3.1.03.2, by Kent Tessman © 1995-2006, BSD 2-Clause License.
With the addition of The Hugo Book, 1st Ed. revised January 2020, CC BY-NC-SA 4.0 license.
Repository created by Tristano Ajmone, 2019/10/18.
Table of Contents
This repository contains the Hugo Library v3.1.03.2. taken from the official Hugo SVN repository, plus the sample.hug
and shell.hug
files from the Hugo website.
/hugolib/
— Hugo Library v3.1.03.2.PRECOMPILING.md
— A note on precompiling the Hugo Library.hugolib.hug
— Hugo Library precompiled header wrapper.hugo-book.html
— The Hugo Book, 1st Ed. revised January 2020 (CC BY-NC-SA 4.0).sample.hug
— demo adventure for the library.shell.hug
— boilerplate for creating adventures with the library.LICENSE
— BSD 2-Clause License.
I've converted all tabs to spaces to improve readability across various editors and preserve the original intended alignment (1 tab = 8 spaces).
In order to enforce code style consistency via EditorConfig, I had to add or remove a single space in a few lines, in order to make all indentations multiples of eight. Now the whole repository passes the EditorConfig validation via the ECLint tool.
This is a slightly updated library compared to the version currently available on the IF Archive (v3.1.03.1).
The main difference consists in a bug fix for the DoGet
response in verblib.h
(LLs. 2137–2138) regarding platforms; where "in"
and "on"
were swapped:
-
verblib.h
v3.1.03.1:elseif object is platform: print "in"; else: print "on";
-
verblib.h
v3.1.03.2:elseif object is platform: print "on"; else: print "in";
The other two minor changes affect hugolib.h
, where the letter casing of the TheorThat
routine (LL. 1195) was fixed to TheOrThat
, and an explanatory comment was added at LL. 2467.
The Hugo Library is part of the Hugo project, which is released under the terms of the BSD 2-Clause License (see original license file on Hugo website).
BSD 2-Clause License
Copyright (c) 2011 by Kent Tessman
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The Hugo Book is Copyright © 2004 by Kent Tessman, released under CC BY-NC-SA 4.0 license.
The HTML edition of the book was taken from the new AsciiDoc port by Tristano Ajmone: