Updates to make latest code compile and work under OS4
This commit is contained in:
parent
65d95c7f40
commit
62adafb59d
12
Makefile.os4
12
Makefile.os4
|
@ -11,23 +11,22 @@ LiteXL_OBJ := \
|
||||||
src/api/utf8.o src/platform/amigaos4.o \
|
src/api/utf8.o src/platform/amigaos4.o \
|
||||||
src/api/dirmonitor/os4.o
|
src/api/dirmonitor/os4.o
|
||||||
|
|
||||||
|
|
||||||
outfile := lite
|
outfile := lite
|
||||||
compiler := gcc
|
compiler := gcc-11
|
||||||
cxxcompiler := g++
|
cxxcompiler := g++-11
|
||||||
|
|
||||||
INCPATH := -Isrc -Ilib/dmon -I/sdk/local/newlib/include/SDL2 \
|
INCPATH := -Isrc -I/sdk/local/newlib/include/SDL2 \
|
||||||
-I/sdk/local/common/include/lua54 -I/sdk/local/common/include/freetype2
|
-I/sdk/local/common/include/lua54 -I/sdk/local/common/include/freetype2
|
||||||
|
|
||||||
DFLAGS += -D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR
|
DFLAGS += -D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR
|
||||||
|
|
||||||
CFLAGS += -Werror -Wwrite-strings -O2 -g -std=gnu11 -fno-strict-aliasing
|
CFLAGS += -Werror -Wwrite-strings -O3 -std=gnu11 -fno-strict-aliasing
|
||||||
|
|
||||||
LFLAGS += -mcrt=newlib -lauto \
|
LFLAGS += -mcrt=newlib -lauto \
|
||||||
-lpcre2 -lSDL2 -llua54 -lfreetype -lz -lm -lpthread -athread=native
|
-lpcre2 -lSDL2 -llua54 -lfreetype -lz -lm -lpthread -athread=native
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CFLAGS += -gstabs
|
CFLAGS += -g -gstabs
|
||||||
LFLAGS += -gstabs
|
LFLAGS += -gstabs
|
||||||
|
|
||||||
ifeq ($(PROFYLER),1)
|
ifeq ($(PROFYLER),1)
|
||||||
|
@ -97,4 +96,3 @@ release:
|
||||||
@lha -aeqr3 a LiteXL2_OS4.lha release/
|
@lha -aeqr3 a LiteXL2_OS4.lha release/
|
||||||
@echo "Clean release files..."
|
@echo "Clean release files..."
|
||||||
@delete release ALL QUIET FORCE
|
@delete release ALL QUIET FORCE
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
# Lite XL v2 for AmigaOS 4.1 FE & MorphOS 3
|
# Lite XL v2 for AmigaOS 4.1 FE & MorphOS 3
|
||||||
|
|
||||||
Lite XL is a lightweight text editor written in Lua.
|
Lite XL is a lightweight text editor written in Lua and SDL2.
|
||||||
|
|
||||||
The port is not perfect and it might have issues here and there. For example
|
The port is not perfect and it might have issues here and there. It might
|
||||||
the filesystem notifications are not working yet. So when you make changes
|
crash from time to time, if there is a path problem, but overall it works
|
||||||
at a project folder those will not be reflected in Lite XL automatically.
|
pretty well. This is my daily editor for any kind of development.
|
||||||
|
|
||||||
It might crash from time to time, if there is a path problem, but overall
|
|
||||||
it works pretty well. This is my daily editor for any kind of development.
|
|
||||||
If it crashes on your system, try to delete to `.config` folder.
|
If it crashes on your system, try to delete to `.config` folder.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -16,9 +13,9 @@ editor.
|
||||||
|
|
||||||
## Configuration folder
|
## Configuration folder
|
||||||
This editor creates a `.config` folder where the configuration is saved, as
|
This editor creates a `.config` folder where the configuration is saved, as
|
||||||
well as plugins, themes etc.. By default this version uses the
|
well as plugins, themes etc.. By default this version uses the installation
|
||||||
executable folder, but if you want to override it, you can create an ENV
|
folder, but if you want to override it, you can create an ENV variable
|
||||||
variable named `HOME` and set there your prefferable path.
|
named `HOME` and set there your prefferable path.
|
||||||
|
|
||||||
You can check if there is one already set by executing the following command
|
You can check if there is one already set by executing the following command
|
||||||
in a shell
|
in a shell
|
||||||
|
@ -57,10 +54,10 @@ The themes can also be found at
|
||||||
https://github.com/lite-xl/lite-xl-colors
|
https://github.com/lite-xl/lite-xl-colors
|
||||||
|
|
||||||
### Plugins
|
### Plugins
|
||||||
This Lite XL release is based on version 2.0.3 of the application as
|
LiteXL is able to use plugins to extend its features. Those can be found
|
||||||
released on other systems, by the original development team.
|
at https://github.com/lite-xl/lite-xl-plugins and other websites. Not all
|
||||||
This not the latest version. This means that some of the latest
|
of them will work fine on AmigaOS 4 or MorphOS, because of missing
|
||||||
plugins might not working at all or need modifications to work.
|
dependencies or filesystem issues.
|
||||||
|
|
||||||
To make it easier for you, I gathered some of the plugins that are working
|
To make it easier for you, I gathered some of the plugins that are working
|
||||||
well, and I included them under `addons/plugins`. For you to install the
|
well, and I included them under `addons/plugins`. For you to install the
|
||||||
|
@ -94,6 +91,15 @@ Underlines matching pair for bracket under the caret
|
||||||
Underlays color values (eg. `#ff00ff` or `rgb(255, 0, 255)`) with their
|
Underlays color values (eg. `#ff00ff` or `rgb(255, 0, 255)`) with their
|
||||||
resultant color.
|
resultant color.
|
||||||
|
|
||||||
|
**custom_caret**
|
||||||
|
Customize the caret in the editor setting it to *underline*, *block* or
|
||||||
|
*line* at the init.lua file in your config folder.
|
||||||
|
For example add:
|
||||||
|
`config.plugins.custom_caret.shape = "block"`
|
||||||
|
|
||||||
|
**EditorConfig**
|
||||||
|
EditorConfig (https://editorconfig.org/) implementation for Lite XL
|
||||||
|
|
||||||
**ephemeral_tabs**
|
**ephemeral_tabs**
|
||||||
Preview tabs. Opening a doc will replace the contents of the preview tab.
|
Preview tabs. Opening a doc will replace the contents of the preview tab.
|
||||||
Marks tabs as non-preview on any change or tab double clicking.
|
Marks tabs as non-preview on any change or tab double clicking.
|
||||||
|
@ -137,7 +143,7 @@ File icons set for TreeView. Download TTF font to your config/fonts
|
||||||
folder from https://github.com/yamatsum/nonicons/tree/master/dist
|
folder from https://github.com/yamatsum/nonicons/tree/master/dist
|
||||||
|
|
||||||
**opacity**
|
**opacity**
|
||||||
Change the opaqueness/transparency of lite-xl using shift+mousewheel
|
Change the opaqueness/transparency of lite-xl using LAmiga+mousewheel
|
||||||
or a command.
|
or a command.
|
||||||
|
|
||||||
**openfilelocation**
|
**openfilelocation**
|
||||||
|
@ -161,13 +167,12 @@ Highlights regions of code that match the current selection
|
||||||
It adds a small clock at the bottom right corner.
|
It adds a small clock at the bottom right corner.
|
||||||
|
|
||||||
## Tips and tricks
|
## Tips and tricks
|
||||||
|
|
||||||
### Transitions
|
### Transitions
|
||||||
|
|
||||||
If you want to disable the transitions and make the editor faster,
|
If you want to disable the transitions and make the editor faster,
|
||||||
open your configuration file by clicking at the cog icon at the toolbar
|
open your configuration file by clicking at the cog icon at the toolbar
|
||||||
(bottom left, 6th icon) and add the following line at the end of the file,
|
(bottom left, 6th icon) and add the following line at the end of the file,
|
||||||
and then save it. You might need to restart your editor (CTRL+SHIFT+R)
|
and then save it. You might need to restart your editor.
|
||||||
|
|
||||||
```
|
```
|
||||||
config.transitions = false
|
config.transitions = false
|
||||||
|
@ -179,7 +184,7 @@ If you would like to hide files or whole folder from the left side bar list,
|
||||||
open your configuration by clicking at the cog icon at the toolbar
|
open your configuration by clicking at the cog icon at the toolbar
|
||||||
(bottom left sixth icon) and add the followline at the end of the file and
|
(bottom left sixth icon) and add the followline at the end of the file and
|
||||||
save it. This hides all the files that start with a dot, and all the `.info`
|
save it. This hides all the files that start with a dot, and all the `.info`
|
||||||
files. You might need to restart your editor (CTRL+SHIFT+R)
|
files. You might need to restart your editor.
|
||||||
|
|
||||||
```
|
```
|
||||||
config.ignore_files = {"^%.", "%.info$"}
|
config.ignore_files = {"^%.", "%.info$"}
|
||||||
|
@ -210,6 +215,18 @@ https://git.walkero.gr/walkero/lite-xl/issues
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [2.1.1r1] - 2022-01-08
|
||||||
|
### Changed
|
||||||
|
- Synced the code with the latest upstream master branch, which means that
|
||||||
|
this version is based on the latest available source
|
||||||
|
- Compiled with SDL 2.26
|
||||||
|
- Updated the colour themes and the plugins that are included in the release
|
||||||
|
- Compiled with gcc 11 on AmigaOS 4
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Set the default locale on AmigaOS 4, so as to fix some issues with decimal
|
||||||
|
numbers
|
||||||
|
|
||||||
## [2.1.0r1] - 2022-10-10
|
## [2.1.0r1] - 2022-10-10
|
||||||
### Added
|
### Added
|
||||||
- This version of LiteXL recognises changes that are done outside the editor
|
- This version of LiteXL recognises changes that are done outside the editor
|
||||||
|
@ -277,4 +294,3 @@ https://git.walkero.gr/walkero/lite-xl/issues
|
||||||
YOU MAY USE IT AT YOUR OWN RISK!
|
YOU MAY USE IT AT YOUR OWN RISK!
|
||||||
I will not be held responsible for any data loss or problems you might get
|
I will not be held responsible for any data loss or problems you might get
|
||||||
by using this software.
|
by using this software.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-- this file is used by lite-xl to setup the Lua environment when starting
|
-- this file is used by lite-xl to setup the Lua environment when starting
|
||||||
VERSION = "2.1.0r1"
|
VERSION = "2.1.1r1"
|
||||||
MOD_VERSION = "3"
|
MOD_VERSION = "3"
|
||||||
|
|
||||||
SCALE = tonumber(os.getenv("LITE_SCALE") or os.getenv("GDK_SCALE") or os.getenv("QT_SCALE_FACTOR")) or SCALE
|
SCALE = tonumber(os.getenv("LITE_SCALE") or os.getenv("GDK_SCALE") or os.getenv("QT_SCALE_FACTOR")) or SCALE
|
||||||
|
|
|
@ -6,4 +6,5 @@ int get_changes_dirmonitor(struct dirmonitor_internal* monitor, char* buffer, si
|
||||||
int translate_changes_dirmonitor(struct dirmonitor_internal* monitor, char* buffer, int size, int (*callback)(int, const char*, void*), void* data) { return -1; }
|
int translate_changes_dirmonitor(struct dirmonitor_internal* monitor, char* buffer, int size, int (*callback)(int, const char*, void*), void* data) { return -1; }
|
||||||
int add_dirmonitor(struct dirmonitor_internal* monitor, const char* path) { return -1; }
|
int add_dirmonitor(struct dirmonitor_internal* monitor, const char* path) { return -1; }
|
||||||
void remove_dirmonitor(struct dirmonitor_internal* monitor, int fd) { }
|
void remove_dirmonitor(struct dirmonitor_internal* monitor, int fd) { }
|
||||||
|
int get_mode_dirmonitor() { return 1; }
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "api.h"
|
#include "api.h"
|
||||||
<<<<<<< HEAD
|
|
||||||
#include "renderer.h"
|
#include "renderer.h"
|
||||||
#include "rencache.h"
|
#include "rencache.h"
|
||||||
=======
|
|
||||||
#include "../renderer.h"
|
|
||||||
#include "../rencache.h"
|
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
|
|
||||||
// a reference index to a table that stores the fonts
|
// a reference index to a table that stores the fonts
|
||||||
static int RENDERER_FONT_REF = LUA_NOREF;
|
static int RENDERER_FONT_REF = LUA_NOREF;
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
static int font_get_options(
|
static int font_get_options(
|
||||||
lua_State *L,
|
lua_State *L,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#if defined(__amigaos4__) || defined(__morphos__)
|
#if defined(__amigaos4__) || defined(__morphos__)
|
||||||
#define VSTRING "Lite XL 2.1.0r1 (10.10.2022)"
|
#define VSTRING "Lite XL 2.1.1r1 (08.01.2023)"
|
||||||
#define VERSTAG "\0$VER: " VSTRING
|
#define VERSTAG "\0$VER: " VSTRING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
#elif defined(__amigaos4__)
|
#elif defined(__amigaos4__)
|
||||||
|
#include <locale.h>
|
||||||
#include "platform/amigaos4.h"
|
#include "platform/amigaos4.h"
|
||||||
static CONST_STRPTR stack USED = "$STACK:102400";
|
static CONST_STRPTR stack USED = "$STACK:102400";
|
||||||
static CONST_STRPTR version USED = VERSTAG;
|
static CONST_STRPTR version USED = VERSTAG;
|
||||||
|
@ -294,4 +295,3 @@ init_lua:
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue