mirror of
https://github.com/louisrubet/rpn
synced 2025-02-07 08:45:48 +01:00
define guard
This commit is contained in:
parent
59971292c8
commit
fa936000ba
10 changed files with 26 additions and 14 deletions
|
@ -9,6 +9,8 @@ Changelog
|
||||||
- SonarCloud integration, Sonar way profile
|
- SonarCloud integration, Sonar way profile
|
||||||
- clang-format now based on google style
|
- clang-format now based on google style
|
||||||
- [google c++ style guide](https://google.github.io/styleguide/cppguide.html) applied
|
- [google c++ style guide](https://google.github.io/styleguide/cppguide.html) applied
|
||||||
|
- define guard
|
||||||
|
- name and order of inclusions
|
||||||
- Test files are now markdown (.md) files, tests result are slightly changed
|
- Test files are now markdown (.md) files, tests result are slightly changed
|
||||||
- Delivery as flatpak and snap
|
- Delivery as flatpak and snap
|
||||||
- it seems cosh was giving sinh (!)
|
- it seems cosh was giving sinh (!)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef CONSTANT_H
|
#ifndef CONSTANT_H_
|
||||||
#define CONSTANT_H
|
#define CONSTANT_H_
|
||||||
|
|
||||||
#define MPFR_USE_NO_MACRO
|
#define MPFR_USE_NO_MACRO
|
||||||
#include <mpfr.h>
|
#include <mpfr.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef ESCAPE_H
|
#ifndef ESCAPE_H_
|
||||||
#define ESCAPE_H
|
#define ESCAPE_H_
|
||||||
|
|
||||||
// ANSI escape sequences
|
// ANSI escape sequences
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ENTRY_HPP_
|
#ifndef INPUT_HPP_
|
||||||
#define _ENTRY_HPP_
|
#define INPUT_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _PARSER_HPP_
|
#ifndef LEXER_HPP_
|
||||||
#define _PARSER_HPP_
|
#define LEXER_HPP_
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef MPREAL_OUT_HPP_
|
||||||
|
#define MPREAL_OUT_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -9,3 +12,5 @@ using namespace mpfr;
|
||||||
|
|
||||||
ostream& mpreal_output10base(ostream& out, const string& fmt, const mpreal& value);
|
ostream& mpreal_output10base(ostream& out, const string& fmt, const mpreal& value);
|
||||||
ostream& mpreal_outputNbase(ostream& out, int base, const mpreal& value);
|
ostream& mpreal_outputNbase(ostream& out, int base, const mpreal& value);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef OBJECT_HPP
|
#ifndef OBJECT_HPP_
|
||||||
#define OBJECT_HPP
|
#define OBJECT_HPP_
|
||||||
|
|
||||||
#define MPFR_USE_NO_MACRO
|
#define MPFR_USE_NO_MACRO
|
||||||
#include <mpfr.h>
|
#include <mpfr.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef PROGRAM_HPP
|
#ifndef PROGRAM_HPP_
|
||||||
#define PROGRAM_HPP
|
#define PROGRAM_HPP_
|
||||||
|
|
||||||
// std c++
|
// std c++
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef __stack_h__
|
#ifndef STACK_HPP_
|
||||||
#define __stack_h__
|
#define STACK_HPP_
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
|
#ifndef VERSION_H_
|
||||||
|
#define VERSION_H_
|
||||||
|
|
||||||
#define RPN_VERSION "2.4"
|
#define RPN_VERSION "2.4"
|
||||||
#define RPN_UNAME "rpn v" RPN_VERSION ", (c) 2017 <louis@rubet.fr>, GNU LGPL v3"
|
#define RPN_UNAME "rpn v" RPN_VERSION ", (c) 2017 <louis@rubet.fr>, GNU LGPL v3"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue