Mercurial > dropbear
view ifndef_wrapper.sh @ 1403:ae6887d9ab46
rename hidden variable
in function tcp_acceptor()
struct sockaddr_storage addr;
char* addr = NULL;
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Nov 2016 15:07:42 +0100 |
parents | 750ec4ec4cbe |
children | 198e2ee0f4b1 |
line wrap: on
line source
#!/bin/sh # Wrap all "#define X Y" with a #ifndef X...#endif" sed -E 's/^(#define ([^ ]+) .*)/#ifndef \2\ \1\ #endif/'