chore: add Travis CI docs deployment job and update build dependencies
- Add automatic docs deployment stage for master branch pushes in .travis.yml - Include python3-markdown, python3-pygments, python3-setuptools, and ruby-sass as build dependencies - Switch from container-based to sudo-required builds with trusty dist for custom Pygments lexer installation - Ensure build directory exists before generating docs in Makefile
This commit is contained in:
+2
-1
@@ -192,6 +192,7 @@ static ModuleRegistry modules[] =
|
||||
#undef END_CLASS
|
||||
#undef METHOD
|
||||
#undef STATIC_METHOD
|
||||
#undef FINALIZER
|
||||
|
||||
// Looks for a built-in module with [name].
|
||||
//
|
||||
@@ -241,7 +242,7 @@ char* readBuiltInModule(const char* name)
|
||||
|
||||
size_t length = strlen(*module->source);
|
||||
char* copy = (char*)malloc(length + 1);
|
||||
strncpy(copy, *module->source, length + 1);
|
||||
memcpy(copy, *module->source, length + 1);
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -9,11 +9,21 @@
|
||||
#include <sys\stat.h>
|
||||
|
||||
// Map to Windows permission flags.
|
||||
#ifndef S_IRUSR
|
||||
#define S_IRUSR _S_IREAD
|
||||
#define S_IWUSR _S_IWRITE
|
||||
#endif
|
||||
|
||||
#ifndef S_IWUSR
|
||||
#define S_IWUSR _S_IWRITE
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
// Not supported on Windows.
|
||||
#define O_SYNC 0
|
||||
|
||||
Reference in New Issue
Block a user