Diff
Not logged in

Differences From Artifact [a7c0bf18a8]:

To Artifact [54eebd5371]:


1808
1809
1810
1811
1812
1813
1814
1815
1816





1817
1818
1819
1820
1821
1822
1823

1824
1825
1826
1827
1828
1829
1830
1808
1809
1810
1811
1812
1813
1814


1815
1816
1817
1818
1819
1820
1821

1822
1823
1824

1825
1826
1827
1828
1829
1830
1831
1832







-
-
+
+
+
+
+


-



-
+







#else
  FILE *f = fopen(zName, zMode);
#endif
  return f;
}

/*
** Works like fclose() except that is a no-op if f is 0 and it
** flushes, but does not close, f if it is one of (stdout, stderr).
** Works like fclose() except that:
**
** 1) is a no-op if f is 0 or if it is stdin.
**
** 2) If f is one of (stdout, stderr), it is flushed but not closed.
*/
void fossil_fclose(FILE *f){

  if(f!=0){
    if(stdout==f || stderr==f){
      fflush(f);
    }else{
    }else if(stdin!=f){
      fclose(f);
    }
  }
}

/*
**   Works like fopen(zName,"wb") except that: