summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/c/deref.c
blob: 100464fb7a258caae035c2eaafe716b8df433d94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void foo(int *pA, int *pB)
{
   *pB = some.arr[*pA];

foo(sizeof bar / sizeof * bar, baz);

}

#define MEM_READ_BYTE(phwi, addr, data)					  \
 	* data = * ((PUCHAR)((phwi)->m_pVirtualMemory + addr))

#define MEM_WRITE_BYTE(phwi, addr, data)				  \
	* ((PUCHAR)((phwi)->m_pVirtualMemory + addr)) = (UCHAR)(data)