From 6dca44b64d21bde544d8df770a0449bc88aec92a Mon Sep 17 00:00:00 2001 From: PSYC Date: Mon, 23 May 2011 19:12:27 +0200 Subject: [PATCH 1/3] declaration of 'strlen' shadows a global declaration --- bench/benchmark.org | 3 ++- include/psyc.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bench/benchmark.org b/bench/benchmark.org index 38ff07a..c30705f 100644 --- a/bench/benchmark.org +++ b/bench/benchmark.org @@ -126,7 +126,8 @@ We'll use the latter here: * Results -Parsing time of 1 000 000 packets in milliseconds: +Parsing time of 1 000 000 packets, in milliseconds. +a simple strlen scan of the respective message is provided for comparison. | input: | PSYC | | JSON | | | XML | | | parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml | diff --git a/include/psyc.h b/include/psyc.h index b33e96a..6146665 100644 --- a/include/psyc.h +++ b/include/psyc.h @@ -108,9 +108,9 @@ typedef struct * @return An instance of the psycString struct. */ static inline -psycString psyc_newString (const char *str, size_t strlen) +psycString psyc_newString (const char *str, size_t slen) { - psycString s = {strlen, str}; + psycString s = {slen, str}; return s; } From da9cb17bf5de9065dd480bae5d4dd3b06c2a6426 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Fri, 22 Jul 2011 10:27:20 +0200 Subject: [PATCH 2/3] we did include it in the benchmarks later --- bench/benchmark.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/benchmark.org b/bench/benchmark.org index 2c4c0be..4382cdb 100644 --- a/bench/benchmark.org +++ b/bench/benchmark.org @@ -86,8 +86,8 @@ need to be mentioned): #+INCLUDE: packets/presence.psyc src psyc And this is the same message in PSYC's compact form, but since compact mode -hasn't been implemented nor deployed yet, we will not include it -in the benchmarks: +hasn't been implemented nor deployed yet, you should only consider this +for future projects: #+INCLUDE: packets/presence-c.psyc src psyc From d265944c8d4691a1f1b50f276dc7f9d40db56676 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 22 Aug 2011 23:29:14 +0200 Subject: [PATCH 3/3] + --- README.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index 22586fc..7c70580 100644 --- a/README.org +++ b/README.org @@ -7,12 +7,13 @@ libpsyc implements various functions required to use PSYC. - See [[http://about.psyc.eu/libpsyc]] for more information on the library. - See [[http://lib.psyc.eu/doc/]] for the API documentation. -- See [[http://about.psyc.eu/Specification]] for more information on the new PSYC - specification. +- See [[http://about.psyc.eu/Specification]] for more information + on the new PSYC specification. - See [[http://about.psyc.eu/]] for information on PSYC in general. -The plain C API located in the include/psyc directory along with the file psyc.h -is primarily intended to be used for binding with other languages and frameworks. +The plain C API located in the include/psyc directory along with the file +psyc.h is primarily intended to be used for binding with other languages +and frameworks. The LPC binding for psyced is distributed with psyclpc since it is spread over several files (LPC has no simple approach to binding). Other bindings @@ -76,8 +77,8 @@ into the library, contact either anyone of us directly or just join the developement room at - psyc://psyced.org/@welcome -- xmpp:*welcome@psyced.org - irc://psyced.org/welcome +- xmpp:*welcome@psyced.org * License