VirtualBox

source: vbox/trunk/src/VBox/Runtime/common/err/errmsgxpcom.sed@ 8245

Last change on this file since 8245 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: errmsgxpcom.sed 8155 2008-04-18 15:16:47Z vboxsync $
2## @file
3# innotek Portable Runtime - SED script for converting XPCOM errors
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27# Clara, CA 95054 USA or visit http://www.sun.com if you need
28# additional information or have any questions.
29#
30
31# no comments
32/\*/b skip
33# we want NS_ERROR_* defines, but not all!
34/\#define NS_ERROR_SEVERITY_/b skip
35/\#define NS_ERROR_BASE/b skip
36/\#define NS_ERROR_MODULE_/b skip
37/\#define NS_ERROR_GET_/b skip
38/\#define NS_ERROR_GENERATE/b skip
39/\#define NS_ERROR_/b nserror
40d
41b end
42
43:skip
44# Everything else is deleted!
45d
46b end
47
48
49#
50# A good error definition
51#
52:nserror
53{
54 # remove DOS <CR>.
55 s/\r//g
56 # remove '#define'
57 s/\#define //
58 # output C array entry
59 s/\([a-zA-Z0-9_]*\)[\t ]*\(.*\)[\t ]*$/{ "\1", \1 }, /
60}
61b end
62
63# next expression
64:end
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette