1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00
conky/src
bi4k8 566fbe7187
Fix and test graph parsing (#1447)
* specials: comment all parser cases

* specials: scan_graph: early-return if args is null

* specials: fix logic in scan_graph

* tests: add scan_graph parsing test

* specials: separate command parsing from graph parsing

this simplifies the implementation of graph parsing and makes it less ambiguous to parse graphs in contexts where commands are not expected

* specials: tweak comments in scan_graph

* tests: update for scan_command separation

---------

Co-authored-by: bi4k8 <bi4k8@github>
2023-03-05 19:25:56 -05:00
..
algebra.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
algebra.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
apcupsd.cc fixed wrong spelled words 2021-01-23 17:59:07 -06:00
apcupsd.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
audacious.cc Unwrap audacious C macros. 2018-08-08 15:54:47 -04:00
audacious.h Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
bsdapm.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
bsdapm.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
build.h.in - Comment out NetBSD/SanOS garbage 2006-08-12 06:10:18 +00:00
c++wrap.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
c++wrap.hh Apply fixes from clang-tidy/format. 2019-02-23 17:13:19 -05:00
ccurl_thread.cc Need to enable curl for RSS. 2022-10-12 12:57:48 -04:00
ccurl_thread.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
CMakeLists.txt Add an above-all overlay mode for own_window_type, utility (#1402) 2023-02-16 22:03:14 -05:00
cmus.cc use clang-format 2022-10-12 21:35:35 -04:00
cmus.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
colour-settings.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
colour-settings.h Apply clang-format. 2023-02-24 08:43:15 -05:00
colours.cc colours: cache X11 pixel values 2023-03-04 11:00:35 -05:00
colours.h colours: cache X11 pixel values 2023-03-04 11:00:35 -05:00
combine.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
combine.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
common.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
common.h FreeBSD: Additional memory reporting variables. 2022-12-24 08:55:20 -05:00
conky.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
conky.h Apply clang-format. 2023-02-24 08:43:15 -05:00
core.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
core.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
cpu.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
cpu.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
darwin_sip.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
darwin.h Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
darwin.mm added get_battery_power_draw() stub for darwin 2022-10-08 13:21:29 -04:00
data-source.cc fixed wrong spelled words 2021-01-23 17:59:07 -06:00
data-source.hh Two more formatting fixes. 2021-01-24 09:08:29 -06:00
diskio.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
diskio.h Replace BUILD_X11 ifdef by BUILD_GUI when it makes sense 2022-09-10 20:39:11 +02:00
display-console.cc Avoid referencing underfined symbol 2022-09-20 09:44:31 -04:00
display-console.hh proper console display (move code out of conky.cc) 2022-09-10 20:39:11 +02:00
display-file.cc Work around linker missing objects when building tests 2022-09-10 20:39:11 +02:00
display-file.hh move file output to a separate display-file 2022-09-10 20:39:11 +02:00
display-http.cc Add an http_port config setting 2022-09-11 12:18:36 +02:00
display-http.hh add Colour type and use it pervasively 2023-02-06 10:15:34 -05:00
display-ncurses.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
display-ncurses.hh add Colour type and use it pervasively 2023-02-06 10:15:34 -05:00
display-output.cc build, colours, core, gui, wayland, wl, x11: implement wayland display backend 2022-12-24 09:42:01 -05:00
display-output.hh Apply clang-format. 2023-02-24 08:43:15 -05:00
display-wayland.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
display-wayland.hh add Colour type and use it pervasively 2023-02-06 10:15:34 -05:00
display-x11.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
display-x11.hh add Colour type and use it pervasively 2023-02-06 10:15:34 -05:00
dragonfly.cc Add a legacymem variable for free compat. 2021-04-22 10:03:43 -05:00
dragonfly.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
entropy.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
entropy.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
exec.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
exec.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
fonts.cc Fix (some) wayland/x11 init ordering issues. 2022-12-26 13:21:40 -05:00
fonts.h build, colours, core, gui, wayland, wl, x11: implement wayland display backend 2022-12-24 09:42:01 -05:00
freebsd.cc Apply clang-format. 2022-12-24 09:44:03 -05:00
freebsd.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
fs.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
fs.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
gradient.cc use new Colour type for specials and gradients (#1418) 2023-02-24 08:13:19 -05:00
gradient.h use new Colour type for specials and gradients (#1418) 2023-02-24 08:13:19 -05:00
gui.cc Premultiply background colors for X11 (#1421) 2023-02-24 08:13:48 -05:00
gui.h Premultiply background colors for X11 (#1421) 2023-02-24 08:13:48 -05:00
haiku.cc Add a legacymem variable for free compat. 2021-04-22 10:03:43 -05:00
haiku.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
hddtemp.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
hddtemp.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
i8k.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
i8k.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
i18n.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
ibm.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
ibm.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
ical.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
ical.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
iconv_tools.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
iconv_tools.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
imlib2.cc Fix a couple security nits from codeql 2023-02-14 21:43:45 -05:00
imlib2.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
intel_backlight.cc Added support for Intel backlight. 2021-04-22 10:06:36 -05:00
intel_backlight.h Added support for Intel backlight. 2021-04-22 10:06:36 -05:00
irc.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
irc.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
journal.cc Drop support for systemd <= 205. 2021-02-27 09:26:11 -06:00
journal.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
libmpdclient.cc Replace atoi and atol with strtol (most files). 2022-09-25 18:24:03 -04:00
libmpdclient.h fixed wrong spelled words 2021-01-23 17:59:07 -06:00
libtcp-portmon.cc fixed wrong spelled words 2021-01-23 17:59:07 -06:00
libtcp-portmon.h fixed wrong spelled words 2021-01-23 17:59:07 -06:00
linux.cc Build fixes for strict checks. 2023-02-24 08:35:13 -05:00
linux.h Fix this def. 2022-12-27 09:15:29 -05:00
llua.cc Don't prefix mouse hook with conky_ twice. 2023-02-28 22:37:31 -05:00
llua.h Added mouse events to conky (#955) 2023-01-01 12:39:57 -05:00
logging.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
lua-config.cc Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
lua-config.hh Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
luamm.cc FreeBSD fixes, GitLab CI build improvements. 2019-02-25 11:22:19 -05:00
luamm.hh Apply a few minor formatting fixes. 2021-01-24 08:44:28 -06:00
mail.cc Fix a couple security nits from codeql 2023-02-14 21:43:45 -05:00
mail.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
main.cc Added mouse events to conky (#955) 2023-01-01 12:39:57 -05:00
main.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
mboxscan.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
mboxscan.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
misc.cc Made various misc.cc functions more concise 2020-01-31 19:11:44 -05:00
misc.h Added strip command 2020-01-24 19:27:31 -05:00
mixer.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
mixer.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
moc.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
moc.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
mouse-events.cc Added mouse events to conky (#955) 2023-01-01 12:39:57 -05:00
mouse-events.h Added mouse events to conky (#955) 2023-01-01 12:39:57 -05:00
mpd.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
mpd.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
mysql.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
mysql.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
nc.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
nc.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
net_stat.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
net_stat.h Replace BUILD_X11 ifdef by BUILD_GUI when it makes sense 2022-09-10 20:39:11 +02:00
netbsd.cc Add a legacymem variable for free compat. 2021-04-22 10:03:43 -05:00
netbsd.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
nvidia.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
nvidia.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
openbsd.cc Add a legacymem variable for free compat. 2021-04-22 10:03:43 -05:00
openbsd.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
prioqueue.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
prioqueue.h Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
proc.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
proc.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
prss.cc Confirm pointer is not null and use sizeof object instead of struct 2021-01-23 18:39:01 -06:00
prss.h Build improvements (external libs, enable more options). (#498) 2018-05-13 13:33:18 -04:00
pulseaudio.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
pulseaudio.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
read_tcpip.cc Replace atoi and atol with strtol (most files). 2022-09-25 18:24:03 -04:00
read_tcpip.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
rss.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
rss.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
scroll.cc Enable GCC 12 in actions, fix warning. (#1407) 2023-02-18 08:33:11 -05:00
scroll.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
semaphore.hh Apply fixes from clang-tidy/format. 2019-02-23 17:13:19 -05:00
setting.cc Unbreak Xinerama config loading. (#1408) 2023-02-18 09:34:53 -05:00
setting.hh Fix (some) wayland/x11 init ordering issues. 2022-12-26 13:21:40 -05:00
smapi.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
smapi.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
solaris.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
solaris.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
sony.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
sony.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
specials.cc Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
specials.h Fix and test graph parsing (#1447) 2023-03-05 19:25:56 -05:00
tailhead.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
tailhead.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
tcp-portmon.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
tcp-portmon.h fixed wrong spelled words 2021-01-23 17:59:07 -06:00
temphelper.cc Make GitLab build work with clang checks. 2019-02-23 17:13:19 -05:00
temphelper.h Add new text objects to retrieve the currently used keyboard layout and mouse speed in percentage and generate random password of chosen length and get the cpu clock speed from assembly (#550) 2018-08-04 15:01:28 -04:00
template.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
template.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
text_object.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
text_object.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
timeinfo.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
timeinfo.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
top.cc Apply clang-format. 2022-12-24 09:44:03 -05:00
top.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
update-cb.cc Apply fixes from sonar. 2018-12-22 19:10:10 -05:00
update-cb.hh Apply a few minor formatting fixes. 2021-01-24 08:44:28 -06:00
user.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
user.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
users.cc Build fixes for strict checks. 2023-02-24 08:35:13 -05:00
users.h Update copyright, authors. 2021-02-27 09:14:19 -06:00
wl.cc Apply clang-format. 2022-12-24 09:44:03 -05:00
wl.h build, colours, core, gui, wayland, wl, x11: implement wayland display backend 2022-12-24 09:42:01 -05:00
wlr-layer-shell-unstable-v1.xml wayland: switch to zwlr_layer_shell_v1 and implement proper window placement 2022-12-24 09:42:02 -05:00
x11-color.cc Apply clang-format. 2022-12-24 09:44:03 -05:00
x11-color.h Apply clang-format. 2022-12-24 09:44:03 -05:00
x11.cc Apply clang-format. 2023-02-24 08:43:15 -05:00
x11.h Premultiply background colors for X11 (#1421) 2023-02-24 08:13:48 -05:00
xmms2.cc Update copyright, authors. 2021-02-27 09:14:19 -06:00
xmms2.h Update copyright, authors. 2021-02-27 09:14:19 -06:00