Add some consts

This commit is contained in:
Lassi Kortela 2019-10-14 19:40:37 +03:00
parent 2bf14c6e35
commit fe92459368
4 changed files with 17 additions and 14 deletions

View File

@ -1,4 +1,4 @@
// Latest release on which this build is based.
char env_release[] = "0.0.0";
char env_release_date[] = "1970-01-01";
const char env_release[] = "0.0.0";
const char env_release_date[] = "1970-01-01";

View File

@ -50,6 +50,9 @@ struct builtin_library {
// Up Scheme libraries
#define UP_2019 (1 << 20)
const char *upscheme_stable_specs[] = { 0 };
const char upscheme_unstable_spec[] = "2019";
static struct builtin_procedure builtin_procedures[] = {
#if 0
{ "create-directory", fs_create_directory, SRFI_170 | UP_2019 },

View File

@ -1005,14 +1005,14 @@ const char *env_get_os_name(void);
value_t builtin_environment_stack(value_t *args, uint32_t nargs);
extern char env_build_cc[];
extern char env_build_cflags[];
extern char env_build_lflags[];
extern char env_build_revision[];
extern char env_build_date[];
extern const char env_build_cc[];
extern const char env_build_cflags[];
extern const char env_build_lflags[];
extern const char env_build_revision[];
extern const char env_build_date[];
extern char env_release[];
extern char env_release_date[];
extern const char env_release[];
extern const char env_release_date[];
//// #include "libraries.h"

View File

@ -92,11 +92,11 @@ set -x
cat >c/env_build.c <<EOF
// Generated from scratch at each build.
char env_build_cc[] = "$CC";
char env_build_cflags[] = "$CFLAGS";
char env_build_lflags[] = "$LFLAGS";
char env_build_revision[] = "$revision";
char env_build_date[] = "$builddate";
const char env_build_cc[] = "$CC";
const char env_build_cflags[] = "$CFLAGS";
const char env_build_lflags[] = "$LFLAGS";
const char env_build_revision[] = "$revision";
const char env_build_date[] = "$builddate";
EOF
mkdir -p "$builddir"