From 4055d9a435597a8a8fc80556018a5cc41ce4407a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 14 Jul 2012 11:47:26 +0900 Subject: [PATCH] Add support for \s escapes to qfcc. I guess \s is an fteqcc extention for toggling bold characters. At the request of freewill. --- tools/qfcc/doc/man/qfcc.1 | 2 ++ tools/qfcc/source/strpool.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tools/qfcc/doc/man/qfcc.1 b/tools/qfcc/doc/man/qfcc.1 index 0bdfcfb15..3f009f4ac 100644 --- a/tools/qfcc/doc/man/qfcc.1 +++ b/tools/qfcc/doc/man/qfcc.1 @@ -493,6 +493,8 @@ Formfeed character (not in quake engines). Equivalent to \(rsx0c. .B \(rsr Carriage return. Equivalent to \(rsx0d. .TP +.B \(rss +Toggle "bold" characters (add 0x80). .B \(rst Tab character. Equivalent to \(rsx09. .TP diff --git a/tools/qfcc/source/strpool.c b/tools/qfcc/source/strpool.c index f7012cb63..39514f6cc 100644 --- a/tools/qfcc/source/strpool.c +++ b/tools/qfcc/source/strpool.c @@ -240,6 +240,9 @@ make_string (char *token, char **end) case 'r': c = '\r'; break; + case 's': + mask ^= 0x80; + break; case 't': c = '\t'; break;