mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-05 20:26:53 +08:00
copyright notice updated for 2022 (#172)
This commit is contained in:
parent
f3b220106c
commit
42883eb783
3
LICENSE
3
LICENSE
@ -1,6 +1,7 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Thakee Nathees
|
Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<p align="center" >
|
<p align="center" >
|
||||||
<img src="https://user-images.githubusercontent.com/41085900/117528974-88fa8d00-aff2-11eb-8001-183c14786362.png" width="500" >
|
<img src="https://user-images.githubusercontent.com/41085900/161365989-f3fd47bb-7ea7-4114-8e9b-2224e1193079.png" width="500" >
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
**Pocketlang** is a small (~3000 semicolons) and [fast](https://github.com/ThakeeNathees/pocketlang#performance)
|
**Pocketlang** is a small (~3000 semicolons) and [fast](https://github.com/ThakeeNathees/pocketlang#performance)
|
||||||
@ -79,10 +79,8 @@ cl /Fepocket cli/*.c src/*.c /Isrc/include && rm *.obj
|
|||||||
```
|
```
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
To run make file on windows with `mingw`, you require `make` and `find` unix tools in your path.
|
To run the make file on windows with `mingw`, you require the GNU `make` tool which you can get
|
||||||
Which you can get from [msys2](https://www.msys2.org/) or [cygwin](https://www.cygwin.com/). Run
|
from [msys2](https://www.msys2.org/) or [cygwin](https://www.cygwin.com/).
|
||||||
`set PATH=<path-to-env/usr/bin/>;%PATH% && make`, this will override the system `find` command with
|
|
||||||
unix `find` for the current session, and run the `make` script.
|
|
||||||
|
|
||||||
#### Windows batch script
|
#### Windows batch script
|
||||||
```
|
```
|
||||||
|
18
build.bat
18
build.bat
@ -20,17 +20,21 @@ shift
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
:PARSE_ARGS
|
:PARSE_ARGS
|
||||||
if (%1)==(-clean) goto :CLEAN
|
if (%1)==(-h) goto :PRINT_USAGE
|
||||||
|
if (%1)==(-c) goto :CLEAN
|
||||||
if (%1)==(-r) set debug_build=false&& goto :SHIFT_ARG_1
|
if (%1)==(-r) set debug_build=false&& goto :SHIFT_ARG_1
|
||||||
if (%1)==(-s) set shared_lib=true&& goto :SHIFT_ARG_1
|
if (%1)==(-s) set shared_lib=true&& goto :SHIFT_ARG_1
|
||||||
if (%1)==() goto :CHECK_MSVC
|
if (%1)==() goto :CHECK_MSVC
|
||||||
|
|
||||||
|
echo Invalid argument "%1"
|
||||||
|
|
||||||
:PRINT_USAGE
|
:PRINT_USAGE
|
||||||
echo Usage: call build.bat [options ...]
|
echo Usage: call build.bat [options ...]
|
||||||
echo options:
|
echo options:
|
||||||
|
echo -h display this message
|
||||||
echo -r Compile the release version of pocketlang (default = debug)
|
echo -r Compile the release version of pocketlang (default = debug)
|
||||||
echo -s Link the pocket as shared library (default = static link).
|
echo -s Link the pocket as shared library (default = static link).
|
||||||
echo -clean Clean all compiled/generated intermediate binary.
|
echo -c Clean all compiled/generated intermediate binary.
|
||||||
goto :END
|
goto :END
|
||||||
|
|
||||||
:: ----------------------------------------------------------------------------
|
:: ----------------------------------------------------------------------------
|
||||||
@ -89,6 +93,12 @@ set addnl_cdefines=/D_CRT_SECURE_NO_WARNINGS
|
|||||||
set root_dir=..\..\..\
|
set root_dir=..\..\..\
|
||||||
|
|
||||||
if "%debug_build%"=="false" (
|
if "%debug_build%"=="false" (
|
||||||
|
|
||||||
|
:: Not sure why, but the release build are much slower with this script.
|
||||||
|
:: I might have to double check the compilation flags.
|
||||||
|
echo TODO: This Batch script doesn't support release builds for now
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
set cflags=%cflags% -O2 -MD
|
set cflags=%cflags% -O2 -MD
|
||||||
set target_dir=build\release\
|
set target_dir=build\release\
|
||||||
) else (
|
) else (
|
||||||
@ -152,8 +162,8 @@ goto :SUCCESS
|
|||||||
|
|
||||||
:CLEAN
|
:CLEAN
|
||||||
|
|
||||||
if exist "debug" rmdir /S /Q "debug"
|
if exist "build/debug" rmdir /S /Q "build/debug"
|
||||||
if exist "release" rmdir /S /Q "release"
|
if exist "build/release" rmdir /S /Q "build/release"
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Files were cleaned.
|
echo Files were cleaned.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 Thakee Nathees
|
* Copyright (c) 2020-2022 Thakee Nathees
|
||||||
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
||||||
* Distributed Under The MIT License
|
* Distributed Under The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user