diff options
author | David Ostrovsky <David.Ostrovsky@gmx.de> | 2012-05-01 00:04:38 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-01 07:29:06 +0200 |
commit | 1bec43481eb6cbe58b22b8c2ce3688e858f5f92f (patch) | |
tree | c1414b8d47e34027de20c05f3f98ebd5099609b0 /idlc | |
parent | b9d0e597a7bc328ca99a1bf338a609cac23a4284 (diff) |
build: cleaning up previously converted idlc module
Change-Id: Ic90495f677dc42c0430492548deaa9f9b10e4d44
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/CustomTarget_scanner.mk | 39 | ||||
-rw-r--r-- | idlc/Executable_idlc.mk | 5 | ||||
-rw-r--r-- | idlc/Module_idlc.mk | 1 | ||||
-rw-r--r-- | idlc/source/scanner.l (renamed from idlc/source/scanner.ll) | 2 | ||||
-rw-r--r-- | idlc/source/wrap_parser.cxx | 32 | ||||
-rw-r--r-- | idlc/source/wrap_scanner.cxx | 38 |
6 files changed, 4 insertions, 113 deletions
diff --git a/idlc/CustomTarget_scanner.mk b/idlc/CustomTarget_scanner.mk deleted file mode 100644 index e7e3c2f6d668..000000000000 --- a/idlc/CustomTarget_scanner.mk +++ /dev/null @@ -1,39 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# Version: MPL 1.1 / GPLv3+ / LGPLv3+ -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License or as specified alternatively below. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# Major Contributor(s): -# Copyright (C) 2012 David Ostrovsky <d.ostrovsky@gmx.de> (initial developer) -# -# All Rights Reserved. -# -# For minor contributions see the git repository. -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 3 or later (the "GPLv3+"), or -# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), -# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable -# instead of those above. - -$(eval $(call gb_CustomTarget_CustomTarget,idlc/scanner)) - -ICSC := $(call gb_CustomTarget_get_workdir,idlc/scanner) - -$(call gb_CustomTarget_get_target,idlc/scanner) : $(ICSC)/scanner.cxx - -$(ICSC)/scanner.cxx : $(ICSC)/stripped_scanner.ll - flex -o$@ $< - -$(ICSC)/stripped_scanner.ll : $(SRCDIR)/idlc/source/scanner.ll | $(ICSC)/.dir - tr -d "\015" < $< > $@ - -# vim:set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/idlc/Executable_idlc.mk b/idlc/Executable_idlc.mk index 4319857d8cf7..32ecda6777ab 100644 --- a/idlc/Executable_idlc.mk +++ b/idlc/Executable_idlc.mk @@ -42,10 +42,11 @@ $(eval $(call gb_Executable_add_grammars,idlc,\ idlc/source/parser \ )) -$(eval $(call gb_Executable_use_custom_headers,idlc,idlc/scanner)) +$(eval $(call gb_Executable_add_scanners,idlc,\ + idlc/source/scanner \ +)) $(eval $(call gb_Executable_add_exception_objects,idlc,\ - idlc/source/wrap_scanner \ idlc/source/idlcmain \ idlc/source/idlc \ idlc/source/idlccompile \ diff --git a/idlc/Module_idlc.mk b/idlc/Module_idlc.mk index 3c963105f138..e1db3db1df66 100644 --- a/idlc/Module_idlc.mk +++ b/idlc/Module_idlc.mk @@ -27,7 +27,6 @@ $(eval $(call gb_Module_Module,idlc)) $(eval $(call gb_Module_add_targets,idlc,\ - CustomTarget_scanner \ Executable_idlc \ Executable_idlcpp \ )) diff --git a/idlc/source/scanner.ll b/idlc/source/scanner.l index 62ce2884f393..8d95322fc686 100644 --- a/idlc/source/scanner.ll +++ b/idlc/source/scanner.l @@ -257,7 +257,7 @@ static void parseLineAndFile(sal_Char* pBuf) // Suppress any warnings from generated code: #if defined __GNUC__ -#pragma GCC system_header +#pragma GCC diagnostic ignored "-Wunused-function" #elif defined __SUNPRO_CC #pragma disable_warn #elif defined _MSC_VER diff --git a/idlc/source/wrap_parser.cxx b/idlc/source/wrap_parser.cxx deleted file mode 100644 index 053713a21d90..000000000000 --- a/idlc/source/wrap_parser.cxx +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - - -#include "parser.cxx" - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/idlc/source/wrap_scanner.cxx b/idlc/source/wrap_scanner.cxx deleted file mode 100644 index 94a068add789..000000000000 --- a/idlc/source/wrap_scanner.cxx +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifdef __clang__ -#pragma clang diagnostic ignored "-Wsign-compare" -#endif - -#include "scanner.cxx" - -void (*avoid_unused_yyunput_in_scanner_cxx)(int, char*) = yyunput; -int (*avoid_unused_yyinput_in_scanner_cxx)() = yyinput; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |