Re: string to macro
- From: Nicola Mingotti <foo@xxxxxxx>
- Date: Tue, 22 Aug 2006 19:09:45 +0200
(defmacro call-mac2 (&body body)
(let ((str (caar body))
(cmd (cdar body)))
`(,(read-from-string str) ,@cmd)))
(call-mac2
("with-open-file" (s "tmp.txt"
:direction :output :if-exists :supersede)
(format s "Here are a couple~%of test data lines~%")))
.
Relevant Pages
- [PATCH 5/5 v4] vsprintf: unify the format decoding layer for its 3 users
... Why not make the variable "const char *" and drop the cast? ... Subject: vsprintf: unify the format decoding layer for its 3 users ... if (buf < end) ... char *str, *end, c; ... (Linux-Kernel) - [PATCH 5/5 v3] vsprintf: unify the format decoding layer for its 3 users
... a call to ftrace_printk will format the whole string and ... char tmp; ... if (buf < end) ... char *str, *end, c; ... (Linux-Kernel) - [PATCH 5/5 v3] vsprintf: unify the format decoding layer for its 3 users
... a call to ftrace_printk will format the whole string and ... char tmp; ... if (buf < end) ... char *str, *end, c; ... (Linux-Kernel) - [PATCH 5/5 v3] vsprintf: unify the format decoding layer for its 3 users
... a call to ftrace_printk will format the whole string and ... drop unapropriate const qualifier loss while casting fmt to a char * ... if (buf < end) ... char *str, *end, c; ... (Linux-Kernel) - Re: [PATCH][RFC] vsprintf: unify the format decoding layer for its 3 users
... Ok, here is a try, I've mostly unified the format decoding bits. ... the binary parameters into the ring buffer, ... char *str, *end, c; ... (Linux-Kernel) |
|