Initial work for map server to C++ (#2565)
* Initial progression of moving the map-server to C++ format. * Converted all core files to .cpp and header files to .hpp. * Refactored the refine database parser to utilize native YAML C++. Thanks to @Jeybla and @lighta for their help!
This commit is contained in:
11
3rdparty/libconfig/grammar.h
vendored
11
3rdparty/libconfig/grammar.h
vendored
@@ -1,4 +1,4 @@
|
||||
|
||||
#pragma once
|
||||
/* A Bison parser, made by GNU Bison 2.4.1. */
|
||||
|
||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
||||
@@ -32,7 +32,10 @@
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
@@ -109,5 +112,7 @@ typedef union YYSTYPE
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
2
3rdparty/libconfig/libconfig.h
vendored
2
3rdparty/libconfig/libconfig.h
vendored
@@ -20,6 +20,8 @@
|
||||
----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __libconfig_h
|
||||
#define __libconfig_h
|
||||
|
||||
|
||||
2
3rdparty/libconfig/parsectx.h
vendored
2
3rdparty/libconfig/parsectx.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
libconfig - A library for processing structured configuration files
|
||||
Copyright (C) 2005-2010 Mark A Lindner
|
||||
|
||||
10
3rdparty/libconfig/scanctx.h
vendored
10
3rdparty/libconfig/scanctx.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
libconfig - A library for processing structured configuration files
|
||||
Copyright (C) 2005-2010 Mark A Lindner
|
||||
@@ -31,6 +33,10 @@
|
||||
|
||||
#define MAX_INCLUDE_DEPTH 10
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct scan_context
|
||||
{
|
||||
config_t *config;
|
||||
@@ -59,4 +65,8 @@ extern char *scanctx_take_string(struct scan_context *ctx);
|
||||
|
||||
extern const char *scanctx_current_filename(struct scan_context *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __libconfig_scanctx_h */
|
||||
|
||||
2
3rdparty/libconfig/scanner.h
vendored
2
3rdparty/libconfig/scanner.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef libconfig_yyHEADER_H
|
||||
#define libconfig_yyHEADER_H 1
|
||||
#define libconfig_yyIN_HEADER 1
|
||||
|
||||
10
3rdparty/libconfig/strbuf.h
vendored
10
3rdparty/libconfig/strbuf.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
libconfig - A library for processing structured configuration files
|
||||
Copyright (C) 2005-2010 Mark A Lindner
|
||||
@@ -26,6 +28,10 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char *string;
|
||||
@@ -37,4 +43,8 @@ char *strbuf_release(strbuf_t *buf);
|
||||
|
||||
void strbuf_append(strbuf_t *buf, const char *text);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __libconfig_strbuf_h */
|
||||
|
||||
2
3rdparty/libconfig/wincompat.h
vendored
2
3rdparty/libconfig/wincompat.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
libconfig - A library for processing structured configuration files
|
||||
Copyright (C) 2005-2010 Mark A Lindner
|
||||
|
||||
10
3rdparty/mt19937ar/mt19937ar.h
vendored
10
3rdparty/mt19937ar/mt19937ar.h
vendored
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
A C-program for MT19937, with initialization improved 2002/1/26.
|
||||
Coded by Takuji Nishimura and Makoto Matsumoto.
|
||||
@@ -43,6 +45,10 @@
|
||||
email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* initializes mt[N] with a seed */
|
||||
void init_genrand(unsigned long s);
|
||||
|
||||
@@ -70,3 +76,7 @@ double genrand_real3(void);
|
||||
|
||||
/* generates a random number on [0,1) with 53-bit resolution*/
|
||||
double genrand_res53(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user