Mercurial > pidgin
annotate plugins/perl/common/Stringref.xs @ 12424:7c2e2c4d45a4
[gaim-migrate @ 14731]
Add prototypes, make things static, or #if 0 out unused function as necessary to get zephyr to compile without prototype warnings. It's painfully obvious that this code was written before prototypes existed, or at least before they became standard. As we need to maintain source compatibility with an external libzephyr, I can't really start adding header files. If someone cares about this protocol, feel free to clean this up a bit. My only concern is that I caught any actual mistakes and that it compiles without spurious warnings that would distract us from problems elsewhere.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Thu, 08 Dec 2005 23:38:36 +0000 |
| parents | 6fd82071a7b8 |
| children | 96f9b4798012 |
| rev | line source |
|---|---|
| 11118 | 1 #include "module.h" |
| 2 | |
| 3 MODULE = Gaim::Stringref PACKAGE = Gaim::Stringref PREFIX = gaim_stringref_ | |
| 4 PROTOTYPES: ENABLE | |
| 5 | |
| 6 int | |
| 7 gaim_stringref_cmp(s1, s2) | |
| 8 Gaim::Stringref s1 | |
| 9 Gaim::Stringref s2 | |
| 10 | |
| 11 size_t | |
| 12 gaim_stringref_len(stringref) | |
| 13 Gaim::Stringref stringref | |
| 14 | |
| 15 Gaim::Stringref | |
| 12364 | 16 gaim_stringref_new(class, value) |
| 11118 | 17 const char *value |
| 12364 | 18 C_ARGS: |
| 19 value | |
| 11118 | 20 |
| 21 Gaim::Stringref | |
| 12364 | 22 gaim_stringref_new_noref(class, value) |
| 11118 | 23 const char *value |
| 12364 | 24 C_ARGS: |
| 25 value | |
| 11118 | 26 |
| 27 | |
| 28 | |
| 29 Gaim::Stringref | |
| 30 gaim_stringref_ref(stringref) | |
| 31 Gaim::Stringref stringref | |
| 32 | |
| 33 void | |
| 34 gaim_stringref_unref(stringref) | |
| 35 Gaim::Stringref stringref | |
| 36 | |
| 37 const char * | |
| 38 gaim_stringref_value(stringref) | |
| 39 Gaim::Stringref stringref | |
| 40 |
