7 |
8 |
--------------------------------------------------------------------------------
/libfasteval/AUTHORS:
--------------------------------------------------------------------------------
1 | libmatheval authors:
2 |
3 | - Aleksandar Samardzic
4 | Department of Mathematics, University of Belgrade
5 |
6 | libfasteval authors:
7 |
8 | - Astie Teddy
9 | University of Tours
--------------------------------------------------------------------------------
/doc.ft:
--------------------------------------------------------------------------------
1 | # Footer for the repository version of the quick starting guide
2 |
3 | If you want to dig deepeer, do not hesitate to browse the documentation.
4 | {doc/commands|Command index} and {doc/spec/index|Specification index} are
5 | good places to start. Have fun !
--------------------------------------------------------------------------------
/libfasteval/THANKS:
--------------------------------------------------------------------------------
1 | This is list of people contributed to libmatheval by suggesting
2 | improvements and/or submitting actual code:
3 |
4 | Al Danial
5 | Giulio Bottazzi
6 | Steven G. Johnson
7 |
--------------------------------------------------------------------------------
/tests/basics/block.out.ok:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit.
2 | Curabitur eget justo convallis, sollicitudin massa ut,
3 | condimentum lacus. Etiam sagittis suscipit nisl vitae
4 | condimentum. Phasellus mollis, velit nec eleifend mattis,
5 | tortor turpis interdum sem, malesuada lacinia enim purus
6 | nec nisl. Ut semper a tortor finibus aliquet. Interdum
7 |
--------------------------------------------------------------------------------
/modules/Makefile:
--------------------------------------------------------------------------------
1 | MODULES = sample batbox
2 | MODULES_BIN = $(addsuffix .bin,$(MODULES))
3 | MODULES_CLEAN = $(addsuffix .clean,$(MODULES))
4 |
5 | all: $(MODULES)
6 | bin: $(MODULES_BIN)
7 | clean: $(MODULES_CLEAN)
8 |
9 | $(MODULES):
10 | $(MAKE) -C $@ all
11 |
12 | $(MODULES_BIN):
13 | $(MAKE) -C $(basename $@) bin
14 |
15 | $(MODULES_CLEAN):
16 | $(MAKE) -C $(basename $@) clean
--------------------------------------------------------------------------------
/libcu8/CHANGELOG:
--------------------------------------------------------------------------------
1 | ,--. ,--. ,--. ,---.
2 | | | `--' | |-. ,---. ,--.,--. | o |
3 | | | ,--. | .-. ' | .--' | || | .' '.
4 | | '--. | | | `-' | \ `--. ' '' ' | o |
5 | `-----' `--' `---' `---' `----' `---'
6 | Changelog
7 |
8 | Version 1.0
9 |
10 | Initial release.
--------------------------------------------------------------------------------
/modules/sample/Sample.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 |
6 | int my_foo(char* line)
7 | {
8 | line += 3;
9 |
10 | fprintf(fOutput, "%s CRY NOOOOPS" PBAT_NL, line);
11 | return 0;
12 | }
13 |
14 | void pBat_ModuleAttach(void)
15 | {
16 | fprintf(fOutput, "Registering FOO command !" PBAT_NL);
17 | pBat_RegisterCommand("FOO", my_foo);
18 | }
19 |
--------------------------------------------------------------------------------
/tests/basics/pipe.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | (echo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
3 | echo Curabitur eget justo convallis, sollicitudin massa ut,
4 | echo condimentum lacus. Etiam sagittis suscipit nisl vitae
5 | echo condimentum. Phasellus mollis, velit nec eleifend mattis,
6 | echo tortor turpis interdum sem, malesuada lacinia enim purus
7 | echo nec nisl. Ut semper a tortor finibus aliquet. Interdum ) | find condimentum
--------------------------------------------------------------------------------
/tests/basics/pipeext.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | (echo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
3 | echo Curabitur eget justo convallis, sollicitudin massa ut,
4 | echo condimentum lacus. Etiam sagittis suscipit nisl vitae
5 | echo condimentum. Phasellus mollis, velit nec eleifend mattis,
6 | echo tortor turpis interdum sem, malesuada lacinia enim purus
7 | echo nec nisl. Ut semper a tortor finibus aliquet. Interdum ) | dump /h /t:c /b
--------------------------------------------------------------------------------
/tests/basics/block.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | (echo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
3 | echo Curabitur eget justo convallis, sollicitudin massa ut,
4 | echo condimentum lacus. Etiam sagittis suscipit nisl vitae
5 | echo condimentum. Phasellus mollis, velit nec eleifend mattis,
6 | echo tortor turpis interdum sem, malesuada lacinia enim purus
7 | echo nec nisl. Ut semper a tortor finibus aliquet. Interdum ) > block
8 | type block
--------------------------------------------------------------------------------
/modules/sample/Makefile:
--------------------------------------------------------------------------------
1 | ROOTDIR = ../..
2 | include $(ROOTDIR)/config.mk
3 |
4 | SOURCES = Sample.c
5 |
6 | OBJ_FILES = $(SOURCES:.c=.o) ../lib/pBat_Module.o
7 |
8 | LDFLAGS += $(LIBPBAT_LD)
9 | CFLAGS += $(LIBPBAT_INC) -I../lib/
10 |
11 | all: sample
12 | bin: sample
13 | mkdir -p $(BINDIR)/modules
14 | cp sample$(EXEEXT) $(BINDIR)/modules/
15 |
16 | clean:
17 | rm -rf $(OBJ_FILES)
18 |
19 | sample: $(OBJ_FILES)
20 | $(CC) -shared -fvisibility=hidden -o sample $(OBJ_FILES) $(LDFLAGS)
21 |
--------------------------------------------------------------------------------
/modules/batbox/Makefile:
--------------------------------------------------------------------------------
1 | ROOTDIR = ../..
2 | include $(ROOTDIR)/config.mk
3 |
4 | MODULE = batbox
5 | SOURCES = batbox.c
6 |
7 | OBJ_FILES = $(SOURCES:.c=.o) ../lib/pBat_Module.o
8 |
9 | LDFLAGS += $(LIBPBAT_LD)
10 | CFLAGS += $(LIBPBAT_INC) -I../lib/
11 |
12 | all: $(MODULE)
13 |
14 | bin: $(MODULE)
15 | mkdir -p $(BINDIR)/modules
16 | cp $(MODULE)$(EXEEXT) $(BINDIR)/modules/
17 |
18 | clean:
19 | rm -rf $(OBJ_FILES)
20 |
21 | $(MODULE)$(EXEEXT): $(OBJ_FILES)
22 | $(CC) -shared -fvisibility=hidden -o $(MODULE)$(EXEEXT) $(OBJ_FILES) $(LDFLAGS)
23 |
24 | .PHONY: all clean bin
--------------------------------------------------------------------------------
/man/en_US/break.tea:
--------------------------------------------------------------------------------
1 | {{BREAK Command}}
2 |
3 | The {break} command is a command inherited from {MS-DOS} systems.
4 | It was used to enable or discard the catch of the interruption
5 | signal (ie. the signal raised when CTRL-C is pressed).
6 |
7 | {{Synopsis}}
8 |
9 | ${BREAK [ON | OFF]}
10 |
11 | Does nothing. Interruption signal capture is always enabled with {pbat|pBat}.
12 | This command does also nothing since {Vista} on {cmd}.
13 |
14 | {{Compatibility}}
15 |
16 |
17 | Compatible with {cmd}. Available since {1.0b}
18 |
19 | {{See also}}
20 |
21 | {commands|Commands list}
22 |
--------------------------------------------------------------------------------
/libcu8/src/iconv/iconv.h:
--------------------------------------------------------------------------------
1 | #ifndef _LIBICONV_H
2 | #define _LIBICONV_H
3 | #include
4 | #ifndef WINICONV_CONST
5 | # ifdef ICONV_CONST
6 | # define WINICONV_CONST ICONV_CONST
7 | # else
8 | # define WINICONV_CONST const
9 | # endif
10 | #endif
11 | #ifdef __cplusplus
12 | extern "C" {
13 | #endif
14 | typedef void* iconv_t;
15 | iconv_t iconv_open(const char *tocode, const char *fromcode);
16 | int iconv_close(iconv_t cd);
17 | size_t iconv(iconv_t cd, WINICONV_CONST char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
18 | #ifdef __cplusplus
19 | }
20 | #endif
21 | #endif
22 |
--------------------------------------------------------------------------------
/man/fr_FR/break.tea:
--------------------------------------------------------------------------------
1 | {{Commande BREAK}}
2 |
3 | La commande break est une commande héritée des systèmes MS-DOS. Elle
4 | permettait d'activer la capture du signal d'interuption (ie. Quand l'utilisateur
5 | appuie sur CTRL-C).
6 |
7 | {{Synopsis}}
8 |
9 | ${BREAK [ON | OFF]}
10 |
11 | Ne fait rien; La capture du signal d'interuption est effective constament
12 | sur {pbat|pBat}. Cette commande n'est plus opérante sur les systèmes {Windows}
13 | depuis {Vista}.
14 |
15 | {{Compatibilité}}
16 |
17 | Compatible avec {cmd.exe}. Disponible depuis la version {1.0b}.
18 |
19 | {{À voir aussi}}
20 |
21 | {commands|Liste des commandes}
22 |
--------------------------------------------------------------------------------
/config.c.in:
--------------------------------------------------------------------------------
1 | /* generate broken code if neither WIN32 or MINGW64-w64 is defined */
2 |
3 | #define CHECK_WIN32 1
4 | #define CHECK_MINGW_W64 2
5 |
6 | #ifdef CHECK_@fnp@
7 | #if CHECK_@fnp@ == CHECK_WIN32
8 | #ifndef WIN32
9 | break
10 | #endif /* WIN32 */
11 | #elif CHECK_@fnp@ == CHECK_MINGW_W64
12 | #ifdef __MINGW32__
13 | #include <_mingw.h>
14 | #ifndef __MINGW64_VERSION_MAJOR
15 | break
16 | #endif /* __MINGW64_VERSION_MAJOR */
17 | #else /*__MINGW32__ */
18 | break
19 | #endif /* __MINGW32__ */
20 | #endif /* CHECKS */
21 | #endif /* CHECK_@fnp@ */
22 |
23 | int main()
24 | {
25 | return 0;
26 | }
27 |
--------------------------------------------------------------------------------
/man/footer:
--------------------------------------------------------------------------------
1 |
2 |
10 |
12 |
14 |
15 |
19 |
--------------------------------------------------------------------------------
/repo.ft:
--------------------------------------------------------------------------------
1 | # Footer for the repository version of the quick starting guide
2 |
3 | For more documentations and updates, please see the
4 | {http://picobat.org|official Picobat website}.
5 |
6 |
7 | {{What's in this folder ?}}
8 |
9 | There is a few interesting things in this directory that you might need:
10 |
11 | - {BUILD.readme|BUILD.readme} : A text file describing how to build {Picobat}
12 |
13 | - {WHATSNEW.md|WHATSNEW} : A log of the changes made to Picobat
14 |
15 | - {THANKS.md|THANKS} : A list of all the contributors to the project.
16 |
17 | - {GUIDELINES.md|GUIDELINES} : A text files giving guidelines on how to
18 | modify Picobat.
19 |
20 | - {COPYING.*} : The license of the project and of projects used by Picobat.
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.o
2 | *.a
3 | *.exe
4 | *~
5 | *.pot
6 | *.mo
7 | *.txt
8 | bin/
9 | femto-subst
10 | femto-config.mk
11 | femto-test\.out
12 | config.c
13 | config.h
14 | libcu8/config.h
15 | libcu8/config.c
16 | libcu8/test/log_msg
17 | libinteval/lexer.c
18 | libinteval/parser.c
19 | libinteval/parser.h
20 | libmatheval/config.c
21 | libmatheval/config.h
22 | libmatheval/lib/parser.c
23 | libmatheval/lib/parser.h
24 | libmatheval/lib/scanner.c
25 | dos9/dos9
26 | dos9ize/dos9ize
27 | dump/dump
28 | tea/tea
29 | build-dbg\.sh
30 | build-musl\.sh
31 | dump/dump_h_gen
32 | scripts/Dos9_Auto\.bat
33 | dump/dump.h
34 | libmatheval/femto-test\.out
35 | modules/batbox/batbox
36 | modules/sample/sample
37 |
38 | libfasteval/lib/parser.c
39 | libfasteval/lib/parser.h
40 | libfasteval/lib/scanner.c
--------------------------------------------------------------------------------
/COPYING.darkbox:
--------------------------------------------------------------------------------
1 | Darkbox - A Fast and Portable Console IO Server
2 | Copyright (C) 2016-2018 Teddy ASTIE
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted, provided that the above
6 | copyright notice and this permission notice appear in all copies.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: Realease
2 | on: [push, pull_request]
3 |
4 | jobs:
5 | build:
6 | runs-on: windows-latest
7 | defaults:
8 | run:
9 | shell: msys2 {0}
10 | steps:
11 | - uses: actions/checkout@v2
12 | - uses: msys2/setup-msys2@v2
13 | with:
14 | msystem: MINGW64
15 | update: true
16 | install: git base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-dlfcn zip
17 | - name: CI-Build
18 | run: |
19 | make config use-libcu8
20 | LDFLAGS='-static -s' make dist
21 |
22 | - uses: "marvinpinto/action-automatic-releases@latest"
23 | with:
24 | repo_token: "${{ secrets.GITHUB_TOKEN }}"
25 | automatic_release_tag: "latest"
26 | prerelease: true
27 | title: "Development Build"
28 | files: |
29 | ./picobat-*.zip
30 |
--------------------------------------------------------------------------------
/pbat/rc/res.rc:
--------------------------------------------------------------------------------
1 | 0 ICON "pbat.ico"
2 | 1 VERSIONINFO
3 | FILEVERSION 10,11,10,1
4 | PRODUCTVERSION 10,11,10,1
5 | FILEOS 0x4
6 | FILETYPE 0x1
7 | {
8 | BLOCK "StringFileInfo"
9 | {
10 | BLOCK "040904E4"
11 | {
12 | VALUE "CompanyName", "PicoBAT Team"
13 | VALUE "Developer", "darkbatcher & TSnake41"
14 | VALUE "OriginalFilename", "PBAT.exe"
15 | VALUE "Comments", "PBAT"
16 | VALUE "FileDescription", "PBAT"
17 | VALUE "InternalName", "PBAT"
18 | VALUE "ProductName", "PBAT"
19 | VALUE "LegalCopyright", "\xA9 2022 PicoBAT Team"
20 | VALUE "Build", "2022"
21 | VALUE "FileVersion", "10.11.10.01"
22 | VALUE "ProductVersion", "10.11.10.01"
23 | VALUE "LegalTrademarks", "\xA9 2022 PicoBAT Team"
24 | VALUE "Debugger", "0"
25 | }
26 | }
27 |
28 | BLOCK "VarFileInfo"
29 | {
30 | VALUE "Translation", 0x041F, 0x04E4
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/libcu8/config.c.in:
--------------------------------------------------------------------------------
1 | /*
2 | Dos9 Makefiles, The Dos9 project
3 | Copyright (C) 2012-2018 Romain Garbi (DarkBatcher)
4 |
5 | This program is free software: you can redistribute it and/or modify
6 | it under the terms of the GNU General Public License as published by
7 | the Free Software Foundation, either version 3 of the License, or
8 | (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program. If not, see