Ignore:
Timestamp:
Apr 1, 2020, 9:05:32 AM (5 years ago)
Author:
bird
Message:

kmk/incdep.c: Unescaping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/testcase-includedep-esc-sub.kmk

    r3316 r3318  
    3131                /phoney/header-file-with-two-spaces\ \ .h
    3232
     33
     34#
     35# From example-spaces.kmk
     36#
     37/phoney-dep-ignore:
     38
     39phoney\ space\ \ 1: /phoney-dep\ space\ \ 1
     40
     41phoney\ colon\:\ 2: /phoney-dep\ colon\:\ 2 \
     42
     43phoney\ hash\#\ 3 : /phoney-dep\ hash\#\ 3
     44
     45phoney\ dollar$$\ 4 : /phoney-dep\ dollar$$\ 4 \
     46
     47phoney\ slash-space\\\ 5: /phoney-dep\ slash-space\\\ 5
     48
     49phoney\ slash-hash\\\#\ 6: /phoney-dep\ slash-hash\\\#\ 6 \
     50
     51phoney\ slash-slash-hash\\\\\#\ 7:  /phoney-dep\ slash-slash-hash\\\\\#\ 7
     52
     53phoney\ equal\=\ 8: /phoney-dep\ equal\=\ 8
     54
     55phoney\ semI\;\ 9: /phoney-dep\ semi\;\ 9
     56
     57# Note! The percent is only escaped on the target side!
     58phoney\ percent\%\ 10:  /phoney-dep\ percent%\ 10 \
     59
     60# Note! The pipe is only escaped on the dependency list side!
     61phoney\ pipe|\ 11: /phoney-dep\ pipe\|\ 11   
     62
     63phoney\ plus+\ 12: \
     64        /phoney-dep\ plus+\ 12
     65
     66phoney\ trailing-slash13\\: /phoney-dep\ trailing-slash13\ \
     67
     68phoney\ trailing-slash13b\\: /phoney-dep\ trailing-slash13b\ \
     69        \
     70        \
     71        \
     72
     73phoney\ trailing-slash14\\: \
     74        /phoney-dep\ trailing-slash14\\ \
     75        /phoney-dep-ignore
     76
     77phoney\ 15-trailing-space\ : /phoney-dep\ 15-trailing-space\  /phoney-dep-ignore
     78
     79# Note! No stripping spaces! Trailing space here that gets stripped instead of escaped.
     80phoney\ 16-no-trailing-space\\: /phoney-dep\ 16-no-trailing-space\
     81
     82phoney\ 17-3x-escaped-newlines\ becomes-single-space: /phoney-dep\ 17-3x-escaped-newlines\ \
     83\
     84\
     85        becomes-single-space
     86
     87# Note! Must have a trailing space or comment.
     88phoney\ 18-3x-escaped-trailing-spaces-no-newline\ \ \\: \
     89        /phoney-dep\ 18-3x-escaped-trailing-spaces-no-newline\ \ \
     90
     91phoney\ 19-target-trailing-space-with-padding\   : /phoney-dep\ 19-target-trailing-space-with-padding\  /phoney-dep-ignore
     92
     93phoney\ 20-target-trailing-space-with-newline-padding\   \
     94\
     95: /phoney-dep\ 20-target-trailing-space-with-newline-padding\  /phoney-dep-ignore
     96
     97phoney\ 21-target-trailing-space-with-newline-padding-and-tail\ \
     98\
     99 \
     100                \
     101my-tail-21: /phoney-dep\ 21-target-trailing-space-with-newline-padding-and-tail\ \
     102\
     103\
     104my-tail-21
     105
     106
     107all-trailing-slashes1: /phoney-dep\ trailing-slash13\ \
     108
     109all-trailing-slashes2: /phoney-dep\ trailing-slash13b\ \
     110        \
     111        \
     112        \
     113
Note: See TracChangeset for help on using the changeset viewer.