On Sun, Jan 3, 2010 at 2:44 PM, Øyvind Harboe <[email protected]>wrote:

> It doesn't build under eCos, and I suspect that Windows will be a
> problem too, right?
>
> What dependencies does this feature add?
>
> src/helper/completion.c:112: error: storage size of 'x' isn't known
> src/helper/completion.c:123: warning: implicit declaration of function
> `lstat'
> src/helper/completion.c:126: warning: implicit declaration of function
> `S_ISDIR'
> src/helper/completion.c:112: warning: unused variable `x'
>
>
>
> --
> Øyvind Harboe
> US toll free 1-866-980-3434 / International +47 51 63 25 00
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 ARM11 XScale Cortex
> JTAG debugger and flash programmer
>

x is a dirent * that's pulled in from dirent.h  Windows may be a problem
mainly because the current implementation only pays attention to '/' and not
'\' nor 'C:\' kinds of things.  I would be surprised if dirent is missing
from Windows.

A possible solution may be another helper for managing files that allows
abstraction from the direction of the slash and handling the windows C:\
type paths.  There are also problems if there are spaces in the path.  I'm
not sure how to correct for that in TCL, though I assume everything will be
alright if I surround the path with quotes.  Course, that means the line
parsing needs to be changed too.  There's still a bit of work :).

-- 
// Dean Glazeski
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to