VirtualBox

source: vbox/trunk/src/VBox/Main/webservice/soap-header-to-inline-source-file.sed@ 92154

Last change on this file since 92154 was 83223, checked in by vboxsync, 4 years ago

webservice: Strip inline functions from soapH.h and put them in separate C++ files to speed up compilation and avoid gcc 9.2+ internal compiler error. This avoid having to compile soapC.cpp in one go with gcc 9.2+ and waste ages waiting for that to complete (yeah, even with -O0 that takes forever).

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 835 bytes
Line 
1# $Id: soap-header-to-inline-source-file.sed 83223 2020-03-06 14:41:03Z vboxsync $
2## @file
3# WebService - SED script for extracting inline functions from soapH.h
4# for putting them in a C++ source file.
5#
6
7#
8# Copyright (C) 2020 Oracle Corporation
9#
10# This file is part of VirtualBox Open Source Edition (OSE), as
11# available from http://www.virtualbox.org. This file is free software;
12# you can redistribute it and/or modify it under the terms of the GNU
13# General Public License (GPL) as published by the Free Software
14# Foundation, in version 2 as it comes in the "COPYING" file of the
15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17#
18
19/^inline /,/^}/ {
20 /^inline /,/^{/ {
21 s/^inline/\n\/\*noinline\*\//
22 s/ *= *\([^,)]*\)\([),]\)/ \/\*=\1\*\/\2/
23 }
24 p
25}
261 c #include "soapH.h"
27d
28
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use