Re: PC sources lacks if_sniff.c

2006-06-19 Thread Mathias Michaelis
Bram

 The source archive
 
 ftp://ftp.vim.org/pub/vim/pc/vim70src.zip
 
 contains the file if_sniff.h but not the corresponding source file
 if_sniff.c. Has this a specific reason or has if_sniff.c simply been
 forgotten?
 
 The Sniff interface is something extra, you need to get it from the
 extra archive.  That's how it is.
 
Hmmm ...

1. The extra archive mainly consists on platform specific files and
on sub projects like tee, xxd or testdir.

Some of the sub projects are included in the pc archive (xxd,
testdir), others are not (tee). Well, for my compilations, I use tee
too, but get it from the gnuwin32 project.

Now, sniff.c is whether platform specific nor a sub project, but is
an optional component of Vim, probably similar to fold.c. I have no
big knowledge about Vim and its source, but it's not easy to me to
see why sniff.c logically belongs into the extra archive, while
sniff.h is in the source archive.

2. But there is a practical reason too why this item keeps me busy:

If I set SNIFF=yes within Make_mvc.mak, I get an error message from
the linker that a certain module could not be found. For me as a
silly Windows user it needs some time to find out

  - that this is due to a missing file
  - that this file can be found in the extra archive for unix
  - that this is a feature and not a bug, so I must not give up

Besides of this, I can't refrain to summarise my experiences like
that: With the unique exception of patch.exe from gnuwin32 where I
needed to apply the switch --binary, all other build tools (e.g.
from Microsoft VS2005) didn't have any problems with unix style line
ends (LF) instead of dos style line ends (CRLF). So it is almost
easier to work with the unix .tar.gz archives than with the .zip
archives that are kindly supplied for Windows and Dos users.

Best regards

Mathias


Re: PC sources lacks if_sniff.c

2006-06-19 Thread A.J.Mechelynck

Mathias Michaelis wrote:

Bram


The source archive

ftp://ftp.vim.org/pub/vim/pc/vim70src.zip

contains the file if_sniff.h but not the corresponding source file
if_sniff.c. Has this a specific reason or has if_sniff.c simply been
forgotten?


The Sniff interface is something extra, you need to get it from the
extra archive.  That's how it is.


Hmmm ...

1. The extra archive mainly consists on platform specific files and
on sub projects like tee, xxd or testdir.

Some of the sub projects are included in the pc archive (xxd,
testdir), others are not (tee). Well, for my compilations, I use tee
too, but get it from the gnuwin32 project.

Now, sniff.c is whether platform specific nor a sub project, but is
an optional component of Vim, probably similar to fold.c. I have no
big knowledge about Vim and its source, but it's not easy to me to
see why sniff.c logically belongs into the extra archive, while
sniff.h is in the source archive.

2. But there is a practical reason too why this item keeps me busy:

If I set SNIFF=yes within Make_mvc.mak, I get an error message from
the linker that a certain module could not be found. For me as a
silly Windows user it needs some time to find out

  - that this is due to a missing file
  - that this file can be found in the extra archive for unix
  - that this is a feature and not a bug, so I must not give up

Besides of this, I can't refrain to summarise my experiences like
that: With the unique exception of patch.exe from gnuwin32 where I
needed to apply the switch --binary, all other build tools (e.g.
from Microsoft VS2005) didn't have any problems with unix style line
ends (LF) instead of dos style line ends (CRLF). So it is almost
easier to work with the unix .tar.gz archives than with the .zip
archives that are kindly supplied for Windows and Dos users.

Best regards

Mathias




To avoid module not found errors on compile, link or patch I always 
download the full sources:


- bz2 archive from the unix/ directory, even when compiling for Windows
- extra archive from the extra/ directory
- lang archive from the extra/ directory
	- all patches, regardless of whether or not they apply to the system 
I'm on.


Best regards,
Tony.


Re: PC sources lacks if_sniff.c

2006-06-19 Thread Bram Moolenaar

Mathias Michaelis wrote:

  The source archive
  
  ftp://ftp.vim.org/pub/vim/pc/vim70src.zip
  
  contains the file if_sniff.h but not the corresponding source file
  if_sniff.c. Has this a specific reason or has if_sniff.c simply been
  forgotten?
  
  The Sniff interface is something extra, you need to get it from the
  extra archive.  That's how it is.
  
 Hmmm ...
 
 1. The extra archive mainly consists on platform specific files and
 on sub projects like tee, xxd or testdir.
 
 Some of the sub projects are included in the pc archive (xxd,
 testdir), others are not (tee). Well, for my compilations, I use tee
 too, but get it from the gnuwin32 project.
 
 Now, sniff.c is whether platform specific nor a sub project, but is
 an optional component of Vim, probably similar to fold.c. I have no
 big knowledge about Vim and its source, but it's not easy to me to
 see why sniff.c logically belongs into the extra archive, while
 sniff.h is in the source archive.

The issue is that the big version that I compile does not include the
SNIFF interface.  That's why the SNIFF sources are in the extra archive.

There is no stict rule for what goes in the extra archive, other than
what I think not many people will use.

The only other clean solution is to drop the whole extra archive and
include all files both in the Unix and the PC source archive.

-- 
Trees moving back and forth is what makes the wind blow.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///