WINGs: Added 'const' attribute to function 'WMCreateHashTable'
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 23 Nov 2013 17:14:07 +0000 (23 18:14 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:07 +0000 (30 18:11 +0000)
Although this is a modification of the public API, this patch does not
change the binary interface, and the attribute does not add a constraint
on the parameter for the caller so we do not break the source compatibility
either.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/WINGs/WUtil.h
WINGs/hashtable.c

index ec691f4..246ef2d 100644 (file)
@@ -347,7 +347,7 @@ void WHandleEvents(void);
 /* ---[ WINGs/hashtable.c ]----------------------------------------------- */
 
 
-WMHashTable* WMCreateHashTable(WMHashTableCallbacks callbacks);
+WMHashTable* WMCreateHashTable(const WMHashTableCallbacks callbacks);
 
 void WMFreeHashTable(WMHashTable *table);
 
index d8e53a2..c4c8214 100644 (file)
@@ -90,7 +90,7 @@ static void rebuildTable(WMHashTable * table)
        wfree(oldArray);
 }
 
-WMHashTable *WMCreateHashTable(WMHashTableCallbacks callbacks)
+WMHashTable *WMCreateHashTable(const WMHashTableCallbacks callbacks)
 {
        HashTable *table;