psyc://loupsycedyglgamf.onion/~lynX
eea78a8493
Merge remote-tracking branch 'lurchi/master'
1984-04-04 00:44:04 +00:00
lurchi
e8095bcc75
inline does not work for functions that are not in a header file, so
...
static inline again
2017-01-09 00:14:05 +01:00
psyc://loupsycedyglgamf.onion/~lynX
8fe9264b7e
psyc_render_list: check validity of inputs
2017-01-05 21:51:39 +00:00
lurchi
4d0d0bb9b6
switch modifier names and PSYC methods from str to [u8]
2017-01-05 22:51:38 +01:00
lurchi
6bdcd1273b
PsycOperator instead of char
...
let the parser return PsycOperator instead of char. Move the type
definitions PsycOperator and PsycStateOp to types.rs because they are
commonly used.
2017-01-05 22:37:46 +01:00
lurchi
99b86d3faa
add test: multiple packets in one buffer
2017-01-03 17:18:07 +01:00
lurchi
5d7bdfd7be
added psyctext
2016-09-14 00:04:40 +02:00
lurchi
4de756b5fd
bundle bitflags
2016-09-13 16:18:07 +02:00
psyc://loupsycedyglgamf.onion/~lynX
2e82f31f9d
Merge remote-tracking branch 'lurchi/master'
1984-04-04 00:44:04 +00:00
lurchi
3f527b176c
be explicit about imported and exported types
2016-09-11 12:19:35 +02:00
lurchi
749d0abf79
add variable and method modules
2016-09-11 03:11:14 +02:00
lurchi
27dc1292ba
body members are now called method and data (according to spec)
2016-09-10 19:55:52 +02:00
lurchi
f146435e99
add uniform tests
2016-09-10 13:12:06 +02:00
lurchi
393d3d0883
change uniform interface for more comprehensive access to entity data
2016-09-10 13:11:50 +02:00
lurchi
29103a611a
fix off-by-one error in nick parsing
2016-09-10 10:50:35 +02:00
lurchi
006ed09bb1
add uniform parsing
2016-09-07 19:25:44 +02:00
lurchi
700e5fff8b
slice::from_raw_parts must not be called on null pointer
2016-09-07 15:14:35 +02:00
lurchi
76f11a4c10
remove the unneeded parser structs
2016-09-05 15:35:57 +02:00
lurchi
0fe0be4e4b
fix bug in partial list parsing (second try)
2016-09-05 12:58:11 +02:00
lurchi
678304a144
Revert "fix bug in partial list parsing"
...
This reverts commit c593d85742
.
2016-09-05 12:55:37 +02:00
lurchi
d65ac87b9e
hopefully fixed the static inline mess now
2016-09-05 12:50:37 +02:00
lurchi
516231b0ba
small improvement: when calling parse_list after last element was reached, now PSYC_PARSE_LIST_END is returned
2016-09-05 12:37:35 +02:00
lurchi
c593d85742
fix bug in partial list parsing
2016-09-05 12:35:24 +02:00
lurchi
2614da4953
revert changes in parse.c
2016-09-05 11:53:54 +02:00
lurchi
48b9e626ed
forgot for change some static inline functions, see commit 9d7ad2a; tests passing again
2016-09-05 11:33:42 +02:00
lurchi
2ca0949327
fixed bug in PacketId::from_bytes
2016-09-04 18:10:19 +02:00
lurchi
5fb7482565
improves packet_id test
2016-09-04 17:44:55 +02:00
lurchi
dfe9ba6a0b
parsing and rendering of packet IDs
2016-09-04 17:37:35 +02:00
lurchi
2486b4a82a
accidentally removed PsycElem
2016-09-04 15:04:07 +02:00
lurchi
d5768a3040
remove dictionary parsing/rendering for now
2016-09-04 13:57:44 +02:00
lurchi
f892d406f4
change parse methods: the buffer must be passed on every call to simplify the parser lifetime
2016-09-04 13:47:37 +02:00
lurchi
dd8cc059c5
partial parsing possible with PsycParser and PsycListParser
2016-09-03 22:38:47 +02:00
lurchi
6330086b77
discovered byte string literals
2016-08-31 22:17:06 +02:00
lurchi
b3b5757deb
Also make the last portion of a value available (when parsing values partially)
2016-08-31 19:44:55 +02:00
lurchi
d12047ee18
change PsycParser API to make it possible to parse large packets and process them partially; prepare PsycDictParser
2016-08-31 19:14:41 +02:00
lurchi
ec261f3e20
fix usage restriction by adding lifetime specifier
2016-08-29 10:02:33 +02:00
lurchi
2003e77ae3
improve parser: incomplete data is handled internally
2016-08-29 01:00:31 +02:00
psyc://loupsycedyglgamf.onion/~lynX
d6c4f9c4e4
Merge remote-tracking branch
1984-04-04 00:44:04 +00:00
psyc://loupsycedyglgamf.onion/~lynX
1248989279
simple vim syntax for psyc packets
1984-04-04 00:44:05 +00:00
psyc://loupsycedyglgamf.onion/~lynX
a0abf99f72
Merge remote-tracking branch 'l/master'
1984-04-04 00:44:04 +00:00
psyc://loupsycedyglgamf.onion/~lynX
1da751f54c
allow 'make check' from outside test directory
1984-04-04 00:44:06 +00:00
psyc://loupsycedyglgamf.onion/~lynX
12080f6071
got to support both DESTDIR and PREFIX
1984-04-04 00:44:06 +00:00
psyc://loupsycedyglgamf.onion/~lynX
3a7ca2fa05
handle gcc bug
1984-04-04 00:44:05 +00:00
psyc://loupsycedyglgamf.onion/~lynX
7ed845c4f2
support make install DESTDIR=...
1984-04-04 00:44:05 +00:00
psyc://loupsycedyglgamf.onion/~lynX
8b2d725514
Merging rust bindings from lurchi, thxaloz!
1984-04-04 00:44:04 +00:00
lurchi
dd62ec934c
first version of the rust bindings: parsing and rendering is mostly functional
2016-08-23 00:04:57 +02:00
lurchi
9d7ad2a67f
Switch static inline to inline
...
The linker does not create symbols for static functions so Rust FFI
can't find them. All static inline function have been changed to 'inline'
functions with an 'extern inline' declaration in the corresponding .c
files. Other than Rust FFI seeing the functions this has other
advantages. See [1] for a nice explanation.
[1]
https://gustedt.wordpress.com/2010/11/29/myth-and-reality-about-inline-in-c99/
2016-08-21 09:58:36 +02:00
psyc://loupsycedyglgamf.onion/~lynX
33f2862476
+
2016-01-29 23:33:29 +00:00
psyc://loupsycedyglgamf.onion/~lynX
2819fa86b4
-
2016-01-29 23:33:28 +00:00
psyc://loupsycedyglgamf.onion/~lynX
be9ceb909d
avoid shadowing a global declaration from unistd.h
2016-01-29 23:33:27 +00:00