Coder Social home page Coder Social logo

uho / flk Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 843 KB

FLK is an optimizing native code compiler targeted for the Intel 386+ CPU

License: GNU General Public License v2.0

Makefile 1.24% Forth 82.22% C 5.14% HTML 11.36% RenderScript 0.03%

flk's People

Contributors

uho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flk's Issues

Additional code required to compile under modern Linux

diff --git a/flk.c b/flk.c
index 04cae45..1c9a5fe 100644
--- a/flk.c
+++ b/flk.c
@@ -113,6 +113,8 @@
 #include <time.h>

 #ifdef __UNIX__
+#define NCURSES_INTERNALS
+#include <term.h>
 #include <curses.h>
 #include <dirent.h>
 #include <sys/stat.h>

Without that we have compiler errors:

cc -m32 -Wall -Wno-unused-result -pipe -D__UNIX__ -D__LINUX__ -DINSTALL_DIR=\"/usr/local/lib/flk/\" -DINSTALL_BIN_DIR=\"/usr/local/bin/\"  -DNDEBUG -O2  -DDELAY_FLUSH   -c -o flk.o flk.c
flk.c: In function ‘TERM_BOOL’:
flk.c:925:24: error: invalid use of incomplete typedef ‘TERMINAL’ {aka ‘struct term’}
  925 |   PUSH( vaddr, cur_term->type.Booleans);
      |                        ^~
flk.c:221:56: note: in definition of macro ‘PUSH’
  221 | #define PUSH( var, val) {_stptr_--; stack[_stptr_].var=val;}
      |                                                        ^~~
flk.c: In function ‘TERM_NUMBER’:
flk.c:931:24: error: invalid use of incomplete typedef ‘TERMINAL’ {aka ‘struct term’}
  931 |   PUSH( vaddr, cur_term->type.Numbers);
      |                        ^~
flk.c:221:56: note: in definition of macro ‘PUSH’
  221 | #define PUSH( var, val) {_stptr_--; stack[_stptr_].var=val;}
      |                                                        ^~~
flk.c: In function ‘TERM_STRING’:
flk.c:937:24: error: invalid use of incomplete typedef ‘TERMINAL’ {aka ‘struct term’}
  937 |   PUSH( vaddr, cur_term->type.Strings);
      |                        ^~
flk.c:221:56: note: in definition of macro ‘PUSH’
  221 | #define PUSH( var, val) {_stptr_--; stack[_stptr_].var=val;}
      |                                                        ^~~
make: *** [<builtin>: flk.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.