Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@sicp @ThatWouldBeTelling Oh, right, the ANSI-style declarations. Well, it is easier to type "c" and retype the line (with the changes) if it's short, but if I'm using ed and I want to do something like that, I'll usually just type "s/int/long/".
This might or might not be of interest but probably is relevant: the Plan 9 code uses the newer declarations, but they put a newline before the function name:
int
main(int argc, char **argv)
This is actually to make it easy to grep, including with the editor. In ed, sam, vi, whichever, you do `/^main` to jump to the definition. acme even lets you do this by right-clicking, so you see things like "see also foo.c:/^bar" in comments.