summaryrefslogtreecommitdiff
path: root/splash
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 /splash
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 'splash')
-rw-r--r--splash/Splash.cc4
-rw-r--r--splash/Splash.h4
-rw-r--r--splash/SplashBitmap.cc4
-rw-r--r--splash/SplashBitmap.h4
-rw-r--r--splash/SplashClip.cc4
-rw-r--r--splash/SplashClip.h4
-rw-r--r--splash/SplashFTFont.cc4
-rw-r--r--splash/SplashFTFont.h4
-rw-r--r--splash/SplashFTFontEngine.cc4
-rw-r--r--splash/SplashFTFontEngine.h4
-rw-r--r--splash/SplashFTFontFile.cc4
-rw-r--r--splash/SplashFTFontFile.h4
-rw-r--r--splash/SplashFont.cc4
-rw-r--r--splash/SplashFont.h4
-rw-r--r--splash/SplashFontEngine.cc4
-rw-r--r--splash/SplashFontEngine.h4
-rw-r--r--splash/SplashFontFile.cc4
-rw-r--r--splash/SplashFontFile.h4
-rw-r--r--splash/SplashFontFileID.cc4
-rw-r--r--splash/SplashFontFileID.h4
-rw-r--r--splash/SplashPath.cc4
-rw-r--r--splash/SplashPath.h4
-rw-r--r--splash/SplashPattern.cc4
-rw-r--r--splash/SplashPattern.h4
-rw-r--r--splash/SplashScreen.cc4
-rw-r--r--splash/SplashScreen.h4
-rw-r--r--splash/SplashState.cc4
-rw-r--r--splash/SplashState.h4
-rw-r--r--splash/SplashXPath.cc4
-rw-r--r--splash/SplashXPath.h4
-rw-r--r--splash/SplashXPathScanner.cc4
-rw-r--r--splash/SplashXPathScanner.h4
32 files changed, 0 insertions, 128 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 187b99a7..eb2c909c 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -28,10 +28,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <limits.h>
diff --git a/splash/Splash.h b/splash/Splash.h
index 86e7a1b4..2ce73e9f 100644
--- a/splash/Splash.h
+++ b/splash/Splash.h
@@ -25,10 +25,6 @@
#ifndef SPLASH_H
#define SPLASH_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include <stddef.h>
#include "SplashTypes.h"
#include "SplashClip.h"
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index 8ae41ad0..e1b8bcbd 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -32,10 +32,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/splash/SplashBitmap.h b/splash/SplashBitmap.h
index 6ca20d3c..ee41ae67 100644
--- a/splash/SplashBitmap.h
+++ b/splash/SplashBitmap.h
@@ -32,10 +32,6 @@
#ifndef SPLASHBITMAP_H
#define SPLASHBITMAP_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
#include "poppler/GfxState.h"
#include <stdio.h>
diff --git a/splash/SplashClip.cc b/splash/SplashClip.cc
index b95ac7be..d04dcb5e 100644
--- a/splash/SplashClip.cc
+++ b/splash/SplashClip.cc
@@ -21,10 +21,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include "goo/gmem.h"
diff --git a/splash/SplashClip.h b/splash/SplashClip.h
index 5a730d8f..457502b5 100644
--- a/splash/SplashClip.h
+++ b/splash/SplashClip.h
@@ -22,10 +22,6 @@
#ifndef SPLASHCLIP_H
#define SPLASHCLIP_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
#include "SplashMath.h"
#include "SplashXPathScanner.h"
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 505b66a1..b990a0b4 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -26,10 +26,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <ft2build.h>
#include FT_OUTLINE_H
#include FT_SIZES_H
diff --git a/splash/SplashFTFont.h b/splash/SplashFTFont.h
index 5a6ae90e..68875c49 100644
--- a/splash/SplashFTFont.h
+++ b/splash/SplashFTFont.h
@@ -26,10 +26,6 @@
#include "poppler-config.h"
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include <ft2build.h>
#include FT_FREETYPE_H
#include "SplashFont.h"
diff --git a/splash/SplashFTFontEngine.cc b/splash/SplashFTFontEngine.cc
index 2ba19044..b116663d 100644
--- a/splash/SplashFTFontEngine.cc
+++ b/splash/SplashFTFontEngine.cc
@@ -24,10 +24,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/splash/SplashFTFontEngine.h b/splash/SplashFTFontEngine.h
index a9522eea..e53b7f3d 100644
--- a/splash/SplashFTFontEngine.h
+++ b/splash/SplashFTFontEngine.h
@@ -26,10 +26,6 @@
#ifndef SPLASHFTFONTENGINE_H
#define SPLASHFTFONTENGINE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include <ft2build.h>
#include FT_FREETYPE_H
#include "goo/gtypes.h"
diff --git a/splash/SplashFTFontFile.cc b/splash/SplashFTFontFile.cc
index 91b627c2..e932195e 100644
--- a/splash/SplashFTFontFile.cc
+++ b/splash/SplashFTFontFile.cc
@@ -23,10 +23,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include "goo/gmem.h"
#include "goo/GooString.h"
#include "poppler/GfxFont.h"
diff --git a/splash/SplashFTFontFile.h b/splash/SplashFTFontFile.h
index 3ff8ff71..5f0fd489 100644
--- a/splash/SplashFTFontFile.h
+++ b/splash/SplashFTFontFile.h
@@ -23,10 +23,6 @@
#ifndef SPLASHFTFONTFILE_H
#define SPLASHFTFONTFILE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include <ft2build.h>
#include FT_FREETYPE_H
#include "SplashFontFile.h"
diff --git a/splash/SplashFont.cc b/splash/SplashFont.cc
index 4f3aedf5..873d97d7 100644
--- a/splash/SplashFont.cc
+++ b/splash/SplashFont.cc
@@ -20,10 +20,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <limits.h>
#include <string.h>
#include "goo/gmem.h"
diff --git a/splash/SplashFont.h b/splash/SplashFont.h
index ab3de8f1..5995e4f4 100644
--- a/splash/SplashFont.h
+++ b/splash/SplashFont.h
@@ -21,10 +21,6 @@
#ifndef SPLASHFONT_H
#define SPLASHFONT_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
#include "SplashTypes.h"
#include "SplashClip.h"
diff --git a/splash/SplashFontEngine.cc b/splash/SplashFontEngine.cc
index d9f5118c..8775aeb8 100644
--- a/splash/SplashFontEngine.cc
+++ b/splash/SplashFontEngine.cc
@@ -27,10 +27,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
diff --git a/splash/SplashFontEngine.h b/splash/SplashFontEngine.h
index 3e8a7545..93acaa9f 100644
--- a/splash/SplashFontEngine.h
+++ b/splash/SplashFontEngine.h
@@ -26,10 +26,6 @@
#ifndef SPLASHFONTENGINE_H
#define SPLASHFONTENGINE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include <array>
#include "goo/gtypes.h"
diff --git a/splash/SplashFontFile.cc b/splash/SplashFontFile.cc
index fd46db0a..20209fb9 100644
--- a/splash/SplashFontFile.cc
+++ b/splash/SplashFontFile.cc
@@ -21,10 +21,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/splash/SplashFontFile.h b/splash/SplashFontFile.h
index f76538f0..6969803a 100644
--- a/splash/SplashFontFile.h
+++ b/splash/SplashFontFile.h
@@ -22,10 +22,6 @@
#ifndef SPLASHFONTFILE_H
#define SPLASHFONTFILE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
#include "SplashTypes.h"
diff --git a/splash/SplashFontFileID.cc b/splash/SplashFontFileID.cc
index a66dabf6..6c3b7c04 100644
--- a/splash/SplashFontFileID.cc
+++ b/splash/SplashFontFileID.cc
@@ -6,10 +6,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include "SplashFontFileID.h"
//------------------------------------------------------------------------
diff --git a/splash/SplashFontFileID.h b/splash/SplashFontFileID.h
index 7ed28d6b..1b0594dd 100644
--- a/splash/SplashFontFileID.h
+++ b/splash/SplashFontFileID.h
@@ -21,10 +21,6 @@
#ifndef SPLASHFONTFILEID_H
#define SPLASHFONTFILEID_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "goo/gtypes.h"
//------------------------------------------------------------------------
diff --git a/splash/SplashPath.cc b/splash/SplashPath.cc
index ba463fc6..b48decce 100644
--- a/splash/SplashPath.cc
+++ b/splash/SplashPath.cc
@@ -22,10 +22,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <string.h>
#include "goo/gmem.h"
#include "goo/GooLikely.h"
diff --git a/splash/SplashPath.h b/splash/SplashPath.h
index 96dbb6e0..be3840ae 100644
--- a/splash/SplashPath.h
+++ b/splash/SplashPath.h
@@ -22,10 +22,6 @@
#ifndef SPLASHPATH_H
#define SPLASHPATH_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
//------------------------------------------------------------------------
diff --git a/splash/SplashPattern.cc b/splash/SplashPattern.cc
index 28ca4995..c090a06e 100644
--- a/splash/SplashPattern.cc
+++ b/splash/SplashPattern.cc
@@ -20,10 +20,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include "SplashMath.h"
#include "SplashScreen.h"
#include "SplashPattern.h"
diff --git a/splash/SplashPattern.h b/splash/SplashPattern.h
index 8464d529..36674ac7 100644
--- a/splash/SplashPattern.h
+++ b/splash/SplashPattern.h
@@ -22,10 +22,6 @@
#ifndef SPLASHPATTERN_H
#define SPLASHPATTERN_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
class SplashScreen;
diff --git a/splash/SplashScreen.cc b/splash/SplashScreen.cc
index ff917a81..615fdd2b 100644
--- a/splash/SplashScreen.cc
+++ b/splash/SplashScreen.cc
@@ -21,10 +21,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <algorithm>
diff --git a/splash/SplashScreen.h b/splash/SplashScreen.h
index b8fe7940..c3bfe2ef 100644
--- a/splash/SplashScreen.h
+++ b/splash/SplashScreen.h
@@ -21,10 +21,6 @@
#ifndef SPLASHSCREEN_H
#define SPLASHSCREEN_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
#include <stdlib.h>
diff --git a/splash/SplashState.cc b/splash/SplashState.cc
index 882a7e16..85b7a6f6 100644
--- a/splash/SplashState.cc
+++ b/splash/SplashState.cc
@@ -21,10 +21,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <string.h>
#include "goo/gmem.h"
#include "SplashPattern.h"
diff --git a/splash/SplashState.h b/splash/SplashState.h
index 5ba96a91..408aea5b 100644
--- a/splash/SplashState.h
+++ b/splash/SplashState.h
@@ -23,10 +23,6 @@
#ifndef SPLASHSTATE_H
#define SPLASHSTATE_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
class SplashPattern;
diff --git a/splash/SplashXPath.cc b/splash/SplashXPath.cc
index 47f3f1dd..44c09f51 100644
--- a/splash/SplashXPath.cc
+++ b/splash/SplashXPath.cc
@@ -23,10 +23,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <algorithm>
diff --git a/splash/SplashXPath.h b/splash/SplashXPath.h
index 7abb18b6..55423d4c 100644
--- a/splash/SplashXPath.h
+++ b/splash/SplashXPath.h
@@ -22,10 +22,6 @@
#ifndef SPLASHXPATH_H
#define SPLASHXPATH_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
class SplashPath;
diff --git a/splash/SplashXPathScanner.cc b/splash/SplashXPathScanner.cc
index b1121693..6954a2c8 100644
--- a/splash/SplashXPathScanner.cc
+++ b/splash/SplashXPathScanner.cc
@@ -22,10 +22,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include <string.h>
#include <algorithm>
diff --git a/splash/SplashXPathScanner.h b/splash/SplashXPathScanner.h
index 427448af..66aeb190 100644
--- a/splash/SplashXPathScanner.h
+++ b/splash/SplashXPathScanner.h
@@ -22,10 +22,6 @@
#ifndef SPLASHXPATHSCANNER_H
#define SPLASHXPATHSCANNER_H
-#ifdef USE_GCC_PRAGMAS
-#pragma interface
-#endif
-
#include "SplashTypes.h"
#include <vector>