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:
Aleos
2017-11-02 17:39:03 -04:00
committed by GitHub
parent c6cc8edeb4
commit c4a364be2c
102 changed files with 1670 additions and 1790 deletions

View File

@@ -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 */

View File

@@ -20,6 +20,8 @@
----------------------------------------------------------------------------
*/
#pragma once
#ifndef __libconfig_h
#define __libconfig_h

View File

@@ -1,3 +1,5 @@
#pragma once
/* ----------------------------------------------------------------------------
libconfig - A library for processing structured configuration files
Copyright (C) 2005-2010 Mark A Lindner

View File

@@ -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 */

View File

@@ -1,3 +1,5 @@
#pragma once
#ifndef libconfig_yyHEADER_H
#define libconfig_yyHEADER_H 1
#define libconfig_yyIN_HEADER 1

View File

@@ -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 */

View File

@@ -1,3 +1,5 @@
#pragma once
/* ----------------------------------------------------------------------------
libconfig - A library for processing structured configuration files
Copyright (C) 2005-2010 Mark A Lindner

View File

@@ -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