1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

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
This commit is contained in:
Phil 2008-03-29 05:23:45 +00:00
parent 963bb6211c
commit 42a62c0178

View File

@ -1451,8 +1451,8 @@ struct text_object_list {
struct text_object *text_objects;
};
static unsigned int text_object_count;
static struct text_object *text_objects;
static unsigned int global_text_object_count;
static struct text_object *global_text_objects;
static void generate_text_internal(char *p, int p_max_size,
struct text_object *objs, unsigned int object_count,
struct information *cur);
@ -3980,7 +3980,7 @@ static void extract_variable_text(const char *p)
{
struct text_object_list *list;
free_text_objects(text_object_count, text_objects);
free_text_objects(global_text_object_count, global_text_objects);
if (tmpstring1) {
free(tmpstring1);
tmpstring1 = 0;
@ -3993,12 +3993,12 @@ static void extract_variable_text(const char *p)
free(text_buffer);
text_buffer = 0;
}
text_object_count = 0;
text_objects = NULL;
global_text_object_count = 0;
global_text_objects = NULL;
list = extract_variable_text_internal(p);
text_objects = list->text_objects;
text_object_count = list->text_object_count;
global_text_objects = list->text_objects;
global_text_object_count = list->text_object_count;
free(list);
}
@ -6175,7 +6175,8 @@ static void generate_text(void)
p = text_buffer;
generate_text_internal(p, max_user_text, text_objects, text_object_count, cur);
generate_text_internal(p, max_user_text, global_text_objects,
global_text_object_count, cur);
if (stuff_in_upper_case) {
char *p;
@ -7526,7 +7527,7 @@ void clean_up(void)
free_fonts();
#endif /* X11 */
free_text_objects(text_object_count, text_objects);
free_text_objects(global_text_object_count, global_text_objects);
if (tmpstring1) {
free(tmpstring1);
tmpstring1 = 0;
@ -7539,8 +7540,8 @@ void clean_up(void)
free(text_buffer);
text_buffer = 0;
}
text_object_count = 0;
text_objects = NULL;
global_text_object_count = 0;
global_text_objects = NULL;
if (text) {
free(text);