Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Modify makeheaders so that it ignores the ":" character if it is the second character in a command-line argument, thus allowing drive-specifiers on windows filenames. This is related to, but is not a fix for ticket [fa403b6a123659d885e3].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bb7a5a1c4e7eb4d143791fdc5c0a1febd46246d0
User & Date: drh 2010-12-23 15:04:18
Context
2010-12-23
17:14
Rework the makemake.tcl makefile generator script so that it generates makefiles for all windows compilers all in one go. Add an output for mingw. Ticket [fa403b6a123659d885e3] check-in: 723f8c20 user: drh tags: trunk
15:04
Modify makeheaders so that it ignores the ":" character if it is the second character in a command-line argument, thus allowing drive-specifiers on windows filenames. This is related to, but is not a fix for ticket [fa403b6a123659d885e3]. check-in: bb7a5a1c user: drh tags: trunk
14:17
Another favorable quote about fossil for the collection. check-in: b43740b1 user: drh tags: trunk
Changes

Changes to src/makeheaders.c.

3008
3009
3010
3011
3012
3013
3014
3015






3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
static InFile *CreateInFile(char *zArg, int *pnErr){
  int nSrc;
  char *zSrc;
  InFile *pFile;
  int i;

  /* 
  ** Get the name of the input file to be scanned






  */
  zSrc = zArg;
  for(nSrc=0; zSrc[nSrc] && zArg[nSrc]!=':'; nSrc++){}
  pFile = SafeMalloc( sizeof(InFile) );
  memset(pFile,0,sizeof(InFile));
  pFile->zSrc = StrDup(zSrc,nSrc);

  /* Figure out if we are dealing with C or C++ code.  Assume any
  ** file with ".c" or ".h" is C code and all else is C++.
  */







|
>
>
>
>
>
>


|







3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
static InFile *CreateInFile(char *zArg, int *pnErr){
  int nSrc;
  char *zSrc;
  InFile *pFile;
  int i;

  /* 
  ** Get the name of the input file to be scanned.  The input file is
  ** everything before the first ':' or the whole file if no ':' is seen.
  **
  ** Except, on windows, ignore any ':' that occurs as the second character
  ** since it might be part of the drive specifier.  So really, the ":' has
  ** to be the 3rd or later character in the name.  This precludes 1-character
  ** file names, which really should not be a problem.
  */
  zSrc = zArg;
  for(nSrc=2; zSrc[nSrc] && zArg[nSrc]!=':'; nSrc++){}
  pFile = SafeMalloc( sizeof(InFile) );
  memset(pFile,0,sizeof(InFile));
  pFile->zSrc = StrDup(zSrc,nSrc);

  /* Figure out if we are dealing with C or C++ code.  Assume any
  ** file with ".c" or ".h" is C code and all else is C++.
  */