From 1537b2aa61d55ee30bbf80af4c59a05229e4ce7c Mon Sep 17 00:00:00 2001 From: billiob Date: Mon, 21 Mar 2011 15:55:06 +0000 Subject: [PATCH] epp: fix line numbering git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@57936 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/epp/cpplib.c | 17 ++++++++++++++++- src/bin/epp/cppmain.c | 2 -- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/bin/epp/cpplib.c b/src/bin/epp/cpplib.c index f741e27..d5db450 100644 --- a/src/bin/epp/cpplib.c +++ b/src/bin/epp/cpplib.c @@ -4606,7 +4606,22 @@ cpp_get_token(cpp_reader * pfile) } else if (CPP_TRADITIONAL(pfile)) { - return CPP_COMMENT; + if (newlines > 0) + { + output_line_command(pfile, 0, same_file); + return CPP_VSPACE; + } + else + { + return CPP_COMMENT; + } + } + else if (newlines > 0) + { + output_line_command(pfile, 0, same_file); + CPP_RESERVE(pfile, 1); + CPP_PUTC_Q(pfile, ' '); + return CPP_VSPACE; } else { diff --git a/src/bin/epp/cppmain.c b/src/bin/epp/cppmain.c index 0cf2d94..543d418 100644 --- a/src/bin/epp/cppmain.c +++ b/src/bin/epp/cppmain.c @@ -90,8 +90,6 @@ main(int argc, char **argv) continue; case CPP_VSPACE: - if (!got_text) - goto next; break; default: -- 2.7.4