Etienne Faisant
c7968d4f2d
Update fstream_path.h
...
Fix build on Windows with MinGW
2016-03-04 15:03:46 +01:00
David Capello
51f58fda5f
base/24bits.h needs uint8_t definition
2016-03-03 22:43:10 -03:00
David Capello
093c5e1e0e
Fix base/buffer.h so we include base/ints.h to define uint8_t
2016-03-03 20:33:53 -03:00
David Capello
d33b8f7064
Set default path (MODP_B64_DIR) to find modp_b64 from base library
2016-03-03 19:28:29 -03:00
David Capello
a14a81a2c0
Undefine ERROR macro in base/log.h if it's defined
2016-03-03 19:27:09 -03:00
David Capello
285deb603e
Define _CRT_SECURE_NO_WARNINGS on sub-libraries that need it
2016-03-03 19:22:52 -03:00
David Capello
8c9d9eb84c
Replace NULL with nullptr on files that don't include base/base.h
2016-03-03 19:20:57 -03:00
David Capello
9a7ffab5a0
Move stdints to base/ints.h file
2016-03-03 19:20:00 -03:00
David Capello
5f97e66a8b
Include base/base.h on files that use MIN/MID/MAX
2016-03-03 19:18:46 -03:00
David Capello
4f6a7a7742
Include base/debug.h on files that use ASSERT or TRACE
2016-03-03 19:17:07 -03:00
David Capello
e887328624
Fix check to know if dl library was found
2016-03-01 14:52:41 -03:00
David Capello
a22039cd16
Check dl library existence ( fix #990 )
...
As FreeBSD includes dl functions in libc, dl library doesn't exist.
(dlfcn.h header file must exist anyway.)
2016-03-01 09:16:19 -03:00
David Capello
b5d04525c0
Use fstream::is_open() instead of operator bool()
2016-02-26 16:51:30 -03:00
David Capello
516ee5c611
New LOG() function with different logging levels and std::ostream support
2016-02-26 16:13:54 -03:00
David Capello
d2f1e2b6d2
Add functions to load dynamic libraries from base-lib
2016-02-24 13:11:40 -03:00
David Capello
e8ecbbb4d7
Merge branch 'master'
2015-12-22 10:56:56 -03:00
David Capello
16e13d89c2
Minor changes in base/README
2015-12-22 10:55:54 -03:00
David Capello
26e4678d2d
Add functions to encode/decode data in base64
2015-12-21 13:44:02 -03:00
David Capello
7ab863303e
Move LOG() to base library
...
Changes:
- Moved verbose_log (in app module) to base_log (in base library)
- Added base_set_log_filename() to start logging and close the log file
- LoggerModule() is implemented using thse new base library functions
Fix #899
2015-12-21 12:36:44 -03:00
Tony Narlock
382881ad66
Support for FreeBSD get_app_path
...
Fixes #889
Add support with and without procfs.
See also: https://www.libsdl.org/tmp/SDL/src/filesystem/unix/SDL_sysfilesystem.c
2015-12-09 00:43:15 -06:00
Tony Narlock
9c30429ff9
Fix missing permission bitmasks on FreeBSD
2015-12-05 09:08:18 -06:00
David Capello
e944ce0052
Move Bind, Connection, Signal, Slot, etc. to base namespace
2015-12-04 15:17:42 -03:00
David Capello
83fe139600
Fix base::open_folder() in case paths are specified with non-standard slashes
2015-09-18 12:39:23 -03:00
David Capello
8c961d58ef
Use canonical path in recent file/path list ( fix #654 )
2015-08-27 11:12:30 -03:00
David Capello
9201239eb3
Fix detection of image sequence with some special cases/UTF-8 strings ( fix #784 )
2015-08-27 09:10:46 -03:00
David Capello
b0eeaf4327
Add alias() member to base::ProgramOptions::Option
2015-08-20 21:28:56 -03:00
David Capello
55f90d8b8b
Add target_link_libraries() for sublibraries
...
With this change we remove some internal variables/lists like sys_libs,
libs3rdparty, etc. And we fix dependencies problems between targets.
2015-07-13 12:16:55 -03:00
David Capello
56fcf76fc7
Fix base/debug.cpp compilation error with gcc
2015-07-09 15:02:24 -03:00
David Capello
3c60136631
Move PI constant to base/pi.h file
2015-06-16 15:04:00 -03:00
David Capello
2d61412c68
Fix several compiler problems with clang on Mac OS X 10.10 SDK
2015-05-29 10:10:07 -03:00
David Capello
4940b2bf3e
Fix FSTREAM_PATH() for Unix-like systems
2015-05-27 20:03:43 -03:00
David Capello
ec26dd7ee9
Merge branch 'fix-memory-leaks'
2015-05-20 17:11:34 -03:00
David Capello
c04f4976fb
Delete slots in signal destructors
2015-05-20 16:24:58 -03:00
David Capello
621c4bb05d
Link with dbghelp when memory-leak detection is enabled
2015-05-20 16:24:26 -03:00
David Capello
cf8cd97cb6
Use new FSTREAM_PATH() macro to open fstreams
2015-05-20 15:34:36 -03:00
David Capello
a4e7df6037
Fix loading/saving .gpl files inside folders with Unicode chars on Windows
2015-05-20 15:33:34 -03:00
Aurélien Gâteau
817b134f31
Add support for open_folder on Linux
...
Removed base::launcher::support_open_folder() as it would always return
true.
2015-05-15 22:37:58 +02:00
David Capello
96102e0e8c
Remove lines that can fail in fs_tests
2015-05-11 11:33:20 -03:00
David Capello
c63ccf914f
Keep last update information so we can show it again ( fix #639 )
...
Now the last update information retrieved from the HTTP request, is saved
in the configuration file so we can reuse it when the program is restarted.
Changes:
* Add support to compare two semvers
* Add new_version/new_url options to preferences
* Remove convert_to for base::Version (now this class is constructed from
strings only)
2015-04-24 12:45:01 -03:00
David Capello
b534f955ec
Merge branch 'anticrash'
2015-04-09 13:51:39 -03:00
David Capello
1edb21ca4e
Implement base::list_files() for Unix-like platforms
2015-04-09 13:46:52 -03:00
David Capello
98f2aca5ca
Implement base::is_process_running() for Unix-like platforms
2015-04-09 13:46:37 -03:00
David Capello
c76a47b33f
Add base::concurrent_queue::empty() member function
2015-04-06 11:52:04 -03:00
David Capello
5c6860e7ac
Change the way crash sessions are stored on disk
...
Changes:
* Move classes related to data recovery into app/crash/ directory/namespace
* Rename app::Backup to app::crash::Session
* Rename app::DataRecovery to app::crash::DataRecovery
* Add base::list_files()
* Add base::get_current_process_id() and base::is_process_running()
* Remove base::TempDir
* Save one session for each running process
* Remove sessions that are empty when the program starts
2015-04-05 18:51:43 -03:00
David Capello
1fe8e97465
Avoid storing a refcounter in SharedPtr if we're pointing to nullptr
2015-04-04 14:54:21 -03:00
David Capello
22c3c4f20e
Remove implicit SharedPtr conversion to T*
2015-04-02 20:42:43 -03:00
David Capello
3d63e0e1b4
Move SharedPtr to base namespace
2015-04-01 12:35:18 -03:00
David Capello
0350ac4bbe
Initial work on Skia backend (WIP)
2015-03-16 15:05:13 -03:00
David Capello
a67c7bb1b2
Merge pull request #609 from aisamanra/master
...
Small fixes needed to build on clang/gcc
2015-03-16 10:19:49 -03:00
David Capello
35eddf1f08
Add missing "base/base.h" to use uint32_t (fix undo_tests compilation)
2015-03-16 09:13:54 -03:00