Kevin Lyles [Sat, 21 Jun 2008 09:25:37 +0000 (09:25 +0000)]
Re-arranged some if statements to reduce redundancy
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1185
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:25:29 +0000 (09:25 +0000)]
Consolidated all barnum code into get_barnum
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1184
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:25:22 +0000 (09:25 +0000)]
Consolidated all popen calls (and repeated surrounding code) into read_exec
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1183
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:25:16 +0000 (09:25 +0000)]
Removed some redundancies between imap and pop3
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1182
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:25:03 +0000 (09:25 +0000)]
Renamed all my_infos to the more-descriptive tmp_info
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1181
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:24:56 +0000 (09:24 +0000)]
Renamed more global variables with global_ prefix
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1180
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:24:51 +0000 (09:24 +0000)]
Replaced the global text_object array and count with a text_object_list
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1179
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 21 Jun 2008 09:24:39 +0000 (09:24 +0000)]
Added comments to a couple of non-obvious lines (to me, anyway)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1178
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 19:59:30 +0000 (19:59 +0000)]
Split help output into a separate function
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1171
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 19:58:07 +0000 (19:58 +0000)]
Moved global diskio variables into info
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1170
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 19:57:12 +0000 (19:57 +0000)]
Refactored out some redundancy in the tab conversion code
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1169
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 19:56:30 +0000 (19:56 +0000)]
Removed some redundancy in mpd_elapsed and mpd_length
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1168
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 19:54:31 +0000 (19:54 +0000)]
Changed addr to print "No Address" when there is no address
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1167
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 07:04:11 +0000 (07:04 +0000)]
Refactored format_seconds and format_seconds_short
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1165
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Thu, 19 Jun 2008 06:17:53 +0000 (06:17 +0000)]
Fixed compilation issues with --enable-testing
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1164
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Tue, 17 Jun 2008 20:44:06 +0000 (20:44 +0000)]
magic nums to defines and don't check ut_name and ut_line length because it can't be larger then UT_NAMESIZE and UT_LINESIZE
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1162
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Mon, 16 Jun 2008 20:12:39 +0000 (20:12 +0000)]
3 Bufferoverflows in a struct utmp
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1161
7f574dfc-610e-0410-a909-
a81674777703
Philip Kovacs [Mon, 16 Jun 2008 19:40:28 +0000 (19:40 +0000)]
move audacious defs into header
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1159
7f574dfc-610e-0410-a909-
a81674777703
Philip Kovacs [Sun, 15 Jun 2008 20:17:37 +0000 (20:17 +0000)]
restore audacious functionality broken by previous header spliting commits.
headers are for interfaces and typedefs, not data.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1157
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sun, 15 Jun 2008 18:38:33 +0000 (18:38 +0000)]
Removed all trailing whitespace
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1156
7f574dfc-610e-0410-a909-
a81674777703
Roman Bogorodskiy [Sun, 15 Jun 2008 07:08:52 +0000 (07:08 +0000)]
More or less working on FreeBSD now.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1155
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 14 Jun 2008 18:41:12 +0000 (18:41 +0000)]
Split conky.h into several smaller header files
In order to do this correctly:
Removed duplicate includes
Fixed mpd functions to accept mpd_s instead of information
Freed mpd.h of any need to include conky.h (mpd.c still includes it for the constants)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1154
7f574dfc-610e-0410-a909-
a81674777703
Kevin Lyles [Sat, 14 Jun 2008 05:32:46 +0000 (05:32 +0000)]
Moved struct process to top.h
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1153
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sun, 8 Jun 2008 20:39:07 +0000 (20:39 +0000)]
Bugfix: execgraph scale 0-0 instead of 0-100
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1149
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sun, 8 Jun 2008 17:17:34 +0000 (17:17 +0000)]
memgraph in manpage
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1147
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sun, 8 Jun 2008 11:41:00 +0000 (11:41 +0000)]
memgraph documentation
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1144
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sun, 8 Jun 2008 11:16:51 +0000 (11:16 +0000)]
Bugfix: didn't work
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1143
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sat, 7 Jun 2008 19:11:29 +0000 (19:11 +0000)]
Bugfix: same text multiple times caused by if-family
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1141
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Sat, 7 Jun 2008 12:34:07 +0000 (12:34 +0000)]
Bugfix: DEV_NAME tried to read uninitialised mem
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1139
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Fri, 6 Jun 2008 12:14:15 +0000 (12:14 +0000)]
small changes to let code compile with enable-testing
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1134
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Wed, 4 Jun 2008 23:03:13 +0000 (23:03 +0000)]
changes from r1127 added to changelog
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1128
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Wed, 4 Jun 2008 22:35:02 +0000 (22:35 +0000)]
Bugfix: Lines printed to STDOUT with out_to_console were printed twice
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1127
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Wed, 4 Jun 2008 08:51:15 +0000 (08:51 +0000)]
Bugfix: chars followed by backspace should not be displayed
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1126
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Wed, 4 Jun 2008 08:33:01 +0000 (08:33 +0000)]
Background was defined twice in vim and nano syntax
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1125
7f574dfc-610e-0410-a909-
a81674777703
Nikolas Garofil [Wed, 4 Jun 2008 08:09:49 +0000 (08:09 +0000)]
Bugfix: gw_iface with a empty routingtable no longer causes a crash
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1124
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 3 Jun 2008 21:01:40 +0000 (21:01 +0000)]
* Added --quiet patch (thanks sceptik)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1123
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 3 Jun 2008 20:46:15 +0000 (20:46 +0000)]
* Added NVIDIA Graficcard support patch (thanks meissna)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1122
7f574dfc-610e-0410-a909-
a81674777703
Phil [Fri, 30 May 2008 11:30:58 +0000 (11:30 +0000)]
configurable if_up, may check for:
* IFF_UP flag,
* IFF_UP and IFF_RUNNING flags or
* IFF_UP, IFF_RUNNING flags and assigned address
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1121
7f574dfc-610e-0410-a909-
a81674777703
Phil [Fri, 30 May 2008 10:20:37 +0000 (10:20 +0000)]
simplified documentation of color0-9 variables
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1120
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 6 May 2008 22:41:28 +0000 (22:41 +0000)]
docs; small code simplification
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1119
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 6 May 2008 21:44:23 +0000 (21:44 +0000)]
updating docs, syntax highlighting, code formatting
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1118
7f574dfc-610e-0410-a909-
a81674777703
Roman Bogorodskiy [Sat, 3 May 2008 12:30:05 +0000 (12:30 +0000)]
Small portion of FreeBSD fixes:
- diskio.c is not needed for freebsd
- sync cpu freq related functions prototypes
- cleanup #indef's
It still doesn't compile on FreeBSD though.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1117
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 29 Apr 2008 21:34:06 +0000 (21:34 +0000)]
forgot to mention this fix: * Fix for $if_up memleak (thanks Michal).
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1116
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 29 Apr 2008 21:31:04 +0000 (21:31 +0000)]
* own_window_type dock patch (thanks Morgan).
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1115
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 22 Apr 2008 23:07:24 +0000 (23:07 +0000)]
updating ebuild
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1114
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 22 Apr 2008 22:59:04 +0000 (22:59 +0000)]
exclude reserved IPs with if_up
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1113
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 22 Apr 2008 22:54:22 +0000 (22:54 +0000)]
fixed hddtemp problems as well as some other misc things
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1112
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 22 Apr 2008 21:54:49 +0000 (21:54 +0000)]
fixed crash on realloc due to use of strncpy
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1111
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Thu, 17 Apr 2008 20:46:29 +0000 (20:46 +0000)]
add missing math.h include
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1110
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Thu, 17 Apr 2008 20:40:53 +0000 (20:40 +0000)]
include stdarg.h for va_start/va_end
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1109
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 16 Apr 2008 04:16:44 +0000 (04:16 +0000)]
updating LICENSE for ebuild
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1108
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 16 Apr 2008 01:36:55 +0000 (01:36 +0000)]
add missing include
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1107
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Mon, 14 Apr 2008 23:57:15 +0000 (23:57 +0000)]
updating ebuilds
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1106
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 13 Apr 2008 04:18:16 +0000 (04:18 +0000)]
oops; updating authors
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1105
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 13 Apr 2008 04:10:35 +0000 (04:10 +0000)]
* Added patch for the following (thanks larsko):
* New $loadgraph to show a graph of load averages,
* add "show_graph_scale" option to turn off/on the showing of the
current max value for the graph,
* minor code fixes,
* update nano and vim syntax highlighting stuff.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1104
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Thu, 10 Apr 2008 22:45:45 +0000 (22:45 +0000)]
* Getting rid of goto usage throughout code.
* Fix bug due to usage of gethostbyname() in threads (which is not
reentrant) by using gethostbyname_r() when available.
* Added patch for battery_time problem on 2.6.24 (thanks wedge).
* Added patch to fix broken xmms2 stuff (thanks sleipner).
* Added patch to fix SIGHUP/SIGUSR1 segfault (thanks norsetto).
* Added patch to improve $if_up (thanks Aseem).
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1103
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Thu, 3 Apr 2008 02:54:47 +0000 (02:54 +0000)]
detect conky.conf as well as conkyrc for syntax highlighting
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1102
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 2 Apr 2008 19:46:09 +0000 (19:46 +0000)]
define our own strndup() when its not available (thanks to Pippijn for the idea)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1101
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 2 Apr 2008 18:44:49 +0000 (18:44 +0000)]
* Replacing strdup() with strndup() throughout
(this is probably going to break a few things)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1100
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 2 Apr 2008 18:29:08 +0000 (18:29 +0000)]
* Added patch to use mail_spool correctly (thanks Kapil)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1099
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Wed, 2 Apr 2008 02:12:57 +0000 (02:12 +0000)]
* Fixed segfault when configuration doesn't contain TEXT block (thanks
Pippijn).
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1098
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 1 Apr 2008 21:37:49 +0000 (21:37 +0000)]
docs
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1097
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 1 Apr 2008 06:10:58 +0000 (06:10 +0000)]
capitalization consistency
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1096
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 1 Apr 2008 05:05:24 +0000 (05:05 +0000)]
cleanup configure output
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1095
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 1 Apr 2008 04:59:00 +0000 (04:59 +0000)]
bump version; doc fixes
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1094
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Tue, 1 Apr 2008 04:11:14 +0000 (04:11 +0000)]
Conky 1.5.1
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1092
7f574dfc-610e-0410-a909-
a81674777703
Phil [Mon, 31 Mar 2008 15:33:54 +0000 (15:33 +0000)]
make specifying hdd names more flexible
* the macro DEV_NAME() "removes" any leading "/dev/"
if existing
* the only object that needs the full path is hddtemp,
so add code there to add "/dev/" if necessary
(can't be done via macro)
* attempt to fix also the hddtemp output, as the
"degree"-sign seems to be inserted in utf-8 and
printed in latin.
* hddtemp breaks the rules by inserting the unit
itself, but as it could be either "C" or "F", this
would lead to confusion otherwise
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1091
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Mon, 31 Mar 2008 04:56:39 +0000 (04:56 +0000)]
doc cleanup
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1090
7f574dfc-610e-0410-a909-
a81674777703
Phil [Mon, 31 Mar 2008 04:02:33 +0000 (04:02 +0000)]
fix two typos in docs
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1089
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Mon, 31 Mar 2008 03:56:03 +0000 (03:56 +0000)]
fix possible mem leak in prepare_diskio_stat, fix return value on failure
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1088
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Mon, 31 Mar 2008 03:51:29 +0000 (03:51 +0000)]
make diskio accept devices starting with "/dev/"
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1087
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 30 Mar 2008 07:04:25 +0000 (07:04 +0000)]
* Added mem_res and mem_vsize to $top.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1084
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 30 Mar 2008 04:02:53 +0000 (04:02 +0000)]
more battery cleanup
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1083
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 30 Mar 2008 03:26:55 +0000 (03:26 +0000)]
add more checking in libmpdclient; make battery stuff look the same for sysfs and proc
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1082
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 30 Mar 2008 02:29:12 +0000 (02:29 +0000)]
mpd fix take 2
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1081
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sun, 30 Mar 2008 01:23:04 +0000 (01:23 +0000)]
* Fixed bug in libmpdclient that caused file descriptors to be left open.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1080
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 12:55:36 +0000 (12:55 +0000)]
finally update our debugging CFLAGS
* drop -Wmissing-prototypes and -Wmissing-declarations,
as not every function needs a prototype
* in fact the code builds using these flags, at least for
my setup (--enable-smapi --enable-wlan --enable-rss
--with-x --disable-portmon)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1079
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 12:44:29 +0000 (12:44 +0000)]
some relocation of header includes
* conky.h must come first, because it includes config.h
which again defines _GNU_SOURCE, which is necessary
for strdup() & Co.
* declaring cpu_separate in top.h makes no sense, as it
includes conky.h which declares cpu_separate itself
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1078
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 11:49:10 +0000 (11:49 +0000)]
fix typo
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1077
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 11:35:02 +0000 (11:35 +0000)]
make use of __attribute__
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1076
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 11:13:13 +0000 (11:13 +0000)]
update ChangeLog
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1075
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 11:09:47 +0000 (11:09 +0000)]
implement upwards path traversal to find fs type
* yes, this is a feature and right now there is something
like a feature freeze.
* BUT I tested this with: /, /tmp, /dev/mapper, /dev, //,
/mnt/, /tmp/bla (the last one was non-existent, creating
it during runtime and even mounting tmpfs on it led to
expected results.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1074
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 10:13:25 +0000 (10:13 +0000)]
improve header style
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1073
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 10:11:16 +0000 (10:11 +0000)]
no 'a' modifier in C99
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1072
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 09:59:27 +0000 (09:59 +0000)]
remove unused global mail_s instance
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1071
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 09:58:09 +0000 (09:58 +0000)]
rename all shadowing variables for -Wshadow
* sadly intuitive names like "time" or "index" are already
globally defined (functions in time.h and string.h)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1070
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 07:24:25 +0000 (07:24 +0000)]
fix register_iconv
* not sure but this looked completely wrong, as 'iconv'
is a function.
* if iconv_cd is NULL, iconv_count is 0 and therefore
realloc should do the same as malloc here.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1069
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 06:24:04 +0000 (06:24 +0000)]
the big relocation patch
* this moves all declarations to the beginning of their block
to prevent mixed declarations and code
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1068
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 05:28:33 +0000 (05:28 +0000)]
don't use %Lu here, too
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1067
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 05:23:45 +0000 (05:23 +0000)]
clear naming for the global text objects
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1066
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 05:14:35 +0000 (05:14 +0000)]
fix thread definitions
* we code against interfaces (void *f(void *))
* casting function pointers to object pointers
is a no-no says gcc
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1065
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 04:55:41 +0000 (04:55 +0000)]
declaring info in common.c is redundant
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1064
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 04:47:10 +0000 (04:47 +0000)]
ISO C99 forbids named variadic macros
* also at least a single variadic argument must be
specified, so this (absolutely perfect) code doesn't
work
* this should fix it without changing the way the
macros are to be called
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1063
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sat, 29 Mar 2008 04:41:37 +0000 (04:41 +0000)]
fix segfault
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1062
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sat, 29 Mar 2008 04:09:09 +0000 (04:09 +0000)]
moving debug cflags below other stuff
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1061
7f574dfc-610e-0410-a909-
a81674777703
Brenden Matthews [Sat, 29 Mar 2008 04:02:12 +0000 (04:02 +0000)]
made configure output better; fixed small error in conky.conf
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1060
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 03:45:36 +0000 (03:45 +0000)]
make intense use of const keyword
* accidential writes to const char * are being detected
at compile time
* also clean up casting at some places
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1059
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 03:01:48 +0000 (03:01 +0000)]
match signedness and format when scanning into variables
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1058
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 02:28:38 +0000 (02:28 +0000)]
use %llu instead of %Lu
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1057
7f574dfc-610e-0410-a909-
a81674777703
Phil [Sat, 29 Mar 2008 02:19:36 +0000 (02:19 +0000)]
fix potential segfault in get_ioscheduler().
returning a const char * instead of a char * will lead to
trouble if the string is then tried to be free()'d.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1056
7f574dfc-610e-0410-a909-
a81674777703