Kaydet (Commit) 29a96480 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up function declarations and some unused functions

Change-Id: I7eba9260b33e0b92ed997bf624d866644a091f29
üst 712d2793
......@@ -24,7 +24,6 @@
struct TagAttribute
{
TagAttribute(){}
TagAttribute( const OUString &rName, const OUString &rType , const OUString &rValue )
{
sName = rName;
......
......@@ -47,6 +47,9 @@
// matrix. Therefore for very large N, you may have to worry about memory
// usage.
#include <sal/config.h>
#include "cspline.h"
#include "solver.h"
void NaturalSpline (int N, double* x, double* a, double*& b, double*& c,
......
......@@ -24,6 +24,8 @@
#include <string.h>
#endif
#include <fontmap.hxx>
// #i42367# prevent MS compiler from using system locale for parsing
#ifdef _MSC_VER
#pragma setlocale("C")
......
/* -*- 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_HWPFILTER_SOURCE_FONTMAP_HXX
#define INCLUDED_HWPFILTER_SOURCE_FONTMAP_HXX
#include <sal/config.h>
int getRepFamilyName(char const *, char *, double &);
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -18,6 +18,7 @@
*/
#include "formula.h"
#include "grammar.hxx"
#include "mzstring.h"
#include "nodes.h"
......@@ -46,9 +47,6 @@ static int indent = 0;
#define indo indent--;
#endif
extern Node *mainParse(const char *);
void Formula::makeMathML(Node *res)
{
Node *tmp = res;
......
......@@ -32,15 +32,13 @@
#include <stdlib.h>
#include <string.h>
#include "grammar.hxx"
#include "lexer.hxx"
#include "nodes.h"
std::list<Node*> nodelist;
Node *mainParse(const char *_code);
void yyerror(const char *);
int yylex();
void initFlex( const char *s );
void viewResult(Node *res);
Node *top=0L;
......
/* -*- 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_HWPFILTER_SOURCE_GRAMMAR_HXX
#define INCLUDED_HWPFILTER_SOURCE_GRAMMAR_HXX
#include <sal/config.h>
class Node;
Node * mainParse(char const * _code);
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -22,6 +22,7 @@
#include <ctype.h>
#include "hwpfile.h"
#include "hbox.h"
#include "hutil.h"
static char *get_one_roman(int num, char one, char five, char ten, char *str)
{
......
......@@ -26,11 +26,10 @@
#include <comphelper/newarray.hxx>
#include "fontmap.hxx"
#include "formula.h"
#include "cspline.h"
extern int getRepFamilyName(const char* , char *, double &ratio);
#include <iostream>
#include <locale.h>
#include <sal/types.h>
......
......@@ -1043,6 +1043,8 @@ YY_MALLOC_DECL
#endif
#endif
#include <lexer.hxx>
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
......
/* -*- 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_HWPFILTER_SOURCE_LEXER_HXX
#define INCLUDED_HWPFILTER_SOURCE_LEXER_HXX
void initFlex(char const * s);
int yylex();
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment