summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/literals.h
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2017-04-19 09:34:23 +0000
committerkrasimir <krasimir@chalmers.se>2017-04-19 09:34:23 +0000
commit7d72d99c2f7fc228d71df627a10a2ff776335b2b (patch)
treef4629cb53ba213a56f3f8faddae3cc77595c077a /src/runtime/c/pgf/literals.h
parent33ec916c9c8a7656583ef31947c5ff81b029d3a7 (diff)
explicitly classify all functions in libpgf as either internal or API functions
Diffstat (limited to 'src/runtime/c/pgf/literals.h')
-rw-r--r--src/runtime/c/pgf/literals.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/runtime/c/pgf/literals.h b/src/runtime/c/pgf/literals.h
index 624d82f9f..5724fccef 100644
--- a/src/runtime/c/pgf/literals.h
+++ b/src/runtime/c/pgf/literals.h
@@ -1,35 +1,15 @@
#ifndef PGF_LITERALS_H_
#define PGF_LITERALS_H_
-
-// MSVC requires explicit export/import of
-// symbols in DLLs. CMake takes care of this
-// for functions, but not for data/variables.
-#if defined(_MSC_VER)
-#if defined(COMPILING_PGF)
-#define PGF_API_DATA_DECL __declspec(dllexport)
-#define PGF_API_DATA __declspec(dllexport)
-#else
-#define PGF_API_DATA_DECL __declspec(dllimport)
-#define PGF_API_DATA ERROR_NOT_COMPILING_LIBPGF
-#endif
-
-#else
-
-#define PGF_API_DATA_DECL extern
-#define PGF_API_DATA
-#endif
-// end MSVC workaround
-
#include <pgf/data.h>
// literal for named entities recognition
-PGF_API_DATA_DECL PgfLiteralCallback pgf_nerc_literal_callback;
+PGF_API_DECL extern PgfLiteralCallback pgf_nerc_literal_callback;
// literal for finding unknown words
-PGF_API_DATA_DECL PgfLiteralCallback pgf_unknown_literal_callback;
+PGF_API_DECL extern PgfLiteralCallback pgf_unknown_literal_callback;
-PgfCCat*
+PGF_INTERNAL_DECL PgfCCat*
pgf_literal_cat(PgfConcr* concr, PgfLiteral lit);
#endif // PGF_LITERALS_H_