xref: /OK3568_Linux_fs/external/xserver/fix-region (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyunsed -i \
3*4882a593Smuzhiyun    -e 's/REGION_NIL\b/RegionNil/g' \
4*4882a593Smuzhiyun    -e 's/REGION_NAR\b/RegionNar/g' \
5*4882a593Smuzhiyun    -e 's/REGION_NUM_RECTS\b/RegionNumRects/g' \
6*4882a593Smuzhiyun    -e 's/REGION_SIZE\b/RegionSize/g' \
7*4882a593Smuzhiyun    -e 's/REGION_RECTS\b/RegionRects/g' \
8*4882a593Smuzhiyun    -e 's/REGION_BOXPTR\b/RegionBoxptr/g' \
9*4882a593Smuzhiyun    -e 's/REGION_BOX\b/RegionBox/g' \
10*4882a593Smuzhiyun    -e 's/REGION_TOP\b/RegionTop/g' \
11*4882a593Smuzhiyun    -e 's/REGION_END\b/RegionEnd/g' \
12*4882a593Smuzhiyun    -e 's/REGION_SZOF\b/RegionSizeof/g' \
13*4882a593Smuzhiyun    -e 's/REGION_CREATE *([^,]*, */RegionCreate(/g' \
14*4882a593Smuzhiyun    -e 's/REGION_COPY *([^,]*, */RegionCopy(/g' \
15*4882a593Smuzhiyun    -e 's/REGION_DESTROY *([^,]*, */RegionDestroy(/g' \
16*4882a593Smuzhiyun    -e 's/REGION_INTERSECT *([^,]*, */RegionIntersect(/g' \
17*4882a593Smuzhiyun    -e 's/REGION_UNION *([^,]*, */RegionUnion(/g' \
18*4882a593Smuzhiyun    -e 's/REGION_SUBTRACT *([^,]*, */RegionSubtract(/g' \
19*4882a593Smuzhiyun    -e 's/REGION_INVERSE *([^,]*, */RegionInverse(/g' \
20*4882a593Smuzhiyun    -e 's/REGION_TRANSLATE *([^,]*, */RegionTranslate(/g' \
21*4882a593Smuzhiyun    -e 's/RECT_IN_REGION *([^,]*, */RegionContainsRect(/g' \
22*4882a593Smuzhiyun    -e 's/POINT_IN_REGION *([^,]*, */RegionContainsPoint(/g' \
23*4882a593Smuzhiyun    -e 's/REGION_EQUAL *([^,]*, */RegionEqual(/g' \
24*4882a593Smuzhiyun    -e 's/REGION_APPEND *([^,]*, */RegionAppend(/g' \
25*4882a593Smuzhiyun    -e 's/REGION_VALIDATE *([^,]*, */RegionValidate(/g' \
26*4882a593Smuzhiyun    -e 's/BITMAP_TO_REGION\b/BitmapToRegion/g' \
27*4882a593Smuzhiyun    -e 's/RECTS_TO_REGION *([^,]*, */RegionFromRects(/g' \
28*4882a593Smuzhiyun    -e 's/REGION_BREAK *([^,]*, */RegionBreak(/g' \
29*4882a593Smuzhiyun    -e 's/REGION_INIT *([^,]*, */RegionInit(/g' \
30*4882a593Smuzhiyun    -e 's/REGION_UNINIT *([^,]*, */RegionUninit(/g' \
31*4882a593Smuzhiyun    -e 's/REGION_RESET *([^,]*, */RegionReset(/g' \
32*4882a593Smuzhiyun    -e 's/REGION_NOTEMPTY *([^,]*, */RegionNotEmpty(/g' \
33*4882a593Smuzhiyun    -e 's/REGION_BROKEN *([^,]*, */RegionBroken(/g' \
34*4882a593Smuzhiyun    -e 's/REGION_EMPTY *([^,]*, */RegionEmpty(/g' \
35*4882a593Smuzhiyun    -e 's/REGION_EXTENTS *([^,]*, */RegionExtents(/g' \
36*4882a593Smuzhiyun    -e 's/REGION_NULL *([^,]*, */RegionNull(/g' \
37*4882a593Smuzhiyun    -e 's/REGION_NULL$/RegionNull/g' \
38*4882a593Smuzhiyun    "$@"
39