define guard

This commit is contained in:
Louis Rubet 2022-02-24 12:23:26 +01:00
parent 59971292c8
commit fa936000ba
10 changed files with 26 additions and 14 deletions

View file

@ -9,6 +9,8 @@ Changelog
- SonarCloud integration, Sonar way profile
- clang-format now based on google style
- [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
- Delivery as flatpak and snap
- it seems cosh was giving sinh (!)

View file

@ -1,5 +1,5 @@
#ifndef CONSTANT_H
#define CONSTANT_H
#ifndef CONSTANT_H_
#define CONSTANT_H_
#define MPFR_USE_NO_MACRO
#include <mpfr.h>

View file

@ -1,5 +1,5 @@
#ifndef ESCAPE_H
#define ESCAPE_H
#ifndef ESCAPE_H_
#define ESCAPE_H_
// ANSI escape sequences

View file

@ -1,5 +1,5 @@
#ifndef _ENTRY_HPP_
#define _ENTRY_HPP_
#ifndef INPUT_HPP_
#define INPUT_HPP_
#include <string>
#include <vector>

View file

@ -1,5 +1,5 @@
#ifndef _PARSER_HPP_
#define _PARSER_HPP_
#ifndef LEXER_HPP_
#define LEXER_HPP_
#include <map>
#include <vector>

View file

@ -1,3 +1,6 @@
#ifndef MPREAL_OUT_HPP_
#define MPREAL_OUT_HPP_
#include <string>
#include <ostream>
using namespace std;
@ -9,3 +12,5 @@ using namespace mpfr;
ostream& mpreal_output10base(ostream& out, const string& fmt, const mpreal& value);
ostream& mpreal_outputNbase(ostream& out, int base, const mpreal& value);
#endif

View file

@ -1,5 +1,5 @@
#ifndef OBJECT_HPP
#define OBJECT_HPP
#ifndef OBJECT_HPP_
#define OBJECT_HPP_
#define MPFR_USE_NO_MACRO
#include <mpfr.h>

View file

@ -1,5 +1,5 @@
#ifndef PROGRAM_HPP
#define PROGRAM_HPP
#ifndef PROGRAM_HPP_
#define PROGRAM_HPP_
// std c++
#include <fstream>

View file

@ -1,5 +1,5 @@
#ifndef __stack_h__
#define __stack_h__
#ifndef STACK_HPP_
#define STACK_HPP_
#include <string.h>

View file

@ -1,2 +1,7 @@
#ifndef VERSION_H_
#define VERSION_H_
#define RPN_VERSION "2.4"
#define RPN_UNAME "rpn v" RPN_VERSION ", (c) 2017 <louis@rubet.fr>, GNU LGPL v3"
#endif