comparison src/log.h @ 13623:51d436a267ac

[gaim-migrate @ 16009] Use the GSlice allocator (for logs and log sets) when compiling with glib 2.10 or greater and eliminate some unnecessary memory zeroing. This cuts the log loading time in half for one of Luke's contacts. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 11 Apr 2006 16:06:24 +0000
parents 0a8b72b12cef
children
comparison
equal deleted inserted replaced
13622:64e664654177 13623:51d436a267ac
124 started, saved with original 124 started, saved with original
125 timezone data, if available and 125 timezone data, if available and
126 if struct tm has the BSD 126 if struct tm has the BSD
127 timezone fields, else @c NULL. 127 timezone fields, else @c NULL.
128 Do NOT modify anything in this struct.*/ 128 Do NOT modify anything in this struct.*/
129
130 /* IMPORTANT: Some code in log.c allocates these without zeroing them.
131 * IMPORTANT: Update that code if you add members here. */
129 }; 132 };
130 133
131 /** 134 /**
132 * A common logger_data struct containing a file handle and path, as well 135 * A common logger_data struct containing a file handle and path, as well
133 * as a pointer to something else for additional data. 136 * as a pointer to something else for additional data.
158 on the buddy list? */ 161 on the buddy list? */
159 char *normalized_name; /**< The normalized version of 162 char *normalized_name; /**< The normalized version of
160 @a name. It must be set, and 163 @a name. It must be set, and
161 may be set to the same pointer 164 may be set to the same pointer
162 value as @a name. */ 165 value as @a name. */
166
167 /* IMPORTANT: Some code in log.c allocates these without zeroing them.
168 * IMPORTANT: Update that code if you add members here. */
163 }; 169 };
164 170
165 #ifdef __cplusplus 171 #ifdef __cplusplus
166 extern "C" { 172 extern "C" {
167 #endif 173 #endif