Mail Archives: djgpp-workers/2001/03/19/15:05:50
> From: pavenis AT lanet DOT lv
> Date: Mon, 19 Mar 2001 16:27:47 +0200
>
> --- gcov.c~1 Mon Mar 19 15:55:38 2001
> +++ gcov.c Mon Mar 19 16:18:14 2001
> @@ -1284,6 +1284,23 @@
> the same basename, e.g. tmp.c and tmp.h. */
> strcat (gcov_file_name, ".gcov");
>
> +#ifdef __DJGPP__
> + if (!_use_lfn(gcov_file_name))
> + {
> + char *s1, *s2=NULL;
> + for (s1=gcov_file_name; *s1 && *s1!='.'; s1++);
> + if (*s1) for (s2=s1+1; *s2 && *s2!='.'; s2++);
> + if (s2 && *s2=='.')
> + {
> + int l;
> + s1++; l=s2-s1; if (l>2) l=2;
> + s1 = s1+l; s2++;
> + while (*s2) { *s1++=*s2++; }
> + *s1=0;
> + }
> + }
> +#endif
> +
Is gcov_file_name an absolute file name or just the last portion,
without leading directories? If the former, you will find the wrong
dot, if some of the leading directories have dots in their names.
- Raw text -