Permalink
Browse files

Add support for output on either ansi terminal and windows

  • Loading branch information...
dmitrinove authored and mist64 committed Apr 29, 2009
1 parent 2e70b6b commit 35c0c47c1cbf394d2ff0322c310192df48ab1fdf
Showing with 408 additions and 269 deletions.
  1. +26 −26 Makefile.win32
  2. +231 −227 cbmbasic.vcproj
  3. +117 −0 console.c
  4. +11 −0 console.h
  5. +2 −10 plugin.c
  6. +17 −6 runtime.c
  7. +4 −0 test/test_console.bas
View
@@ -1,26 +1,26 @@
-APPVER = 5.0
-TARGETOS = WINNT
-
-!include <win32.mak>
-
-!ifndef nounicode
-cvarsdll = $(cvarsdll) -DUNICODE -D_UNICODE
-!endif
-
-OUTDIR=.\bin\win32
-TARGET=$(OUTDIR)\cbmbasic.exe
-
-build: "$(OUTDIR)" "$(TARGET)"
-rebuild: clean build
-clean:
- -erase /f /q "$(OUTDIR)\*.*"
- -rmdir "$(OUTDIR)"
-
-.c{$(OUTDIR)}.obj:
- $(cc) $(cdebug) $(cflags) $(cvarsdll) -D_CRT_SECURE_NO_DEPRECATE=1 -D_CRT_NONSTDC_NO_DEPRECATE=1 /Fo"$(OUTDIR)/" /Fd"$(OUTDIR)/" $<
-
-"$(OUTDIR)":
- mkdir "$(OUTDIR)"
-
-"$(TARGET)": "$(OUTDIR)\cbmbasic.obj" "$(OUTDIR)\runtime.obj" "$(OUTDIR)\readdir.obj" "$(OUTDIR)\plugin.obj"
- $(link) $(ldebug) $(conlflags) -out:"$(TARGET)" $** $(conlibsdll)
+APPVER = 5.0
+TARGETOS = WINNT
+
+!include <win32.mak>
+
+!ifndef nounicode
+cvarsdll = $(cvarsdll) -DUNICODE -D_UNICODE
+!endif
+
+OUTDIR=.\bin\win32
+TARGET=$(OUTDIR)\cbmbasic.exe
+
+build: "$(OUTDIR)" "$(TARGET)"
+rebuild: clean build
+clean:
+ -erase /f /q "$(OUTDIR)\*.*"
+ -rmdir "$(OUTDIR)"
+
+.c{$(OUTDIR)}.obj:
+ $(cc) $(cdebug) $(cflags) $(cvarsdll) -D_CRT_SECURE_NO_DEPRECATE=1 -D_CRT_NONSTDC_NO_DEPRECATE=1 /Fo"$(OUTDIR)/" /Fd"$(OUTDIR)/" $<
+
+"$(OUTDIR)":
+ mkdir "$(OUTDIR)"
+
+"$(TARGET)": "$(OUTDIR)\cbmbasic.obj" "$(OUTDIR)\runtime.obj" "$(OUTDIR)\readdir.obj" "$(OUTDIR)\plugin.obj" "$(OUTDIR)\console.obj"
+ $(link) $(ldebug) $(conlflags) -out:"$(TARGET)" $** $(conlibsdll)
Oops, something went wrong.

0 comments on commit 35c0c47

Please sign in to comment.