summaryrefslogtreecommitdiff
path: root/fofi
diff options
context:
space:
mode:
authorAdam Reichold <adam.reichold@t-online.de>2018-10-10 07:44:58 +0200
committerAdam Reichold <adam.reichold@t-online.de>2018-10-10 07:46:44 +0200
commit7f20ace4579f69fc3bd0f975fadec37134c3782c (patch)
tree28c4e2c3ee913d7aa8ccb151a50c17ef2f658530 /fofi
parente1501603b6f043a40586ff0babf34980a6f03b15 (diff)
Remove usage of pragmas interface and implementation
GCC recommends not using them for a long time and its documentation says: > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support > and the “key method” heuristic mentioned in Vague Linkage. > Using them can actually cause your program to grow due to > unnecessary out-of-line copies of inline functions. Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were guarded by just __GNUC__ which upsets Clang.
Diffstat (limited to 'fofi')
-rw-r--r--fofi/FoFiBase.cc4
-rw-r--r--fofi/FoFiBase.h4
-rw-r--r--fofi/FoFiEncodings.cc4
-rw-r--r--fofi/FoFiEncodings.h4
-rw-r--r--fofi/FoFiIdentifier.cc4
-rw-r--r--fofi/FoFiIdentifier.h4
-rw-r--r--fofi/FoFiTrueType.cc4
-rw-r--r--fofi/FoFiTrueType.h4
-rw-r--r--fofi/FoFiType1.cc4
-rw-r--r--fofi/FoFiType1.h4
-rw-r--r--fofi/FoFiType1C.cc4
-rw-r--r--fofi/FoFiType1C.h4
12 files changed, 0 insertions, 48 deletions
diff --git a/fofi/FoFiBase.cc b/fofi/FoFiBase.cc
index 8ca381b3..713d071d 100644
--- a/fofi/FoFiBase.cc
+++ b/fofi/FoFiBase.cc
@@ -24,10 +24,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdio.h>
#include <limits.h>
#include "goo/gmem.h"
diff --git a/fofi/FoFiBase.h b/fofi/FoFiBase.h
index e3413b10..51652985 100644
--- a/fofi/FoFiBase.h
+++ b/fofi/FoFiBase.h
@@ -23,10 +23,6 @@
#ifndef FOFIBASE_H
#define FOFIBASE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
//------------------------------------------------------------------------
diff --git a/fofi/FoFiEncodings.cc b/fofi/FoFiEncodings.cc
index 96bd4e95..17b93f03 100644
--- a/fofi/FoFiEncodings.cc
+++ b/fofi/FoFiEncodings.cc
@@ -22,10 +22,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include "FoFiEncodings.h"
diff --git a/fofi/FoFiEncodings.h b/fofi/FoFiEncodings.h
index e7444906..c27a370e 100644
--- a/fofi/FoFiEncodings.h
+++ b/fofi/FoFiEncodings.h
@@ -23,10 +23,6 @@
#ifndef FOFIENCODINGS_H
#define FOFIENCODINGS_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
//------------------------------------------------------------------------
diff --git a/fofi/FoFiIdentifier.cc b/fofi/FoFiIdentifier.cc
index 8843f9db..ded16e23 100644
--- a/fofi/FoFiIdentifier.cc
+++ b/fofi/FoFiIdentifier.cc
@@ -21,10 +21,6 @@
//
//========================================================================
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdio.h>
#include <string.h>
#include <limits.h>
diff --git a/fofi/FoFiIdentifier.h b/fofi/FoFiIdentifier.h
index 2414b849..45252e9a 100644
--- a/fofi/FoFiIdentifier.h
+++ b/fofi/FoFiIdentifier.h
@@ -23,10 +23,6 @@
#ifndef FOFIIDENTIFIER_H
#define FOFIIDENTIFIER_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
//------------------------------------------------------------------------
// FoFiIdentifier
//------------------------------------------------------------------------
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index 759ade2d..f7b9ab58 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -32,10 +32,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <limits.h>
diff --git a/fofi/FoFiTrueType.h b/fofi/FoFiTrueType.h
index 3524b139..e364112c 100644
--- a/fofi/FoFiTrueType.h
+++ b/fofi/FoFiTrueType.h
@@ -28,10 +28,6 @@
#ifndef FOFITRUETYPE_H
#define FOFITRUETYPE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "stddef.h"
#include <unordered_map>
#include <string>
diff --git a/fofi/FoFiType1.cc b/fofi/FoFiType1.cc
index 62d10c8c..83faa4a1 100644
--- a/fofi/FoFiType1.cc
+++ b/fofi/FoFiType1.cc
@@ -27,10 +27,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <limits.h>
diff --git a/fofi/FoFiType1.h b/fofi/FoFiType1.h
index f8a92cab..7902be53 100644
--- a/fofi/FoFiType1.h
+++ b/fofi/FoFiType1.h
@@ -23,10 +23,6 @@
#ifndef FOFITYPE1_H
#define FOFITYPE1_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
#include "FoFiBase.h"
diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index d70c80b5..2312f3af 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -24,10 +24,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <math.h>
diff --git a/fofi/FoFiType1C.h b/fofi/FoFiType1C.h
index 6f2c696f..131fa311 100644
--- a/fofi/FoFiType1C.h
+++ b/fofi/FoFiType1C.h
@@ -25,10 +25,6 @@
#ifndef FOFITYPE1C_H
#define FOFITYPE1C_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
#include "FoFiBase.h"