Dmitry Podgorny
db8a511f68
style: remove extra const keyword from interfaces
...
Const variables in prototypes don't add much value, but make the code
larger and redundant. Remove these const keywords.
Note, this doesn't apply to pointers to const memory.
2021-03-19 22:12:15 +02:00
Dmitry Podgorny
562a06425b
Unify coding style
...
@sjaeckel integrated clang-format with formal coding style. Run his
script and commit changes.
There are pros and cons of this commit.
Mixed coding style is a "broken window". A good single style simplifies
reading and writing code.
On the other hand, this is a big change which will lead to conflicts.
2020-01-31 01:16:50 +02:00
Steffen Jaeckel
abd1b08a97
trim trailing spaces
2020-01-31 01:14:32 +02:00
Andrey Starodubtsev
ab568a2666
memory leak in hash values fixed
2018-12-13 14:28:41 +03:00
Ilya Orlov
032e8ec89d
Added new stanza for error responce, libstrophe now will be responce <stream:error> if parser failed
2017-09-04 11:46:09 +03:00
Dmitry Podgorny
a845c7ec3d
hash: avoid allocation when replace value in hash_add()
...
Memory allocation may fail. We don't need to allocate new entry when we
already have one.
2017-06-29 20:22:55 +03:00
Dmitry Podgorny
704c157d24
hash: don't use signed types during index calculation
...
Reported by @ITikhonov in pasis/libcouplet#10
2017-06-25 21:59:27 +03:00
Tristan Le Guern
0acec5c335
-Wshadow for hash.c
2015-09-28 14:26:25 +03:00
Dariusz Dwornikowski
37a40dec23
Merge pull request #42 from tdi/master
...
Update headers not to mention LICENSE.txt but licenses directly Closes #31
2014-11-13 13:13:37 +01:00
Dmitry Podgorny
c33c0a6998
hash: removed useless condition in hash_iter_next
...
Situation ((entry != NULL) && (i >= table->length)) can never happen.
2014-10-29 18:43:06 +02:00
Sergey Anufrienko
92e674e412
fix bug leading to losing of hash entries in hash_iter_next
2014-10-28 16:42:28 +03:00
Dariusz Dwornikowski
71f75b2e2e
Closes #31
2014-10-23 08:44:52 +02:00
Jack Moffitt
370a371800
Dual licensed libstrophe under MIT and GPLv3.
...
Updated copyright headers.
2009-06-15 15:26:10 -06:00
Jack Moffitt
65a174ee7e
Most public API points are now documented.
2008-06-24 14:43:54 +00:00
Jack Moffitt
b6027cfd7f
Updated copyright years and fixed LLC typo.
2008-06-19 22:33:13 +00:00
James Canete
c9d7b85788
Fix leak in hash table if same key added twice.
2008-03-07 00:09:28 +00:00
James Canete
4c634f3ad1
fixed a bug in the hash where the first entry was never used in an iterator
2006-04-05 23:56:19 +00:00
Ralph Giles
f2335adb75
Conform the copyright headers.
2005-06-29 14:38:24 +00:00
Ralph Giles
76e0c6a4b3
Add the 'libstrophe' name to the copyright headers.
2005-06-15 16:58:11 +00:00
Ralph Giles
72699eff45
Rename xmpp.h to strophe.h and apply the name changes to the internal
...
header multiple include protection.
2005-06-14 14:25:42 +00:00
Ralph Giles
f27235b862
Move the xmpp library to its new name.
2005-06-14 14:10:31 +00:00