summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-08-21 18:28:03 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-08-21 19:30:18 +0200
commitcc430308c38d106618189357364454230ff574d6 (patch)
treefba710c9596fde367cc7ad23cacde75c021c2fb1 /connectivity
parenta598600a494b9fe9548a6cd909b453376ead0b04 (diff)
Put functions exported by sqlbison.hxx into a .hxx file
Change-Id: Ibf4fed39e4d36cb03d079cf55a12d4ec37a70f2b
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/inc/parse/sqlbison_exports.hxx23
-rw-r--r--connectivity/source/parse/sqlbison.y1
-rw-r--r--connectivity/source/parse/sqlnode.cxx6
3 files changed, 26 insertions, 4 deletions
diff --git a/connectivity/source/inc/parse/sqlbison_exports.hxx b/connectivity/source/inc/parse/sqlbison_exports.hxx
new file mode 100644
index 000000000000..abb47a304cba
--- /dev/null
+++ b/connectivity/source/inc/parse/sqlbison_exports.hxx
@@ -0,0 +1,23 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Copyright 2012 LibreOffice contributors.
+ *
+ * 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/.
+ */
+
+#ifndef _CONNECTIVITY_PARSE_SQLBISON_HXX_
+#define _CONNECTIVITY_PARSE_SQLBISON_HXX_
+
+#include <sal/types.h>
+#include <rtl/ustring.hxx>
+#include <connectivity/sqlnode.hxx>
+
+::rtl::OUString ConvertLikeToken(const ::connectivity::OSQLParseNode* pTokenNode, const ::connectivity::OSQLParseNode* pEscapeNode, sal_Bool bInternational);
+int SQLyyparse (void);
+void setParser( ::connectivity::OSQLParser* );
+
+#endif //_CONNECTIVITY_PARSE_SQLBISON_HXX_
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y
index d033778938b6..a93b7998d5f7 100644
--- a/connectivity/source/parse/sqlbison.y
+++ b/connectivity/source/parse/sqlbison.y
@@ -20,6 +20,7 @@
#include <vector>
#include <string.h>
+#include "parse/sqlbison_exports.hxx"
#ifndef _CONNECTIVITY_SQLNODE_HXX
#include <connectivity/sqlnode.hxx>
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 6996638eba08..9cc9101298b7 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include "parse/sqlbison_exports.hxx"
+
#include <sal/macros.h>
#include <connectivity/sqlnode.hxx>
#include <connectivity/sqlerror.hxx>
@@ -73,10 +75,6 @@ using namespace ::dbtools;
using namespace ::comphelper;
-extern int SQLyyparse (void);
-extern ::rtl::OUString ConvertLikeToken(const ::connectivity::OSQLParseNode* pTokenNode, const ::connectivity::OSQLParseNode* pEscapeNode, sal_Bool bInternational);
-extern void setParser( ::connectivity::OSQLParser* );
-
namespace
{
// -----------------------------------------------------------------------------