Fossil

Check-in [68288686]
Login

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

Overview
Comment:Fix warning when compiling with gcc on Windows (Microsoft's fprintf doesn't know %lld)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 68288686e06b1b3e95066a875e8d2dcc0ec8c182
User & Date: jan.nijtmans 2016-12-08 10:25:28.464
Original Comment: Fix warning when compiling with gcc on Windows (Microsoft's fprintf does't know %lld)
Context
2016-12-08
20:03
Update the built-in SQLite to the latest 3.16.0 alpha for testing. ... (check-in: 814dfd5a user: drh tags: trunk)
10:25
Fix warning when compiling with gcc on Windows (Microsoft's fprintf doesn't know %lld) ... (check-in: 68288686 user: jan.nijtmans tags: trunk)
2016-12-03
14:30
Still more documentation tweaks. ... (check-in: 6f3ec1be user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1380
1381
1382
1383
1384
1385
1386


1387
1388
1389
1390
1391
1392
1393
1394
1395
      ** Special case:  Assume any file with a basename of ".fossil" does
      ** not exist.
      */
      zCleanRepo = file_cleanup_fullpath(zRepo);
      if( szFile==0 && sqlite3_strglob("*/.fossil",zRepo)!=0 ){
        szFile = file_size(zCleanRepo);
        if( g.fHttpTrace ){


          @ <!-- file_size(%h(zCleanRepo)) is %lld(szFile) -->
          fprintf(stderr, "# file_size(%s) = %lld\n", zCleanRepo, szFile);
        }
      }

      /* If no file named by zRepo exists, remove the added ".fossil" suffix
      ** and check to see if there is a file or directory with the same
      ** name as the raw PATH_INFO text.
      */







>
>
|
|







1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
      ** Special case:  Assume any file with a basename of ".fossil" does
      ** not exist.
      */
      zCleanRepo = file_cleanup_fullpath(zRepo);
      if( szFile==0 && sqlite3_strglob("*/.fossil",zRepo)!=0 ){
        szFile = file_size(zCleanRepo);
        if( g.fHttpTrace ){
          char zBuf[24];
          sqlite3_snprintf(sizeof(zBuf), zBuf, "%lld", szFile);
          @ <!-- file_size(%h(zCleanRepo)) is %s(zBuf) -->
          fprintf(stderr, "# file_size(%s) = %s\n", zCleanRepo, zBuf);
        }
      }

      /* If no file named by zRepo exists, remove the added ".fossil" suffix
      ** and check to see if there is a file or directory with the same
      ** name as the raw PATH_INFO text.
      */