fix clock:year

FossilOrigin-Name: f7be17407c77e34eba0af403e17ebe32d1387a5581989399bebd491241caf5a0
This commit is contained in:
crc 2019-05-01 11:59:13 +00:00
parent b4e1f5b17e
commit d3c0867a5a
4 changed files with 16 additions and 50 deletions

View file

@ -4,37 +4,14 @@ This is the changelog for the development builds of Retro.
## Bug Fixes
- (all) strl* functions now only compiled if using GLIBC.
- (rre) `clock:year` corrected
## Build
- Makefile.linux is now GNUmakefile
## Core Language
## I/O and Extensions
### Floating Point
### Unix
## Nga
## Interfaces
### retro
### retro-compiler
### native
## Tools
## Other
- Merged Linux & BSD Makefiles
## Documentation
- updated Linux build instructions
- updated Starting instructions
## Examples
## Final Notes

View file

@ -134,17 +134,8 @@ In the `bin/` directory:
I've had issues building on Linux in the past. The GNU toolchain
can be quite problematic.
If the build fails, try:
make -f GNUmakefile
or:
mv GNUmakefile Makefile
make
If none of these work, contact Charles with details and he will
work on finding a fix.
If the build fails please contact Charles with details and he
will work on finding a fix.
# Building RETRO on macOS
@ -581,6 +572,13 @@ This illustrates the format. Only code in the fenced blocks
(Note: this only applies to *source files*; fences are not used
when entering code interactively).
## On The Name
The name Unu comes from the Maori language, where it means:
(verb) (-hia) pull out, withdraw, draw out, extract.
Taken from https://maoridictionary.co.nz/
# Naming Conventions
Word names in RETRO generally follow the following conventions.

View file

@ -36,14 +36,5 @@ In the `bin/` directory:
I've had issues building on Linux in the past. The GNU toolchain
can be quite problematic.
If the build fails, try:
make -f GNUmakefile
or:
mv GNUmakefile Makefile
make
If none of these work, contact Charles with details and he will
work on finding a fix.
If the build fails please contact Charles with details and he
will work on finding a fix.

View file

@ -296,7 +296,7 @@ void unix_time_month() {
void unix_time_year() {
time_t t = time(NULL);
stack_push((CELL)localtime(&t)->tm_year + 1990);
stack_push((CELL)localtime(&t)->tm_year + 1900);
}
void unix_time_hour() {