Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | fossil_fclose() is now a no-op if passed stdin (as was initially intended). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
7723a92f069102ae153e01912939ab7e |
| User & Date: | stephan 2020-01-29 07:10:35.170 |
Context
|
2020-01-29
| ||
| 09:47 | Removed .column,.columns {float:left} from Ardoise skin because it can break display of README.md in /dir view by causing the README to display in the same row as the dir columns. check-in: da76d728b4 user: stephan tags: trunk | |
| 07:10 | fossil_fclose() is now a no-op if passed stdin (as was initially intended). check-in: 7723a92f06 user: stephan tags: trunk | |
| 06:31 | Doc typo/misinformation fix. check-in: 83d02c01b4 user: stephan tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1808 1809 1810 1811 1812 1813 1814 | #else FILE *f = fopen(zName, zMode); #endif return f; } /* | | > > > | < | | 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:
**
** 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 if(stdin!=f){
fclose(f);
}
}
}
/*
** Works like fopen(zName,"wb") except that:
|
| ︙ | ︙ |