SegFault will importing some files from OpenOffice

Kevin B. Hendricks kevin.hendricks@sympatico.ca
Sat Dec 23 07:43:00 GMT 2000


Hi,

I recently joined the OpenOffice project to help with the ppc linux port.  
The source code is huge and I decided I finally needed something to help me 
find functions, etc. 

I chose SourceNavigator and built it.

Unfortunately, during the initial project import, both of the attached header 
files created a SIGSEGV.  I continued the import after each one.  Both files 
seems to show functions with very very long arguments lists.

Is there some hard coded limit I have reached here?

The files are attached for your own testing in case they help.

Thanks,

Kevin
 
---
Kevin B. Hendricks, Associate Professor
Operations and Information Technology
Richard Ivey School of Business, UWO, London ON, CANADA
(519) 661-3874
/*************************************************************************
 *
 *  $RCSfile: undgraut.hxx,v $
 *
 *  $Revision: 1.1.1.1 $
 *
 *  last change: $Author: hr $ $Date: 2000/09/18 16:46:30 $
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (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.openoffice.org/license.html .
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************/

#ifndef _SCH_UNDGRAUT_HXX
#define _SCH_UNDGRAUT_HXX

#include "chtmodel.hxx"
#include "schundo.hxx"

/*************************************************************************
|*
|* Undo fuer Diagramm-Autopilot
|*
\************************************************************************/

class SchUndoDiagramAutoPilot : public SchUndoAction
{
private:
	SvxChartStyle eOldStyle;
//	long nOldGapWidth;
//	long nOldOverlap;
	long* pOldPieSegOfs;
	short nOldPieSegCount;
	BOOL bOldShowMainTitle;
	String aOldMainTitle;
	BOOL bOldShowSubTitle;
	String aOldSubTitle;
	BOOL bOldShowXAxisTitle;
	String aOldXAxisTitle;
	BOOL bOldShowYAxisTitle;
	String aOldYAxisTitle;
	BOOL bOldShowZAxisTitle;
	String aOldZAxisTitle;
	BOOL bOldShowXAxis;
	BOOL bOldShowXGridMain;
	BOOL bOldShowXGridHelp;
	BOOL bOldShowXDescr;
	BOOL bOldShowYAxis;
	BOOL bOldShowYGridMain;
	BOOL bOldShowYGridHelp;
	BOOL bOldShowYDescr;
	BOOL bOldShowZAxis;
	BOOL bOldShowZGridMain;
	BOOL bOldShowZGridHelp;
	BOOL bOldShowZDescr;
	BOOL bOldSwitchData;
	SvxChartLegendPos eOldLegendPos;

	SvxChartStyle eNewStyle;
//	long nNewGapWidth;
//	long nNewOverlap;
	long* pNewPieSegOfs;
	long nNewPieSegCount;
	BOOL bNewShowMainTitle;
	String aNewMainTitle;
	BOOL bNewShowSubTitle;
	String aNewSubTitle;
	BOOL bNewShowXAxisTitle;
	String aNewXAxisTitle;
	BOOL bNewShowYAxisTitle;
	String aNewYAxisTitle;
	BOOL bNewShowZAxisTitle;
	String aNewZAxisTitle;
	BOOL bNewShowXAxis;
	BOOL bNewShowXGridMain;
	BOOL bNewShowXGridHelp;
	BOOL bNewShowXDescr;
	BOOL bNewShowYAxis;
	BOOL bNewShowYGridMain;
	BOOL bNewShowYGridHelp;
	BOOL bNewShowYDescr;
	BOOL bNewShowZAxis;
	BOOL bNewShowZGridMain;
	BOOL bNewShowZGridHelp;
	BOOL bNewShowZDescr;
	BOOL bNewSwitchData;
	BOOL bNewShowLegend;

public:
	TYPEINFO();

	SchUndoDiagramAutoPilot(ChartModel& rChDoc,
							SvxChartStyle eOldStl,/* long nOldGap,
							long nOldOver, */long* pOldSegOfs,
							short nOldSegCount,
							BOOL bOldShowMain, const String& rOldMain,
							BOOL bOldShowSub, const String& rOldSub,
							BOOL bOldShowXAxis, const String& rOldXAxis,
							BOOL bOldShowYAxis, const String& rOldYAxis,
							BOOL bOldShowZAxis, const String& rOldZAxis,
							BOOL bOldXAxis, BOOL bOldXGridMain,
							BOOL bOldXGridHelp, BOOL bOldXDescr,
							BOOL bOldYAxis, BOOL bOldYGridMain,
							BOOL bOldYGridHelp, BOOL bOldYDescr,
							BOOL bOldZAxis, BOOL bOldZGridMain,
							BOOL bOldZGridHelp, BOOL bOldZDescr,
							BOOL bOldSwitch, SvxChartLegendPos eOldLegPos,
							SvxChartStyle eNewStl,/* long nNewGap,
							long nNewOver, */long* pNewSegOfs,
							short nNewSegCount,
							BOOL bNewShowMain, const String& rNewMain,
							BOOL bNewShowSub, const String& rNewSub,
							BOOL bNewShowXAxis, const String& rNewXAxis,
							BOOL bNewShowYAxis, const String& rNewYAxis,
							BOOL bNewShowZAxis, const String& rNewZAxis,
							BOOL bNewXAxis, BOOL bNewXGridMain,
							BOOL bNewXGridHelp, BOOL bNewXDescr,
							BOOL bNewYAxis, BOOL bNewYGridMain,
							BOOL bNewYGridHelp, BOOL bNewYDescr,
							BOOL bNewZAxis, BOOL bNewZGridMain,
							BOOL bNewZGridHelp, BOOL bNewZDescr,
							BOOL bNewSwitch, BOOL bNewLegend) :
		SchUndoAction(rChDoc),
		eOldStyle(eOldStl),
//		nOldGapWidth(nOldGap),
//		nOldOverlap(nOldOver),
		pOldPieSegOfs(pOldSegOfs),
		nOldPieSegCount(nOldSegCount),
		bOldShowMainTitle(bOldShowMain),
		aOldMainTitle(rOldMain),
		bOldShowSubTitle(bOldShowSub),
		aOldSubTitle(rOldSub),
		bOldShowXAxisTitle(bOldShowXAxis),
		aOldXAxisTitle(rOldXAxis),
		bOldShowYAxisTitle(bOldShowYAxis),
		aOldYAxisTitle(rOldYAxis),
		bOldShowZAxisTitle(bOldShowZAxis),
		aOldZAxisTitle(rOldZAxis),
		bOldShowXAxis(bOldXAxis),
		bOldShowXGridMain(bOldXGridMain),
		bOldShowXGridHelp(bOldXGridHelp),
		bOldShowXDescr(bOldXDescr),
		bOldShowYAxis(bOldYAxis),
		bOldShowYGridMain(bOldYGridMain),
		bOldShowYGridHelp(bOldYGridHelp),
		bOldShowYDescr(bOldYDescr),
		bOldShowZAxis(bOldZAxis),
		bOldShowZGridMain(bOldZGridMain),
		bOldShowZGridHelp(bOldZGridHelp),
		bOldShowZDescr(bOldZDescr),
		bOldSwitchData(bOldSwitch),
		eOldLegendPos(eOldLegPos),
		eNewStyle(eNewStl),
//		nNewGapWidth(nNewGap),
//		nNewOverlap(nNewOver),
		pNewPieSegOfs(pNewSegOfs),
		nNewPieSegCount(nNewSegCount),
		bNewShowMainTitle(bNewShowMain),
		aNewMainTitle(rNewMain),
		bNewShowSubTitle(bNewShowSub),
		aNewSubTitle(rNewSub),
		bNewShowXAxisTitle(bNewShowXAxis),
		aNewXAxisTitle(rNewXAxis),
		bNewShowYAxisTitle(bNewShowYAxis),
		aNewYAxisTitle(rNewYAxis),
		bNewShowZAxisTitle(bNewShowZAxis),
		aNewZAxisTitle(rNewZAxis),
		bNewShowXAxis(bNewXAxis),
		bNewShowXGridMain(bNewXGridMain),
		bNewShowXGridHelp(bNewXGridHelp),
		bNewShowXDescr(bNewXDescr),
		bNewShowYAxis(bNewYAxis),
		bNewShowYGridMain(bNewYGridMain),
		bNewShowYGridHelp(bNewYGridHelp),
		bNewShowYDescr(bNewYDescr),
		bNewShowZAxis(bNewZAxis),
		bNewShowZGridMain(bNewZGridMain),
		bNewShowZGridHelp(bNewZGridHelp),
		bNewShowZDescr(bNewZDescr),
		bNewSwitchData(bNewSwitch),
		bNewShowLegend(bNewLegend) {}
	virtual ~SchUndoDiagramAutoPilot();

	virtual void Undo();
	virtual void Redo();

	virtual BOOL CanRepeat(SfxRepeatTarget& rView) const;
};

#endif	// _SCH_UNDGRAUT_HXX



More information about the Sourcenav mailing list