summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00141-deref.c
blob: a7ad3f5eefd0d7a7566561f5f891a2fa70e8bc71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)