Mercurial > pidgin
changeset 20958:2002a6a32b0c
Using i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) for
compilation, I can't compile account.c because of the 'bool' component of
PurpleAccountSetting - it's apparently treating it as a type. Changing it to
'boolean' is more consistent with the naming of the other parts of the union,
in any case. The error given is:
---
account.c:55: error: two or more data types in declaration specifiers
account.c:55: warning: declaration does not declare anything
account.c: In function 'setting_to_xmlnode':
account.c:107: error: syntax error before '_Bool'
----
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Mon, 15 Oct 2007 23:55:05 +0000 |
parents | 1ec2b67e9bc1 |
children | ac36f4a43fec |
files | libpurple/account.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/account.c Mon Oct 15 23:46:12 2007 +0000 +++ b/libpurple/account.c Mon Oct 15 23:55:05 2007 +0000 @@ -52,7 +52,7 @@ { int integer; char *string; - gboolean bool; + gboolean boolean; } value; @@ -104,7 +104,7 @@ } else if (setting->type == PURPLE_PREF_BOOLEAN) { xmlnode_set_attrib(child, "type", "bool"); - snprintf(buf, sizeof(buf), "%d", setting->value.bool); + snprintf(buf, sizeof(buf), "%d", setting->value.boolean); xmlnode_insert_data(child, buf, -1); } } @@ -1578,7 +1578,7 @@ setting = g_new0(PurpleAccountSetting, 1); setting->type = PURPLE_PREF_BOOLEAN; - setting->value.bool = value; + setting->value.boolean = value; g_hash_table_insert(account->settings, g_strdup(name), setting); @@ -1664,7 +1664,7 @@ setting->type = PURPLE_PREF_BOOLEAN; setting->ui = g_strdup(ui); - setting->value.bool = value; + setting->value.boolean = value; table = get_ui_settings_table(account, ui); @@ -1939,7 +1939,7 @@ g_return_val_if_fail(setting->type == PURPLE_PREF_BOOLEAN, default_value); - return setting->value.bool; + return setting->value.boolean; } int @@ -2005,7 +2005,7 @@ g_return_val_if_fail(setting->type == PURPLE_PREF_BOOLEAN, default_value); - return setting->value.bool; + return setting->value.boolean; } PurpleLog *