Combine can now use other chars to seperate vars (used to be only space)
authorNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 4 May 2009 10:58:52 +0000 (12:58 +0200)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 4 May 2009 10:58:52 +0000 (12:58 +0200)
Also undid the last change because sony.h was not included, feel free to submit
it again if you include this file and other sourcefiles needed (there is also
no definition of get_sony_fanspeed). If sony systems already have this file and
a definition of this function, please update the configure file so that support
for this is disabled by default and can be enabled by sony owners.

.gitignore
ChangeLog
doc/variables.xml
src/Makefile.am
src/conky.c
src/conky.h
src/text_object.h

index 8ae131e..5285e7b 100644 (file)
@@ -34,5 +34,3 @@ conky-*.tar.*
 doc/*.html
 doc/*.mxml
 patches/
-README
-doc/conky.1
index fb7be04..0f0c47c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,3 @@
-2009-05-03
-       * Added Sony VAIO fanspeed info (thanks Yeon-Hyeong)
-
 2009-05-01
        * Added diskio_avg_samples patch (thanks Yeon-Hyeong)
        * Fixed $texeci regression
index 85d033d..a964baf 100644 (file)
                        Prints the song name in either the form "artist - title" or file name, depending on whats available
                        <para></para></listitem>
        </varlistentry>
-
        <varlistentry>
                <term>
                        <command><option>if_xmms2_connected</option></command>
 
        <varlistentry>
                <term>
-                       <command><option>sony_fanspeed</option></command>
-               </term>
-               <listitem>
-                       Displays the Sony VAIO fanspeed information if sony-laptop kernel support is enabled.  Linux only.
-                       <para></para></listitem>
-       </varlistentry>
-
-       <varlistentry>
-               <term>
                        <command><option>eve</option></command>
                        <option>api_userid api_key character_id</option>
                </term>
index c31f455..b7fee6f 100644 (file)
@@ -64,7 +64,7 @@ xmms2 = xmms2.c
 endif
 
 if BUILD_LINUX
-linux = linux.c top.c diskio.c users.c sony.c
+linux = linux.c top.c diskio.c users.c
 PTHREAD_LIBS =  -lpthread
 endif
 
@@ -208,7 +208,6 @@ EXTRA_DIST = \
        smapi.h                 \
        ibm.c                   \
        ibm.h                   \
-       sony.h                  \
        users.c
 
 
index 6379d8a..8c9eba2 100644 (file)
@@ -1223,9 +1223,6 @@ static struct text_object *construct_text_object(const char *s,
        END OBJ(ibm_volume, 0)
        END OBJ(ibm_brightness, 0)
 #endif
-       /* information from sony_laptop kernel module
-        * /sys/devices/platform/sony-laptop */
-       END OBJ(sony_fanspeed, 0)
        END OBJ_IF(if_gw, 0)
        END OBJ(ioscheduler, 0)
                if (!arg) {
@@ -2545,7 +2542,7 @@ static struct text_object *construct_text_object(const char *s,
                                        }else if(arg[i] == '}') {
                                                indenting--;
                                        }
-                                       if(indenting == 0 && (arg[i+1] == ' ' || arg[i+1] == '$' || arg[i+1] == 0)) {
+                                       if(indenting == 0 && arg[i+1] < 48) {   //<48 has 0, $, and the most used chars not used in varnames but not { or } 
                                                endvar[j]=i+1;
                                                j++;
                                        }
@@ -3418,11 +3415,6 @@ static void generate_text_internal(char *p, int p_max_size,
                                get_ibm_acpi_brightness(p, p_max_size);
                        }
 #endif /* IBM */
-                       /* information from sony_laptop kernel module
-                        * /sys/devices/platform/sony-laptop */
-                       OBJ(sony_fanspeed) {
-                               get_sony_fanspeed(p, p_max_size);
-                       }
                        OBJ(if_gw) {
                                if (!cur->gw_info.count) {
                                        DO_JUMP;
index 3bd82ea..dda42c5 100644 (file)
@@ -103,9 +103,6 @@ char *strndup(const char *s, size_t n);
 #include "smapi.h"
 #endif
 
-/* sony support */
-#include "sony.h"
-
 /* A size for temporary, static buffers to use when
  * one doesn't know what to choose. Defaults to 256.  */
 extern unsigned int text_buffer_size;
index 067c7a5..d9a48ad 100644 (file)
@@ -148,9 +148,6 @@ enum text_object_type {
        OBJ_smapi_bat_power,
        OBJ_if_smapi_bat_installed,
 #endif /* IBM */
-       /* information from sony_laptop kernel module
-        * /sys/devices/platform/sony-laptop */
-       OBJ_sony_fanspeed,
        OBJ_if_gw,
        OBJ_ioscheduler,
        OBJ_gw_iface,