summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-04 08:53:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-04 10:05:58 +0200
commitc8c6c8319f07b960c30e05d0a730ea8f3f7583cc (patch)
treea741d2ce20423c533385816413718646d8c4347a /l10ntools
parent705d69a925d5723a5c0b2a62dd41f67f2fe8a217 (diff)
Clean up unreferenced functions
Change-Id: Id2c90088298d389bd1cd8efad9aa26100965d6a2
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/cfglex.hxx32
-rw-r--r--l10ntools/inc/srclex.hxx35
-rw-r--r--l10ntools/source/cfglex.l6
-rw-r--r--l10ntools/source/cfgmerge.cxx4
-rw-r--r--l10ntools/source/export.cxx2
-rw-r--r--l10ntools/source/srclex.l9
6 files changed, 76 insertions, 12 deletions
diff --git a/l10ntools/inc/cfglex.hxx b/l10ntools/inc/cfglex.hxx
new file mode 100644
index 000000000000..f55477d2a59d
--- /dev/null
+++ b/l10ntools/inc/cfglex.hxx
@@ -0,0 +1,32 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_L10NTOOLS_INC_CFGLEX_HXX
+#define INCLUDED_L10NTOOLS_INC_CFGLEX_HXX
+
+#include <sal/config.h>
+
+#include <stdio.h>
+
+extern "C" void workOnTokenSet( int, char* );
+extern "C" FILE * init(int, char **);
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/l10ntools/inc/srclex.hxx b/l10ntools/inc/srclex.hxx
new file mode 100644
index 000000000000..0789d97351c2
--- /dev/null
+++ b/l10ntools/inc/srclex.hxx
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_L10NTOOLS_INC_SRCLEX_HXX
+#define INCLUDED_L10NTOOLS_INC_SRCLEX_HXX
+
+#include <sal/config.h>
+
+#include <stdio.h>
+
+extern "C" int WorkOnTokenSet( int, char* );
+extern "C" FILE * init(int, char **);
+extern "C" int SetError();
+extern "C" int GetError();
+extern "C" void Close();
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/l10ntools/source/cfglex.l b/l10ntools/source/cfglex.l
index 7313527541e6..f87baf41813d 100644
--- a/l10ntools/source/cfglex.l
+++ b/l10ntools/source/cfglex.l
@@ -42,6 +42,8 @@
#include "sal/main.h"
+#include "cfglex.hxx"
+
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
@@ -56,10 +58,6 @@
int yycolumn = 1;
#define YY_USER_ACTION yycolumn += yyleng;
-/* external functions (C++ code, declared as extern "C" */
-extern "C" void workOnTokenSet( int, char* );
-extern "C" FILE * init(int, char **);
-
int bText=0;
%}
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx
index cc44dd3ff2ac..cfd471be5c1e 100644
--- a/l10ntools/source/cfgmerge.cxx
+++ b/l10ntools/source/cfgmerge.cxx
@@ -17,9 +17,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include "common.hxx"
#include "sal/config.h"
+#include "cfglex.hxx"
+#include "common.hxx"
+
#include <cstdio>
#include <cstdlib>
#include <cstring>
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 37f34f958903..2fff37c61af9 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -23,6 +23,8 @@
#include <cstring>
#include "helper.hxx"
+#include "srclex.hxx"
+
#include "boost/scoped_ptr.hpp"
#include <stdio.h>
#include <stdlib.h>
diff --git a/l10ntools/source/srclex.l b/l10ntools/source/srclex.l
index c97dcaa12fc2..b484881d0232 100644
--- a/l10ntools/source/srclex.l
+++ b/l10ntools/source/srclex.l
@@ -43,6 +43,8 @@
#include "sal/main.h"
+#include "srclex.hxx"
+
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
@@ -54,13 +56,6 @@
#endif
#define YY_NO_UNISTD_H
-/* external functions (C++ code, declared as extern "C" */
-extern "C" int WorkOnTokenSet( int, char* );
-extern "C" FILE * init(int, char **);
-extern "C" int SetError();
-extern "C" int GetError();
-extern "C" void Close();
-
/* forwards */
void YYWarning();
%}