Re: Rebuilding make

2013-01-13 Thread Christopher Faylor
On Mon, Jan 14, 2013 at 10:12:12AM +0400, Fedin Pavel wrote: >On 10.01.2013 23:47, Reini Urban wrote: >> Great! Can you gist the patches somewhere please? > I tried to post patches from my home email address. But messages get >rejected as spam. WTF ??? Calm down and READ the message you receive

Re: stat() and tilde prefix (was bad bash tab completion)

2013-01-13 Thread Christopher Faylor
On Mon, Jan 14, 2013 at 04:21:25PM +1100, Shaddy Baddah wrote: >In investigating this, I believe the issue I am having is due to how >stat() handles tilde prefixed paths. On linux we see: > >linux$ $ python -c 'import os; print os.stat("~/..")' >Traceback (most recent call last): > File "", line

Re: Rebuilding make

2013-01-13 Thread Fedin Pavel
On 10.01.2013 23:47, Reini Urban wrote: Great! Can you gist the patches somewhere please? I tried to post patches from my home email address. But messages get rejected as spam. WTF ??? -- Kind regards Pavel Fedin Expert engineer, Samsung Moscow research center -- Problem reports: h

stat() and tilde prefix (was bad bash tab completion)

2013-01-13 Thread Shaddy Baddah
Hi, On 10 Aug 2012 17:14, Shaddy Baddah wrote: I've been having this problem with bash for about half a year now. I can't remember the specific upgrade that caused it, but that's around the time frame. So the issue is with tab completion, and looks something like this: snapshot 1: $ cd ~/../

Re: Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

2013-01-13 Thread YZFury
Whoops. I was making the pointer point to x instead of putting x's value in the memory that was just allocated. Now i understand that. Really sorry for a stupid syntax error question on my part. thanks for the quick reply though :). Like I said basically new to C. Sent from my Kindle Fire

Re: Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

2013-01-13 Thread Dan Kegel
On Sun, Jan 13, 2013 at 7:55 PM, YZFury wrote: > int *ptr = malloc(sizeof(*ptr)); > int x = 87; > ptr = &x; > printf("%d", *ptr); > free(ptr);//it goes wrong here As you probably know, you can't call free() on a pointer that didn't come from malloc(). ptr's first

[ANNOUNCEMENT] Updated: cppcheck-1.58-1

2013-01-13 Thread Chris Sutcliffe
Version 1.58-1 of cppcheck has been uploaded, following the upstream release. cppcheck is a tool for static C/C++ code analysis. It tries to detect bugs that your C/C++ compiler doesn't see. The goal is no false positives. cppcheck is versatile. You can check non-standard code that includes var

Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

2013-01-13 Thread YZFury
I am using eclipse cdt on Windows 8 and the latest Cygwin gcc release. I have been barely using any C for awhile, so really it is like I am just starting. I am trying to do something simple: int *ptr = malloc(sizeof(*ptr)); int x = 87; ptr = &x; printf("%d", *ptr);

Ctrl-C not working in snapshot

2013-01-13 Thread Thomas Wolff
When I tried the recent snapshot (2013-01-11) it turned out that Ctrl-C does not work anymore to interrupt a JVM program. There had been a similar discussion last year (http://cygwin.com/ml/cygwin/2012-07/msg00185.html) but it does not seem to be the same problem; in contrast to previous symptom

Re: Another issue with CLANG

2013-01-13 Thread Jon TURNEY
On 13/01/2013 14:44, Angelo Graziosi wrote: > Il 13/01/2013 15.31, Jon TURNEY ha scritto: >> On 11/01/2013 12:54, Angelo Graziosi wrote: >>> An application which need to be built with clang++, fails to build when it >>> includes glx.h and indirectly windows.h headers like in the test case shown >>>

Re: Another issue with CLANG

2013-01-13 Thread Angelo Graziosi
Il 13/01/2013 15.31, Jon TURNEY ha scritto: On 11/01/2013 12:54, Angelo Graziosi wrote: An application which need to be built with clang++, fails to build when it includes glx.h and indirectly windows.h headers like in the test case shown below. In short, X11/Xlib.h define Status as a macro (an

Re: Another issue with CLANG

2013-01-13 Thread Jon TURNEY
On 11/01/2013 12:54, Angelo Graziosi wrote: > An application which need to be built with clang++, fails to build when it > includes glx.h and indirectly windows.h headers like in the test case shown > below. > > In short, X11/Xlib.h define Status as a macro (an alias for int) instead > rpcdce.h us

Re: select() not interrupted by signals

2013-01-13 Thread Thomas Wolff
Am 12.01.2013 20:14, schrieb Christopher Faylor: On Sat, Jan 12, 2013 at 06:41:27PM +0100, Thomas Wolff wrote: Am 11.01.2013 16:38, schrieb Christopher Faylor: On Fri, Jan 11, 2013 at 09:41:37AM +0100, Thomas Wolff wrote: ... ... select() is not restartable like read() or write(). That behav

Re: hiding cursor on text terminals

2013-01-13 Thread Thomas Wolff
Am 07.01.2013 19:24, schrieb Damian Rodriguez Sanchez: Hello list, I have compiled a Linux ncurses gcc application on Cygwin. Everything works fine except for curs_set(0) calls which do not hide the cursor on text mode terminals (they work on X though). Does anybody know of a way to achieve this