Commit Graph

19 Commits (aa0a5545d0b9f2e2277a31be37b0338818766fea)

Author SHA1 Message Date
nirenjan aa0a5545d0 Remove the use of config.h
Prior to this change, pinelog relied on an autoconf generated config.h
which checked if the compiler supports __attribute__ with constructor,
destructor and format. However, most modern compilers already have
support for this, and we can use the __has_attribute special operator
instead to check for this at compile time.

By eliminating the need to create a config.h file, it simplifies
integration into other projects that may not have one.
2021-08-25 12:07:40 -07:00
nirenjan 8983bf8b28 Ignore test and benchmark programs 2021-08-25 09:35:20 -07:00
nirenjan 27a5eab8b7 Use localtime_r instead of localtime 2021-08-03 11:25:25 -07:00
nirenjan bdee493f03 Add preprocessor definition to disable traces 2021-07-27 17:01:41 -07:00
nirenjan 5b2686a406 Fix pinelog builds on MacOS 2021-07-19 11:15:42 -07:00
nirenjan 48bd049b4f Merge commit '9fa1a428a45eabff0122e199a687068f0e6280dd' into daemon 2021-07-19 09:50:42 -07:00
nirenjan 321d9aaa0e Add benchmark program to tests 2021-07-19 09:35:20 -07:00
nirenjan a6e789e196 Remove config.h.in - this is autogenerated 2021-07-18 22:24:49 -07:00
nirenjan 68d5aaef66 Update README to include destructor attribute 2021-07-16 08:33:22 -07:00
nirenjan a3eb2c03d7 Add method to close output stream and reset to default 2021-07-16 08:29:11 -07:00
nirenjan fb9b51a130 Fix format-literal error in clang 2021-07-15 18:31:01 -07:00
nirenjan b5457f405e Add pinelog.h to distribution tarball 2021-07-14 12:39:29 -07:00
nirenjan 85ab66b323 Add usage and integration instructions to README 2021-07-14 12:32:12 -07:00
nirenjan 051e5f4639 Add tests for different configurations 2021-07-14 11:05:20 -07:00
nirenjan 10941defb2 Add test framework 2021-07-14 11:00:44 -07:00
nirenjan 490a2e3faa Add check for __attribute__((format)) 2021-07-13 11:45:33 -07:00
nirenjan 091dd29d3b Rename functions and macros to use the pinelog_ prefix 2021-07-13 11:40:33 -07:00
nirenjan aa330a2cbf Add autotools build framework 2021-07-13 11:33:10 -07:00
nirenjan 45762f497c Initial commit 2021-07-13 10:57:22 -07:00