Commit Graph

185 Commits

Author SHA1 Message Date
superturbocat2001
e3dcd433b3 - Added TinyGL for ktcc
- Added TinyGL example "gears"

git-svn-id: svn://kolibrios.org@8405 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-14 14:38:38 +00:00
superturbocat2001
5b3b09698f - Removed melibc in ktcc
git-svn-id: svn://kolibrios.org@8404 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-14 12:27:58 +00:00
superturbocat2001
ccc4de1b67 - Removed non existing functions from math.h.
- Added "sys_change_window" function to kos32sys1.h. 
- Installed "pragma pack" for the structure in kolibrisys.h.

git-svn-id: svn://kolibrios.org@8403 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-14 12:19:25 +00:00
superturbocat2001
99103794f2 - Added simple function "getopt" in stdlib (tcc)
git-svn-id: svn://kolibrios.org@8380 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-12 20:09:30 +00:00
superturbocat2001
cfd4d26cef - Added definitions for clipboard functions.
- Added DATA macro for convenient memory access by offset.
- Removed kos32sys1beta.h since it is not used anywhere
(applicable to ktcc)

git-svn-id: svn://kolibrios.org@8374 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-11 21:05:55 +00:00
superturbocat2001
14e3d78c64 - Changed libgb assembly and added libcryptal (implementation of cryptoalgorithms from Brad Conte).
- Changed build libgb.
- Added memory.h for compatibility.

git-svn-id: svn://kolibrios.org@8367 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-11 17:07:49 +00:00
superturbocat2001
bed1d7841c Changed parameters of "socketpair" function in libck (ktcc)
git-svn-id: svn://kolibrios.org@8344 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-08 18:36:23 +00:00
superturbocat2001
4c90768ccb - network.obj loader has been moved to a separate libnetwork.a library
git-svn-id: svn://kolibrios.org@8338 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-07 23:36:57 +00:00
superturbocat2001
1094e71a7d - added network.obj loader
- added _ksys_kill_process function
in libck.a ktcc

git-svn-id: svn://kolibrios.org@8337 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-07 21:19:51 +00:00
superturbocat2001
195c220c21 fixed socketpair() function in libck
git-svn-id: svn://kolibrios.org@8317 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-04 06:40:20 +00:00
superturbocat2001
818c477d6f - Added functions for working with sockets in libck tcc
git-svn-id: svn://kolibrios.org@8315 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-03 17:27:05 +00:00
superturbocat2001
e303140339 Removed duplicate #define PATH_MAX
git-svn-id: svn://kolibrios.org@8290 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-01 16:30:24 +00:00
superturbocat2001
5451715e39 - Added "lsdir" function to libck ktcc.
- Added "fs" folder to build.bat in libck for tcc.
- Updated libck and dir_example

git-svn-id: svn://kolibrios.org@8289 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-01 16:19:41 +00:00
maxcodehack
3ffe214e13 Add Makefile to kos32-tcc sample programs
git-svn-id: svn://kolibrios.org@8282 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-30 07:38:09 +00:00
superturbocat2001
5941f0e334 - Added 4 functions to libck: getcwd, setcwd, mkdir, rmdir.
- Fixed Makefile for building "libck" under tcc. 
- Added example to new functions

git-svn-id: svn://kolibrios.org@8280 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-29 22:05:50 +00:00
superturbocat2001
dc1e174943 Disabled static linking when building Linux version of TCC.
git-svn-id: svn://kolibrios.org@8274 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-28 20:57:58 +00:00
superturbocat2001
2f517f2ecb Fixed Makefile.kos32 in TCC (New path to ld script)
git-svn-id: svn://kolibrios.org@8273 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-28 19:43:51 +00:00
superturbocat2001
dbc1c764b1 - Added compress target to Makefile.linux32 (Uses UPX)
- Fixed TCC for linux bug: does not find library and headers as well as start.o
- Updated kos32-tcc

git-svn-id: svn://kolibrios.org@8272 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-28 19:19:06 +00:00
superturbocat2001
2e992f24ea - Added TEAtool source files
- Compressed kos32-tcc
- Changed the paths of the output files in buid_all.sh

git-svn-id: svn://kolibrios.org@8251 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-24 15:13:42 +00:00
superturbocat2001
36b26f112a - Fixed ktcc build for linux
- Added Makefile.linux32
- Added TEAtool and fixed console title
- Fixed crash of THashView

git-svn-id: svn://kolibrios.org@8250 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-24 14:40:29 +00:00
Kirill Lipatov (Leency)
9b502d851f rename libmelibc.a_ into libmelibc.a
git-svn-id: svn://kolibrios.org@8234 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-21 15:30:09 +00:00
maxcodehack
f75ba1987d Add example to TCC melibc #2
git-svn-id: svn://kolibrios.org@8231 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-21 13:31:00 +00:00
maxcodehack
eeaa6d8239 Add melibc sample to TCC
git-svn-id: svn://kolibrios.org@8228 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-21 13:04:18 +00:00
maxcodehack
25cf1adde0 Fix 'dynamic.c 'autobuild (build_all.sh)
Add 'console.c' to autobuild

git-svn-id: svn://kolibrios.org@8195 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-14 17:57:14 +00:00
maxcodehack
03f5f50786 Fix drawing artefacts in boxlib example
git-svn-id: svn://kolibrios.org@8194 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-14 17:43:59 +00:00
maxcodehack
a797e5d3ef move image
git-svn-id: svn://kolibrios.org@8189 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-13 17:59:30 +00:00
maxcodehack
6e33acd6ee Add libimg example to build_all.sh
git-svn-id: svn://kolibrios.org@8188 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-13 17:54:21 +00:00
maxcodehack
9a24f3f7fb Tcc:
Add libimg example, update other examples

git-svn-id: svn://kolibrios.org@8187 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-13 17:47:07 +00:00
maxcodehack
dee3b0b3ed Add boxlib example without lib kolibri_gui. Only kos32sys.h (GCC)
git-svn-id: svn://kolibrios.org@8185 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-13 16:40:41 +00:00
maxcodehack
1930e23f58 Ktcc:
- kos32sys1.h: Tcc dont support aliasing but support defines
- boxlib sample: Update sample for upper fix
- Rasterworks example: Fix 'bright' letters

git-svn-id: svn://kolibrios.org@8171 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-10 18:53:57 +00:00
Magomed Kostoev (mkostoevr)
147e8fa432 Microrefactoring + check build system out.
git-svn-id: svn://kolibrios.org@8159 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-07 09:07:06 +00:00
Magomed Kostoev (mkostoevr)
c369f06816 Cool, this was not my mistake, patch TCC again.
Admin, please look what's happened with build server, GCC needs a missing library?

git-svn-id: svn://kolibrios.org@8157 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-06 20:22:05 +00:00
Magomed Kostoev (mkostoevr)
ffcd3a73e0 Ok... What about the binary? Did IT break the build?
git-svn-id: svn://kolibrios.org@8156 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-06 20:17:06 +00:00
Magomed Kostoev (mkostoevr)
fa67855b83 Try to beat the strange break - revert all files from the last commit.
git-svn-id: svn://kolibrios.org@8155 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-06 20:14:24 +00:00
Magomed Kostoev (mkostoevr)
0fe740bca1 TCC: Add -nobss option to not include BSS sections in output file.
git-svn-id: svn://kolibrios.org@8154 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-06 20:02:56 +00:00
maxcodehack
a26092c937 Update boxlib example:
Add progressbar

git-svn-id: svn://kolibrios.org@8110 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-18 16:08:37 +00:00
maxcodehack
1c69f15cea Edit samples
git-svn-id: svn://kolibrios.org@8109 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-18 11:18:51 +00:00
maxcodehack
8ce9d8845f Remove libconsole.a and libbox_lib.a and their sources
Now we can use console via conio.h
Boxlib via libbox.a

git-svn-id: svn://kolibrios.org@8108 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-18 11:07:44 +00:00
superturbocat2001
6d98726351 - Added libbox.a and libbuf2d.a to TinyC.
- The structure of the header files has been reorganized.

git-svn-id: svn://kolibrios.org@8107 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-17 17:31:09 +00:00
maxcodehack
6154138ea6 clayer TinyC
- Add new sample
- Fix bug: 'Unexpected stack end'

git-svn-id: svn://kolibrios.org@8106 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-17 16:30:47 +00:00
maxcodehack
0e3c6b922f Add .o
git-svn-id: svn://kolibrios.org@8105 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-17 13:27:07 +00:00
maxcodehack
d887c0ddfb Add C_Layer for TinyC
- Boxlib wrapper

git-svn-id: svn://kolibrios.org@8104 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-17 13:25:57 +00:00
superturbocat2001
fe1a451ca0 Added source code for libraries
git-svn-id: svn://kolibrios.org@8102 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-15 23:20:59 +00:00
superturbocat2001
71b2505f8a Added libraries to ktcc: "rasterworks", "libimg", "libgb", "msgbox". And also an examples for these libraries.
Fixed header file "msgbox.h"

git-svn-id: svn://kolibrios.org@8101 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-15 23:17:06 +00:00
superturbocat2001
df0d0be7d4 Added "libmsgbox" to ktcc.
Added examples for working with coff-libraries and "libmsgbox" to ktcc. 
Modified binutils to work normally via console.obj.

git-svn-id: svn://kolibrios.org@8098 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-14 00:28:46 +00:00
Magomed Kostoev (mkostoevr)
1d69bdef68 Add library for importing functions from Box_lib.obj via tcc.
git-svn-id: svn://kolibrios.org@8057 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-08-21 14:20:54 +00:00
Magomed Kostoev (mkostoevr)
a78dbc7bec Typo in dlfcn.c
git-svn-id: svn://kolibrios.org@7950 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-19 12:05:54 +00:00
Magomed Kostoev (mkostoevr)
9cf480409c Add functions from <libgen.h>
Add memrchr.c

git-svn-id: svn://kolibrios.org@7949 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-19 11:02:39 +00:00
Magomed Kostoev (mkostoevr)
01b4a611af Make examples more presentable.
git-svn-id: svn://kolibrios.org@7948 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-19 09:38:59 +00:00
Magomed Kostoev (mkostoevr)
fa93417e04 Add lib binaries for dynamic linking (IDK, why SVN skept em before)
git-svn-id: svn://kolibrios.org@7926 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-16 08:15:45 +00:00
Magomed Kostoev (mkostoevr)
90cf9246ac Implement dynamic linking with system libraries via -lsyslibname:
console.obj
http.ibj
InputBox.obj
Add header files for apps what dynamically link these libraries.


git-svn-id: svn://kolibrios.org@7925 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-16 08:07:10 +00:00
Kirill Lipatov (Leency)
842c228f23 add tcc/samples/build_all.sh
git-svn-id: svn://kolibrios.org@7910 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-11 07:32:44 +00:00
a7d4a56bcc fix bug in "localtime" and "mktime" functions
git-svn-id: svn://kolibrios.org@7888 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-07 12:22:17 +00:00
Magomed Kostoev (mkostoevr)
d7529d70c3 Fix issue #48 [http://bugs.kolibri-n.org/?id=48]
git-svn-id: svn://kolibrios.org@7857 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-03 08:21:08 +00:00
Magomed Kostoev (mkostoevr)
a76259a20a Update libck.a:
Add <dlfcn.h> functions
Update sysmalloc, sysrealloc and sysfree to preserve general purpose registers.
Remove (likely accidentaly inserted) wtalloc.o.

git-svn-id: svn://kolibrios.org@7856 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-03 08:13:04 +00:00
Magomed Kostoev (mkostoevr)
71b99beec5 Make libck project self-containing.
git-svn-id: svn://kolibrios.org@7855 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-03 08:09:36 +00:00
Magomed Kostoev (mkostoevr)
be1d6256c6 Second call of dlerror should return NULL by the POSIX standard.
git-svn-id: svn://kolibrios.org@7851 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-30 11:01:55 +00:00
Kirill Lipatov (Leency)
ef6d8a9089 remove duplication simple, force to add lib/*
git-svn-id: svn://kolibrios.org@7850 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-30 10:05:04 +00:00
Kirill Lipatov (Leency)
b364fe71e3 TCC: join two dirs into one
git-svn-id: svn://kolibrios.org@7849 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-30 09:59:56 +00:00
Magomed Kostoev (mkostoevr)
46051e254f Add <dlfcn.h> functions to libck.a (these functions initialize COFF library the same way as dll.inc)
git-svn-id: svn://kolibrios.org@7847 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-30 08:47:52 +00:00
0408ac5bde kolibrisys.h fix: added missing _ksys_pci_write_config_dword signature
git-svn-id: svn://kolibrios.org@7820 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-23 11:22:34 +00:00
siemargl
f81857f08c better suballocator
git-svn-id: svn://kolibrios.org@7537 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-11-07 17:27:07 +00:00
siemargl
2650f5831f suballocator plus path fixes
git-svn-id: svn://kolibrios.org@7520 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-11-01 17:24:22 +00:00
siemargl
6642abcbb2 tcc lib fix coffload, fwrite
git-svn-id: svn://kolibrios.org@7418 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-09-25 11:52:22 +00:00
siemargl
524cab3cd8 added read buffering, ungetc
git-svn-id: svn://kolibrios.org@7184 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-03-12 20:41:06 +00:00
siemargl
b7fe2ec210 fix libck
git-svn-id: svn://kolibrios.org@7172 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-03-05 17:53:31 +00:00
2c778124e3 Remove some duplicates: proc32.inc, macros.inc, struct.inc, etc.
git-svn-id: svn://kolibrios.org@7134 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-20 00:51:00 +00:00
siemargl
80c223b078 fix zero BSS segments
git-svn-id: svn://kolibrios.org@6858 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-06 19:46:12 +00:00
d800abd154 Add ktcc to autobuild
git-svn-id: svn://kolibrios.org@6829 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-19 02:34:41 +00:00
siemargl
726024dfe0 fix startup, gcc5.4 ready
git-svn-id: svn://kolibrios.org@6574 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-07 09:23:37 +00:00
siemargl
26c74ab3f2 samples upd
git-svn-id: svn://kolibrios.org@6460 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-07-09 19:44:55 +00:00
siemargl
3e571bd7cc small polish, samples
git-svn-id: svn://kolibrios.org@6443 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-06-10 11:10:52 +00:00
siemargl
227eb8887f debugger info, big stack opt
git-svn-id: svn://kolibrios.org@6441 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-06-05 17:15:52 +00:00
siemargl
65400f0014 small math fix & readme
git-svn-id: svn://kolibrios.org@6439 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-29 05:32:28 +00:00
siemargl
ace23ebbe2 libc testsuite + fixes
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-19 12:15:22 +00:00
siemargl
cd8030cee3 ctype+scanf fix
git-svn-id: svn://kolibrios.org@6432 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-16 11:03:59 +00:00
siemargl
9eb1268c4d added *scanf family
git-svn-id: svn://kolibrios.org@6431 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-15 19:19:22 +00:00
siemargl
b5e7b54c7a compiler 0.9.26 release
git-svn-id: svn://kolibrios.org@6429 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-14 08:56:15 +00:00
siemargl
1499413a0c printf fixes
git-svn-id: svn://kolibrios.org@6425 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-12 11:23:42 +00:00
siemargl
af35cc6783 release ktcc 0.9.26
git-svn-id: svn://kolibrios.org@6424 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-05-11 14:53:54 +00:00
siemargl
9bafc8aa7b bugfixing
git-svn-id: svn://kolibrios.org@6412 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-04-30 13:50:04 +00:00
siemargl
845d2f0618 small fixes. need more
git-svn-id: svn://kolibrios.org@6410 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-04-27 19:59:20 +00:00
Kirill Lipatov (Leency)
20ace41f1f system_colors: global rename and change meaning of "grab_button" to "work_3d_dark", and "grab_button_text" to "work_3d_light", the legacy of new_sys_colors table
git-svn-id: svn://kolibrios.org@6196 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-11 10:44:47 +00:00
andrew_programmer
48ecbd9104 Mathematical functions are added some.
It is added makefile for compilation of programs under KolibriOS with the help gcc.

git-svn-id: svn://kolibrios.org@696 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-01-14 19:33:34 +00:00
andrew_programmer
16f5992719 Mistakes in functions of work with files and with system calls KolibriOS are corrected.
New functions for work with system calls KolibriOS are added. Functions for format output 
are added: printf (), fprintf (), sprintf (), snprintf (), vsnprintf (). For material 
numbers it is meanwhile supported only format output the (%f), and exponential output a (%e)
is not realized yet. 
Functions for format output correctly work only in GCC because TinyC incorrectly works with
the functions containing variable number of arguments.

git-svn-id: svn://kolibrios.org@647 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-10-15 09:42:17 +00:00