blob: 2da2290d4bc46a6df49b3218f43fee922a74adb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#$Id: mkerrtags.sed $
## @file
# pure sed version of mkerrtags.sh.
#
1b heading
$b footer
s/^[[:space:]][[:space:]]*\(D_[A-Z0-9_]*\)\(,*\).*$/ "\1"\2/p
b end
:heading
i\/* Autogenerated source file - DO NOT EDIT! */
i\/*
i\ * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
i\ * Use is subject to license terms.
i\ */
i\#include <dt_errtags.h>
i\static const char * const _dt_errtags[] = {
b end
:footer
i\};
i\const char *dt_errtag(dt_errtag_t tag)
i\{
i\ if ((unsigned)tag >= sizeof(_dt_errtags)/sizeof(_dt_errtags[0]))
i\ return _dt_errtags[0];
i\ return _dt_errtags[tag];
i\}
b end
:end
|