emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C file recoginzed as image file


From: David Kastrup
Subject: Re: C file recoginzed as image file
Date: Mon, 08 Jan 2007 21:39:09 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> On 1/8/07, Stefan Monnier <address@hidden> wrote:
>
>> After all, an inconsistently named file is generally
>> a sign that there's something wrong, so it's good to prompt the user
>> about it.
>
> That's a bit of second-guessing. We are not in the business of knowing
> why someone uses non-default file names. And let's not forget that a
> file with a .c extension containing a GIF image is absolutely,
> non-ambiguously a GIF, whatever the .c may seem to imply.

GIF89a(char c)
{
  return c>'0';
}

#include <stdio.h>

main(int ac, char **av)
{
  while (++av,--ac > 0)
    putchar("yn" [GIF89a(**av)]);
  putchar('\n');
  return;
}

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]