Clean up unreferenced functions
Change-Id: Id2c90088298d389bd1cd8efad9aa26100965d6a2
This commit is contained in:
32
l10ntools/inc/cfglex.hxx
Normal file
32
l10ntools/inc/cfglex.hxx
Normal file
@@ -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: */
|
35
l10ntools/inc/srclex.hxx
Normal file
35
l10ntools/inc/srclex.hxx
Normal file
@@ -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: */
|
@@ -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;
|
||||
%}
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -23,6 +23,8 @@
|
||||
#include <cstring>
|
||||
|
||||
#include "helper.hxx"
|
||||
#include "srclex.hxx"
|
||||
|
||||
#include "boost/scoped_ptr.hpp"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -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();
|
||||
%}
|
||||
|
Reference in New Issue
Block a user