benkasminbullock/cfunctions

Line numbers are wrong in many cases

Closed this issue · 1 comments

#include "ok-arg.h"

int funkyfunc (int x)

in link-arg.c results in

#line 4 "link-arg.c"
int funkyfunc (int x );

in the output, obviously off by one.

The specific tested issue was resolved with this commit:

commit 1a02969
Author: Ben Bullock benkasminbullock@gmail.com
Date: Sat Apr 29 09:41:15 2017 +0900

Discard yylineno and calculate line numbers itself

Further issues with the line numbers can be entered as necessary.