Mercurial > cospy
changeset 5:a32f4bd19eda
Show line number and source file after function name
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 08 Sep 2010 17:54:33 +0800 |
parents | 8855f7d934ae |
children | 165781cb4cdd |
files | src/cospy.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cospy.c Wed Sep 08 17:46:29 2010 +0800 +++ b/src/cospy.c Wed Sep 08 17:54:33 2010 +0800 @@ -16,7 +16,9 @@ decl = cfun->decl; printf("decl %x\n", decl); - printf(" %s\n", current_function_name()); + printf(" %s:%d:%s\n", current_function_name(), + DECL_SOURCE_LINE(decl), + DECL_SOURCE_FILE(decl)); } int