git: tools - Generate valid embedded newlines in strings

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Nov 30 12:09:07 PST 2019


commit f2219fd3f675d0f96d4fd693c7c3472b7d725ac2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Nov 30 12:06:29 2019 -0800

    tools - Generate valid embedded newlines in strings
    
    * Use the posix string concat instead of actually escaping
      a hard newline inside the string.
    
      This is not legal in C any more (it used to be, ages ago):
    
          "abc\
          def"
    
      Instead we have to use:
    
          "abc\n"
          "def"
    
    * Fixes the awk scripts to generate valid C strings.
    
    Reported-by: zrj

Summary of changes:
 sys/tools/fw_stub.awk | 71 ++++++++++++++++++++++++++-------------------------
 1 file changed, 36 insertions(+), 35 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f2219fd3f675d0f96d4fd693c7c3472b7d725ac2


-- 
DragonFly BSD source repository



More information about the Commits mailing list