void qdict_put_obj(QDict *qdict, const char *key, QObject *value)

{

    unsigned int hash;

    QDictEntry *entry;



    hash = tdb_hash(key) % QDICT_HASH_SIZE;

    entry = qdict_find(qdict, key, hash);

    if (entry) {

        /* replace key's value */

        qobject_decref(entry->value);

        entry->value = value;

    } else {

        /* allocate a new entry */

        entry = alloc_entry(key, value);

        LIST_INSERT_HEAD(&qdict->table[hash], entry, next);

    }



    qdict->size++;

}

void qdict_put_obj(QDict *qdict, const char *key, QObject *value)

{

    unsigned int hash;

    QDictEntry *entry;



    hash = tdb_hash(key) % QDICT_HASH_SIZE;

    entry = qdict_find(qdict, key, hash);

    if (entry) {

        

        qobject_decref(entry->value);

        entry->value = value;

    } else {

        

        entry = alloc_entry(key, value);

        LIST_INSERT_HEAD(&qdict->table[hash], entry, next);

    }



    qdict->size++;

}

void FUNC_0(QDict *VAR_0, const char *VAR_1, QObject *VAR_2)

{

    unsigned int VAR_3;

    QDictEntry *entry;



    VAR_3 = tdb_hash(VAR_1) % QDICT_HASH_SIZE;

    entry = qdict_find(VAR_0, VAR_1, VAR_3);

    if (entry) {

        

        qobject_decref(entry->VAR_2);

        entry->VAR_2 = VAR_2;

    } else {

        

        entry = alloc_entry(VAR_1, VAR_2);

        LIST_INSERT_HEAD(&VAR_0->table[VAR_3], entry, next);

    }



    VAR_0->size++;

}

void FUNC_0(QDict *VAR_0, const char *VAR_1, QObject *VAR_2)
{ unsigned int VAR_3; QDictEntry *entry; VAR_3 = tdb_hash(VAR_1) % QDICT_HASH_SIZE; entry = qdict_find(VAR_0, VAR_1, VAR_3); if (entry) { qobject_decref(entry->VAR_2); entry->VAR_2 = VAR_2; } else { entry = alloc_entry(VAR_1, VAR_2); LIST_INSERT_HEAD(&VAR_0->table[VAR_3], entry, next); } VAR_0->size++; }