-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced compatibility with Windows 11: Introduced the winconsole pro…
…ject to ensure the console version of nuBASIC functions correctly under the new OS environment.
- Loading branch information
1 parent
9e5592e
commit c5bc6fc
Showing
17 changed files
with
563 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// | ||
// | ||
// This file is part of nuBASIC | ||
// Copyright (c) Antonino Calderone ([email protected]) | ||
// All rights reserved. | ||
// Licensed under the MIT License. | ||
// All rights reserved. | ||
// Licensed under the MIT License. | ||
// See COPYING file in the project root for full license information. | ||
// | ||
|
||
|
@@ -13,9 +13,8 @@ | |
#include "nu_interpreter.h" | ||
#include "nu_os_console.h" | ||
#include "nu_os_std.h" | ||
#include "nu_terminal_frame.h" | ||
#include "nu_reserved_keywords.h" | ||
|
||
#include "nu_terminal_frame.h" | ||
|
||
#include <cassert> | ||
#include <iostream> | ||
|
@@ -26,10 +25,10 @@ | |
#include <variant> | ||
|
||
#ifdef WIN32 | ||
#pragma message("Warning: Use winconsole project to build command line version of nuBASIC, which is compatible with Windows 11") | ||
#include <Windows.h> | ||
#endif | ||
|
||
|
||
/* -------------------------------------------------------------------------- */ | ||
|
||
static nu::interpreter_t::exec_res_t exec_command( | ||
|
@@ -47,7 +46,7 @@ static nu::interpreter_t::exec_res_t exec_command( | |
basic.get_cur_line_n()); | ||
else if (res == nu::interpreter_t::exec_res_t::STOP_REQ) | ||
printf("Execution stopped at STOP instruction, line %i.\n" | ||
"Type 'cont' to continue\n", | ||
"Type 'cont' to continue\n", | ||
basic.get_cur_line_n()); | ||
return res; | ||
} | ||
|
@@ -80,7 +79,6 @@ static nu::interpreter_t::exec_res_t exec_command( | |
return nu::interpreter_t::exec_res_t::CMD_EXEC; | ||
} | ||
|
||
|
||
/* -------------------------------------------------------------------------- */ | ||
|
||
static int nuBASIC_console(int argc, char* argv[]) | ||
|
@@ -195,7 +193,6 @@ static int nuBASIC_console(int argc, char* argv[]) | |
return 0; | ||
} | ||
|
||
|
||
/* -------------------------------------------------------------------------- */ | ||
|
||
int main(int argc, char* argv[]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//{{NO_DEPENDENCIES}} | ||
// Microsoft Visual C++ generated include file. | ||
// Used by winconsole.rc | ||
|
||
#define IDS_APP_TITLE 103 | ||
|
||
#define IDR_MAINFRAME 128 | ||
#define IDD_WINCONSOLE_DIALOG 102 | ||
#define IDD_ABOUTBOX 103 | ||
#define IDM_ABOUT 104 | ||
#define IDM_EXIT 105 | ||
#define IDI_WINCONSOLE 107 | ||
#define IDI_SMALL 108 | ||
#define IDC_WINCONSOLE 109 | ||
#define IDC_MYICON 2 | ||
#ifndef IDC_STATIC | ||
#define IDC_STATIC -1 | ||
#endif | ||
// Next default values for new objects | ||
// | ||
#ifdef APSTUDIO_INVOKED | ||
#ifndef APSTUDIO_READONLY_SYMBOLS | ||
|
||
#define _APS_NO_MFC 130 | ||
#define _APS_NEXT_RESOURCE_VALUE 129 | ||
#define _APS_NEXT_COMMAND_VALUE 32771 | ||
#define _APS_NEXT_CONTROL_VALUE 1000 | ||
#define _APS_NEXT_SYMED_VALUE 110 | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// header.h : include file for standard system include files, | ||
// or project specific include files | ||
// | ||
|
||
#pragma once | ||
|
||
#include "targetver.h" | ||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers | ||
// Windows Header Files | ||
#include <windows.h> | ||
#include <shellapi.h> | ||
|
||
// C RunTime Header Files | ||
#include <stdlib.h> | ||
#include <malloc.h> | ||
#include <memory.h> | ||
#include <tchar.h> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
// // Including SDKDDKVer.h defines the highest available Windows platform. | ||
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and | ||
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. | ||
#include <SDKDDKVer.h> |
Oops, something went wrong.