Initial work for G-code sender and more intensive usage of Boost

This commit is contained in:
Alessandro Ranellucci 2014-11-26 22:30:25 +01:00
parent 43cbad8867
commit 11dd67ab34
1649 changed files with 1860 additions and 1642 deletions

View file

@ -0,0 +1,48 @@
/*
Copyright Redshift Software, Inc. 2012-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_BSD_BSDI_H
#define BOOST_PREDEF_OS_BSD_BSDI_H
#include <boost/predef/os/bsd.h>
/*`
[heading `BOOST_OS_BSD_BSDI`]
[@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS] operating system.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__bsdi__`] [__predef_detection__]]
]
*/
#define BOOST_OS_BSD_BSDI BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
defined(__bsdi__) \
)
# ifndef BOOST_OS_BSD_AVAILABLE
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
# define BOOST_OS_BSD_AVAILABLE
# endif
# undef BOOST_OS_BSD_BSDI
# define BOOST_OS_BSD_BSDI BOOST_VERSION_NUMBER_AVAILABLE
#endif
#if BOOST_OS_BSD_BSDI
# define BOOST_OS_BSD_BSDI_AVAILABLE
# include <boost/predef/detail/os_detected.h>
#endif
#define BOOST_OS_BSD_BSDI_NAME "BSDi BSD/OS"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_BSDI,BOOST_OS_BSD_BSDI_NAME)
#endif

View file

@ -0,0 +1,50 @@
/*
Copyright Redshift Software, Inc. 2012-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_BSD_DRAGONFLY_H
#define BOOST_PREDEF_OS_BSD_DRAGONFLY_H
#include <boost/predef/os/bsd.h>
/*`
[heading `BOOST_OS_BSD_DRAGONFLY`]
[@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD] operating system.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__DragonFly__`] [__predef_detection__]]
]
*/
#define BOOST_OS_BSD_DRAGONFLY BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
defined(__DragonFly__) \
)
# ifndef BOOST_OS_BSD_AVAILABLE
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
# define BOOST_OS_BSD_AVAILABLE
# endif
# undef BOOST_OS_BSD_DRAGONFLY
# if defined(__DragonFly__)
# define BOOST_OS_DRAGONFLY_BSD BOOST_VERSION_NUMBER_AVAILABLE
# endif
#endif
#if BOOST_OS_BSD_DRAGONFLY
# define BOOST_OS_BSD_DRAGONFLY_AVAILABLE
# include <boost/predef/detail/os_detected.h>
#endif
#define BOOST_OS_BSD_DRAGONFLY_NAME "DragonFly BSD"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_DRAGONFLY,BOOST_OS_BSD_DRAGONFLY_NAME)
#endif

View file

@ -0,0 +1,60 @@
/*
Copyright Redshift Software, Inc. 2012-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_BSD_FREE_H
#define BOOST_PREDEF_OS_BSD_FREE_H
#include <boost/predef/os/bsd.h>
/*`
[heading `BOOST_OS_BSD_FREE`]
[@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__FreeBSD__`] [__predef_detection__]]
[[`__FreeBSD_version`] [V.R.P]]
]
*/
#define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
defined(__FreeBSD__) \
)
# ifndef BOOST_OS_BSD_AVAILABLE
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
# define BOOST_OS_BSD_AVAILABLE
# endif
# undef BOOST_OS_BSD_FREE
# if defined(__FreeBSD_version)
# if __FreeBSD_version < 500000
# define BOOST_OS_BSD_FREE \
BOOST_PREDEF_MAKE_10_VRP000(__FreeBSD_version)
# else
# define BOOST_OS_BSD_FREE \
BOOST_PREDEF_MAKE_10_VRR000(__FreeBSD_version)
# endif
# else
# define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_AVAILABLE
# endif
#endif
#if BOOST_OS_BSD_FREE
# define BOOST_OS_BSD_FREE_AVAILABLE
# include <boost/predef/detail/os_detected.h>
#endif
#define BOOST_OS_BSD_FREE_NAME "Free BSD"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_FREE,BOOST_OS_BSD_FREE_NAME)
#endif

View file

@ -0,0 +1,84 @@
/*
Copyright Redshift Software, Inc. 2012-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_BSD_NET_H
#define BOOST_PREDEF_OS_BSD_NET_H
#include <boost/predef/os/bsd.h>
/*`
[heading `BOOST_OS_BSD_NET`]
[@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__NETBSD__`] [__predef_detection__]]
[[`__NetBSD__`] [__predef_detection__]]
[[`__NETBSD_version`] [V.R.P]]
[[`NetBSD0_8`] [0.8.0]]
[[`NetBSD0_9`] [0.9.0]]
[[`NetBSD1_0`] [1.0.0]]
[[`__NetBSD_Version`] [V.R.P]]
]
*/
#define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
defined(__NETBSD__) || defined(__NetBSD__) \
)
# ifndef BOOST_OS_BSD_AVAILABLE
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
# define BOOST_OS_BSD_AVAILABLE
# endif
# undef BOOST_OS_BSD_NET
# if defined(__NETBSD__)
# if defined(__NETBSD_version)
# if __NETBSD_version < 500000
# define BOOST_OS_BSD_NET \
BOOST_PREDEF_MAKE_10_VRP000(__NETBSD_version)
# else
# define BOOST_OS_BSD_NET \
BOOST_PREDEF_MAKE_10_VRR000(__NETBSD_version)
# endif
# else
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
# endif
# elif defined(__NetBSD__)
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_8)
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,8,0)
# endif
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_9)
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,9,0)
# endif
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD1_0)
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(1,0,0)
# endif
# if !defined(BOOST_OS_BSD_NET) && defined(__NetBSD_Version)
# define BOOST_OS_BSD_NET \
BOOST_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
# endif
# if !defined(BOOST_OS_BSD_NET)
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
# endif
# endif
#endif
#if BOOST_OS_BSD_NET
# define BOOST_OS_BSD_NET_AVAILABLE
# include <boost/predef/detail/os_detected.h>
#endif
#define BOOST_OS_BSD_NET_NAME "DragonFly BSD"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_NET,BOOST_OS_BSD_NET_NAME)
#endif

View file

@ -0,0 +1,171 @@
/*
Copyright Redshift Software, Inc. 2012-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_BSD_OPEN_H
#define BOOST_PREDEF_OS_BSD_OPEN_H
#include <boost/predef/os/bsd.h>
/*`
[heading `BOOST_OS_BSD_OPEN`]
[@http://en.wikipedia.org/wiki/Openbsd OpenBSD] operating system.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__OpenBSD__`] [__predef_detection__]]
[[`OpenBSD2_0`] [2.0.0]]
[[`OpenBSD2_1`] [2.1.0]]
[[`OpenBSD2_2`] [2.2.0]]
[[`OpenBSD2_3`] [2.3.0]]
[[`OpenBSD2_4`] [2.4.0]]
[[`OpenBSD2_5`] [2.5.0]]
[[`OpenBSD2_6`] [2.6.0]]
[[`OpenBSD2_7`] [2.7.0]]
[[`OpenBSD2_8`] [2.8.0]]
[[`OpenBSD2_9`] [2.9.0]]
[[`OpenBSD3_0`] [3.0.0]]
[[`OpenBSD3_1`] [3.1.0]]
[[`OpenBSD3_2`] [3.2.0]]
[[`OpenBSD3_3`] [3.3.0]]
[[`OpenBSD3_4`] [3.4.0]]
[[`OpenBSD3_5`] [3.5.0]]
[[`OpenBSD3_6`] [3.6.0]]
[[`OpenBSD3_7`] [3.7.0]]
[[`OpenBSD3_8`] [3.8.0]]
[[`OpenBSD3_9`] [3.9.0]]
[[`OpenBSD4_0`] [4.0.0]]
[[`OpenBSD4_1`] [4.1.0]]
[[`OpenBSD4_2`] [4.2.0]]
[[`OpenBSD4_3`] [4.3.0]]
[[`OpenBSD4_4`] [4.4.0]]
[[`OpenBSD4_5`] [4.5.0]]
[[`OpenBSD4_6`] [4.6.0]]
[[`OpenBSD4_7`] [4.7.0]]
[[`OpenBSD4_8`] [4.8.0]]
[[`OpenBSD4_9`] [4.9.0]]
]
*/
#define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
defined(__OpenBSD__) \
)
# ifndef BOOST_OS_BSD_AVAILABLE
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
# define BOOST_OS_BSD_AVAILABLE
# endif
# undef BOOST_OS_BSD_OPEN
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_0)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,0,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_1)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,1,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_2)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,2,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_3)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,3,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_4)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,4,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_5)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,5,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_6)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,6,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_7)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,7,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_8)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,8,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD2_9)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(2,9,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_0)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,0,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_1)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,1,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_2)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,2,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_3)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,3,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_4)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,4,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_5)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,5,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_6)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,6,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_7)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,7,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_8)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,8,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD3_9)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(3,9,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_0)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,0,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_1)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,1,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_2)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,2,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_3)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,3,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_4)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,4,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_5)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,5,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_6)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,6,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_7)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,7,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_8)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,8,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN) && defined(OpenBSD4_9)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER(4,9,0)
# endif
# if !defined(BOOST_OS_BSD_OPEN)
# define BOOST_OS_BSD_OPEN BOOST_VERSION_NUMBER_AVAILABLE
# endif
#endif
#if BOOST_OS_BSD_OPEN
# define BOOST_OS_BSD_OPEN_AVAILABLE
# include <boost/predef/detail/os_detected.h>
#endif
#define BOOST_OS_BSD_OPEN_NAME "OpenBSD"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_OPEN,BOOST_OS_BSD_OPEN_NAME)
#endif