Brenden Matthews
283129e283
Apply clang-format.
2021-01-23 18:19:04 -06:00
freddii
b62e115830
fixed wrong spelled words
2021-01-23 17:59:07 -06:00
Brenden Matthews
40a438be3e
FreeBSD fixes, GitLab CI build improvements.
...
- use sccache for build caching
- add coverage reports as build artifacts
- add lcov-summary for coverage summary
- clean up/refactor CI yaml
This resolves the FreeBSD part of #754 .
2019-02-25 11:22:19 -05:00
Brenden Matthews
46abd3b75a
Apply fixes from clang-tidy/format.
2019-02-23 17:13:19 -05:00
Brenden Matthews
90673cf161
Make GitLab build work with clang checks.
2019-02-23 17:13:19 -05:00
Brenden Matthews
4b92556fca
Build improvements: clang-tidy, sonar, Dockerfile. ( #488 )
2018-05-12 19:26:31 -04:00
Brenden Matthews
eebc8c653b
Add formatting/static analysis ( #486 )
...
* Reform source with clang-format.
Rules applied with:
$ find . -iname *.h -o -iname *.cc | xargs clang-format \
-style=file -i -fallback-style=google
* Add clang-format and analyze to build.
Based on the excellent work at: https://github.com/ttroy50/cmake-examples
* Clean up CMake stuff on macOS.
* Remove vim/emacs modelines.
* Update copyright dates.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
2018-05-12 12:03:00 -04:00
albert2004
c93a007a13
Fix gcc-7 compilation error. ( #402 )
...
https://github.com/brndnmtthws/conky/issues/396
2017-12-07 14:59:41 -05:00
Guido Falsi
3a00680689
FreeBSD changes ( #327 )
...
* llabs() is included in FreeBSD since FreeBSD 5.0.
Oldest supported FreeBSD version is 9.3 now.
* stdio.h needs to be explicitly included here for FreeBSD.
I can wrap it in #ifdefs if needed, but I don't think it can hurt other OSes.
* addr config variable works fine on FreeBSD.
* FreeBSD 5.x is really an ancient version and long unsupported, so I think this check for it can be dropped.
* Fix and simplify code to get battery state and charge.
* Add required include on FreeBSD.
* Add needed include on FreeBSD.
* Also populate basename to avoid printing (null) process names.
Repored by fellow FreeBSD user Szabolcs Grof.
2016-10-04 09:47:57 +02:00
Pavel Labath
02dfacd694
Add support for lua 5.2
...
luamm is now able to be compiled with both lua 5.1 and 5.2 (assuming 5.2 has backward
compatibility features compiled in). It is my intention to always support at least two versions
of lua.
2013-07-13 23:55:28 +02:00
Pavel Labath
214ed0ac87
Add lock/unlock functions to lua::state
2010-10-30 23:54:13 +02:00
Pavel Labath
d9d8506e0b
Add a luaL_gsub wrapper to lua::state
2010-09-13 13:16:16 +02:00
Pavel Labath
c5e45008df
Add a luaL_loadfile wrapper to lua::state
2010-09-12 14:53:06 +02:00
Pavel Labath
3a9823b7f3
Add one more pushstring overload to lua::state
2010-08-21 21:06:34 +02:00
Pavel Labath
5b65fce42d
C++ version of lua::state::pushstring
2010-03-02 20:29:37 +01:00
Pavel Labath
f51927241f
Add lua_isboolean/toboolean wrappers
2010-02-25 21:10:40 +01:00
Pavel Labath
da3ef0d2c0
Use a named enum for lua types
2010-02-25 16:47:00 +01:00
Pavel Labath
9cf26becf2
Change lua::stack_sentry semantics. Using it should be much simpler now
2010-02-25 16:24:50 +01:00
Pavel Labath
a152a32d66
lua_isnil() binding
2010-02-16 16:46:16 +01:00
Pavel Labath
56266e9476
add lua_settop() binding
2010-02-15 13:00:33 +01:00
Pavel Labath
00d8215e00
added state::createuserdata template function
2010-02-12 17:41:24 +01:00
Pavel Labath
0ae2ba5210
Retab luamm in line with setting we use (yeah... i know :/)
2010-02-12 17:11:50 +01:00
Pavel Labath
3e98e18324
add lua_pushnumber wrapper
...
there are still some functions whose C++ wrappers i didn't create. add them if you need them
2010-02-12 17:06:24 +01:00
Pavel Labath
2d4d2ef4c0
std::function can't be used as a __gc function, provide a simple alternative
2010-02-12 15:05:46 +01:00
Pavel Labath
fd671ced8f
Move rawset() to the proper category
2010-02-11 21:08:32 +01:00
Pavel Labath
dfb106ac0e
Fix multiple definition error
2010-02-10 21:17:40 +01:00
Pavel Labath
90b30f14f9
Oops, forgot inclusion guards
2010-02-10 19:47:16 +01:00
Pavel Labath
e4461782ef
C++ binding for lua, with some fancy features
...
such as being able to throw exceptions across c++-lua boundary. For more details, see comments
in the source code.
2010-02-10 17:34:09 +01:00