void-packages/srcpkgs/biew/patches/bool.patch
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: convert patches to -Np1
```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

27 lines
725 B
Diff

The two underscores in the front violate namespace and
break build at least on some systems, as __bool might be
a builtin type name.
--- a/plugins/bin/ne.c
+++ b/plugins/bin/ne.c
@@ -465,16 +465,16 @@ static void __FASTCALL__ ShowProcListNE( int modno )
{
BGLOBAL handle;
char ptitle[80],name[50];
- tBool __bool;
+ tBool b;
memArray* obj;
TWindow *w;
handle = ne_cache;
bioSeek(handle,0L,SEEK_SET);
w = PleaseWaitWnd();
if(!(obj = ma_Build(0,True))) return;
- __bool = __ReadProcListNE(handle,obj,modno);
+ b = __ReadProcListNE(handle,obj,modno);
CloseWnd(w);
- if(__bool)
+ if(b)
{
if(!obj->nItems) { NotifyBox(NOT_ENTRY,MOD_REFER); return; }
rd_ImpName(name,sizeof(name),modno+1,False);