Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.661 kb
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
1 #! /usr/bin/env sh
2
3 # Feed fault.h via stdin and generate a C++ routine on stdout
4
5 cat <<EOF
6
7 //////////////////////////////////////////////////////////////////////
8 // DO NOT EDIT
9 // This code is auto-generated by generate_FaultEnglish.sh
10 // DO NOT EDIT
11 //////////////////////////////////////////////////////////////////////
12
13 static const char*
14 faultCodeToEnglish(pluton::faultCode fc)
15 {
16 switch(fc) {
17 EOF
18
19 grep '\/\/ E: ' | while read fName fEqual fCode fSlashSlash fEColon fMessage
20 do
21 printf ' case pluton::%-30s: return "%s:%s\";\n' $fName $fName "$fMessage"
22 done
23
24 cat <<EOF
25 default: break;
26 }
27 return "Unknown faultCode?";
28 }
29 EOF
Something went wrong with that request. Please try again.