void-packages/srcpkgs/pipenightdreams/patches/fix-no-inline.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```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

32 lines
1,005 B
Diff

--- a/src/pointer.h 2002-01-17 20:56:41.000000000 +0100
+++ b/src/pointer.h 2015-10-09 12:08:16.918082101 +0200
@@ -43,11 +43,11 @@
friend class Board;
- inline void setRow(int row);
- inline void setColumn(int column);
- inline void setRowColumn(int row, int column);
- inline void setMoved(bool flag);
- inline bool moved();
+ void setRow(int row);
+ void setColumn(int column);
+ void setRowColumn(int row, int column);
+ void setMoved(bool flag);
+ bool moved();
Str * image_name;
Image * ima;
--- a/src/player.h 2002-01-17 20:56:40.000000000 +0100
+++ b/src/player.h 2015-10-09 12:14:04.855107185 +0200
@@ -47,8 +47,8 @@
void setStartRowColumn(int row, int column);
void setBoard(Board * bd);
- inline void setRestrictionCoef(unsigned int coef);
- inline void setFixedCoef(unsigned int coef);
+ void setRestrictionCoef(unsigned int coef);
+ void setFixedCoef(unsigned int coef);
void incLives();
void decLives();