Parent Directory
|
Revision Log
|
Patch
| revision 3470 by tg, Thu Aug 9 13:44:30 2007 UTC | revision 3471 by tg, Thu Aug 9 16:28:02 2007 UTC | |
|---|---|---|
| # | Line 124 __END_DECLS | Line 124 __END_DECLS |
| 124 | (str_nadd_newptr); \ | (str_nadd_newptr); \ |
| 125 | }) | }) |
| 126 | ||
| 127 | #define xasprintf(fmt, ...) ({ \ | |
| 128 | char *xasprintf_ptr; \ | |
| 129 | \ | |
| 130 | if (asprintf(&xasprintf_ptr, (fmt), \ | |
| 131 | ##__VA_ARGS__) < 0) \ | |
| 132 | xasprintf_ptr = NULL; \ | |
| 133 | if (xasprintf_ptr == NULL) \ | |
| 134 | err(255, "cannot asprintf"); \ | |
| 135 | (xasprintf_ptr); \ | |
| 136 | }) | |
| 137 | ||
| 138 | #endif | #endif |
|
||||||||
| root@freewrt.org:443 | ViewVC Help |
| Powered by ViewVC 1.1.20 |