Fossil

Check-in [d394120c]
Login

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

Overview
Comment:Fix the fossil_print() interface to use the internal printf() implementation (which we control) rather than the system printf() since might vary from one platform to the next. Ticket [6883bdd1eff926009c]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d394120c42ddf1b0d13b867c3899be8bf3cb9d23
User & Date: drh 2011-01-03 22:23:05
References
2011-01-03
22:39 Ticket [6883bdd1] fossil pull shows always 0 bytes received status still Open with 1 other change artifact: 9a334852 user: anonymous
Context
2011-01-04
13:59
Fix the file name change detection logic so that it works the same in either direction on the DAG. Ticket [c9d454153eea969] check-in: 44766975 user: drh tags: trunk
2011-01-03
22:23
Fix the fossil_print() interface to use the internal printf() implementation (which we control) rather than the system printf() since might vary from one platform to the next. Ticket [6883bdd1eff926009c] check-in: d394120c user: drh tags: trunk
16:17
fix the cross compile makefile check-in: 91dce8b1 user: ron tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/printf.c.

807
808
809
810
811
812
813

814


815
816
817
818
819
820
821
*/
void fossil_print(const char *zFormat, ...){
  va_list ap;
  va_start(ap, zFormat);
  if( g.cgiOutput ){
    cgi_vprintf(zFormat, ap);
  }else{

    vprintf(zFormat, ap);


  }
}

/*
** Case insensitive string comparison.
*/
int fossil_strnicmp(const char *zA, const char *zB, int nByte){







>
|
>
>







807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
*/
void fossil_print(const char *zFormat, ...){
  va_list ap;
  va_start(ap, zFormat);
  if( g.cgiOutput ){
    cgi_vprintf(zFormat, ap);
  }else{
    Blob b = empty_blob;
    vxprintf(&b, zFormat, ap);
    fwrite(blob_buffer(&b), 1, blob_size(&b), stdout);
    blob_reset(&b);
  }
}

/*
** Case insensitive string comparison.
*/
int fossil_strnicmp(const char *zA, const char *zB, int nByte){