File tree Expand file tree Collapse file tree 5 files changed +28
-0
lines changed Expand file tree Collapse file tree 5 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ (abcx)
2+ (abc)
3+ (abc )
4+ (abc)
5+ (abcx)
6+ (abcx)
Original file line number Diff line number Diff line change 11aindex.ps...0
22amember.ps...0
33buildstring.ps...0
4+ chop.ps...0
45dedup.ps...0
56dedup_spaces.ps...0
67ndup.ps...0
Original file line number Diff line number Diff line change @@ -119,6 +119,27 @@ const char ctagsCommonPrelude []=
119119" exch copy pop\n"
120120"} __bddef\n"
121121"\n"
122+ "(string _CHOP string)\n"
123+ "/_chop {\n"
124+ " mark exch {} forall pop _buildstring\n"
125+ "} __bddef\n"
126+ "\n"
127+ "(string _CHOP_SPACE string)\n"
128+ "/_chop_space {\n"
129+ " dup length dup 0 gt {\n"
130+ " % string length\n"
131+ " 1 sub\n"
132+ " % string `length - 1`\n"
133+ " 1 index exch\n"
134+ " % string string `length - 1`\n"
135+ " get (\\n\\t\\r\\f\\v ) exch _amember {\n"
136+ " _chop\n"
137+ " } if\n"
138+ " } {\n"
139+ " pop % pop the length\n"
140+ " } ifelse\n"
141+ "} __bddef\n"
142+ "\n"
122143"% /x mark 40 (a) 32 32 10 (b) 10 10 9 9 (xyz) 9 9 41 _buildstring def\n"
123144"% x _normalize_spaces! x pstack\n"
124145"\n"
You can’t perform that action at this time.
0 commit comments