@N
@2, @1
" will
swap their order, while specifying "@1, sizeof(@1), stdin
" as
the arguments for gets will refactor them in a form suitable for
calling fgets (if the original argument refers to a fixed-size character array).@.N
stdout, @1, @.2
" will introduce an extra first parameter, named stdout.
(Presumably the function will also be renamed to fprintf.)@+N{...}
@-N{...}
@1, @2, @+3{@3}@-3{NULL}
" will add to any
call to the function missing a third argument, a third argument with a
value of NULL.
Note that the refactorings will take place on all instances where the
identifier is found to match the function or macro.
This includes declarations and definitions
(which might require some hand-editing if arguments are introduced),
and the appearance of the name in the replacement
text of a macro, when that macro is used in a way that makes the function
match the one being refactored.
The replacements will not be performed to function calls that are executed
through a function pointer.
Contents | « Previous Next (Call Graphs) » |