Commit Graph

467 Commits

Author SHA1 Message Date
Stas Degteff
cccfeb5b1e update comment 2011-02-20 22:21:41 +00:00
Stas Degteff
6e221f4c52 workaround for implementation "speciality" in snprintf() and vsnprintf() from Microsoft 2011-02-20 21:30:47 +00:00
Stas Degteff
00d2ebd8c6 Fix gsprintf() logic 2011-02-20 20:41:48 +00:00
Stas Degteff
5e98926932 New preprocessor macroses for compiler verstion tests: __GNUC_LESS(maj,min), __GNUC_NOT_LESS(maj, min), __VISUAL_STUDIO_LESS(maj, min), __VISUAL_STUDIO_NOT_LESS(maj, min), __VISUAL_C_LESS(maj, min) and __VISUAL_C_NOT_LESS(maj, min) 2011-02-20 16:19:32 +00:00
Stas Degteff
e09f554a2f Use common-use macro HAVE_VSNPRINTF and HAVE__VSNPRINTF instead G_HAS_VSNPRINTF 2011-02-20 00:08:06 +00:00
Stas Degteff
72293cb2b7 Update build files for Microsoft Visual Studio. Patch from Semen Panevin 2:5025/121 2011-02-19 21:06:40 +00:00
Stas Degteff
02a87e8e2e Fix MS VS 6.0 build, where string:clear() is not exist. Use one instanse of class string for all temporary strings 2011-02-19 20:14:58 +00:00
Stas Degteff
1f25fbac5f snprintf() and vsnprintf() for compilers without his 2011-02-19 18:46:06 +00:00
Stas Degteff
3e074d5127 Update master build file. 2011-02-19 18:45:27 +00:00
Stas Degteff
e3217ec9be Add comment 2011-02-19 02:08:41 +00:00
Stas Degteff
c3eaefb7aa Move all curses-related code into gcui library. Very big thank to Semen Panevin 2:5025/121 2011-02-18 21:47:20 +00:00
Stas Degteff
a809315916 GCUI: Golded+ Character-oriented User Interface library. 2011-02-18 19:46:02 +00:00
Stas Degteff
bfd77e1a19 New C++ version for PathCopy() 2011-02-17 23:00:49 +00:00
Stas Degteff
b7e669bf1e use strschg_environ() with control length of string 2011-02-17 22:59:54 +00:00
Stas Degteff
d0ea4b0d6c Additional checks in strschg_environ 2011-02-17 22:05:27 +00:00
Stas Degteff
0119f9a971 create 2nd strschg_environ(): one with control length of string, second without this check 2011-02-17 21:35:21 +00:00
Stas Degteff
75e84ece09 Add C++ version of the function GetFilesize() 2011-02-17 19:51:28 +00:00
Stas Degteff
08e43413cf Add C++ version of function StripBackslash() 2011-02-17 19:35:27 +00:00
Stas Degteff
13d2b4f059 Describe all operations of AddBackslash() 2011-02-17 19:09:22 +00:00
Stas Degteff
5bd7fc2a28 Replace part of code of strschg_environ() using pure C++ 2011-02-17 19:06:41 +00:00
Stas Degteff
bc54b3f3b3 Accuracy, not strong test length of string in strschg_environ 2011-02-17 15:37:30 +00:00
Stas Degteff
6a6da92414 Fix FreeBSD build: include malloc.h only when a macro HAVE_MALLOC_H defined 2011-02-17 11:18:16 +00:00
Stas Degteff
043e69a93a Prevent use NULL-pointer. 2011-02-14 19:57:28 +00:00
Stas Degteff
76da9f5b0f Use macroses GOLD_SLASH_CHR GOLD_SLASH_STR GOLD_WRONG_SLASH_CHR GOLD_WRONG_SLASH_STR instead string and char constatnts / and \ 2011-02-14 00:27:05 +00:00
Stas Degteff
29c8acf226 Prevent buffer overflow in pathnames constructor 2011-02-13 23:51:04 +00:00
Stas Degteff
3ebbe6d352 Now Golded+ outputs errors of reading of a config in stderr instead stdout 2011-02-13 13:21:15 +00:00
Stas Degteff
cd61304518 fix eof 2011-02-13 13:20:19 +00:00
Stas Degteff
d6cc923213 Explicit specify type for shift operations is required by MS VC. Patch from Max Vasilyev 2:5057/77 2010-12-20 03:02:00 +00:00
Stas Degteff
3cadf21783 Comment out operator-function with 64 bit integer. Bugreport from Igor Zakharoff 2:5030/2404 2010-11-16 21:39:58 +00:00
Stas Degteff
8799e5272e Prepare to bigendian compatibility: byte-ordered file operations 2010-11-11 17:59:40 +00:00
Stas Degteff
3f8f3ac232 OS/2 build fix for GNU C 3.5, patch from Max Vasilyev 2:5057/77 2010-04-29 22:29:11 +00:00
Stas Degteff
28b6562a17 Fix SunOS/x86 build. Patch from Maxim Sokolsky 2:5020/828.777 2010-03-31 20:25:08 +00:00
Stas Degteff
20c366b27e Comment logic of strxcpy() 2010-03-28 17:21:39 +00:00
Stas Degteff
401cc6fbc2 Fix MS Visual C build 2010-03-24 07:29:21 +00:00
Stas Degteff
8ca25dc8ec Fix DJGPP build. Thanks to Max Vasilyev 2:5057/77 2010-03-23 19:06:16 +00:00
Stas Degteff
44d07e5098 fix warning about string conversion 2010-03-23 09:07:13 +00:00
Stas Degteff
795bbef6e2 Fix DJGPP build 2010-03-23 09:06:37 +00:00
Stas Degteff
11d0b8bb0a Checks for NULL pointers and result of read() for Squish and Jam 2010-03-21 23:37:12 +00:00
Stas Degteff
7ccca29f1d Fix DJGPP build with GCC 4.4.2 2010-03-21 21:11:53 +00:00
Stas Degteff
a899251028 Use platform-specific "off_t" instead "long" for filelength() 2010-03-21 12:16:21 +00:00
Stas Degteff
3dcdcf8d3b Small optimisation 2010-03-21 12:15:07 +00:00
Stas Degteff
81d492adc7 Remove duplicated (in gcmpall.h) defines 2010-03-11 13:49:17 +00:00
Stas Degteff
7ef0fb5810 compile with -DTEST to gcrcs16 binary for calculate CRC16 of string for CRC_ constants 2010-03-11 13:43:06 +00:00
Stas Degteff
36ea6c3ec4 More accuracy platform-compiler definitions 2010-03-05 14:28:42 +00:00
Stas Degteff
1a3d650ba0 More accuracy platform-compiler definitions 2010-03-05 14:17:48 +00:00
Stas Degteff
cd2a9c1fab Fix build for Dragonfly BSD 2010-03-05 13:24:06 +00:00
Stanislav Mekhanoshin
2944b6961b patch to build on MAC OS/X with make PLATFORM=osx 2009-12-16 13:18:20 +00:00
Stas Degteff
68e876f006 Optimize is_dir() (use root directory detection in *nix) 2009-11-30 18:37:07 +00:00
Stas Degteff
1247b0cf02 Add comments to functions 2009-11-29 12:20:28 +00:00
Stas Degteff
7c153e6642 Fix build for OpenBSD and NetBSD 2009-08-13 13:28:16 +00:00