Fix build on Darwin

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
bats pitch: Fix pitch_message_decode() API

This changes the pitch_message_decode() API to follow the same
convention as itch41_message_decode() which avoid a memcpy() in
libtrading internals.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
bats pitch: Add Symbol Clear message definition

Add Symbol Clear message definition. The PITCH specification says that
the message type was added on September 14, 2012 and been in effective
use since February 15, 2013.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
bats pitch: Add bats prefix to source files

Follow the same naming convention as other protocols and add bats prefix
to source files.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
bats pitch: Fix pitch_message_decode()

PITCH messages contain a 8 byte timestamp before message type.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
bats pitch: Make message type unsigned

It's easier to use ->MessageType in application code when you don't need
to worry about signedness.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Fix buffer_inflate() data loss

Make sure we don't lose data if there's not enough space in the output
buffer for buffer_inflate(). Also switch test-nasdaq-itch41.c to use
mmap() to simplify input buffer management.

Reported-by: Ville Aine <ville.aine@iki.fi>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
FAST: Default operator implemented

Signed-off-by: Marat Stanichenko <mstanichenko@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Nordic Equity TotalView-ITCH 1.86

Add Nordic Equity TotalView-ITCH version 1.86 protocol definitions. I
haven't verified this against historical data nor realtime feed yet.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Add NASDAQ OMX ITCH to list of supported protocols

Signed-off-by: Pekka Enberg <penberg@kernel.org>