Fossil

Check-in [398a90c0]
Login

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

Overview
Comment:Update dirent to Version 1.23.1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:398a90c006ed251ffb3c58464803a17c071a439a8f9e98879a11c73b8425aca9
User & Date: jan.nijtmans 2017-09-26 14:47:20
Context
2017-09-26
20:41
The revision numbers in the annotate output were off by one check-in. This changes should fix the problem. check-in: 0b4c3f5a user: drh tags: trunk
14:47
Update dirent to Version 1.23.1 check-in: 398a90c0 user: jan.nijtmans tags: trunk
14:46
Fix double "However" in comment. Some more end-of-line spacing. Nothing functional. check-in: ce1bc4fb user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to win/include/dirent.h.

1
2
3
4
5
6
7
8
9
10
...
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
...
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
/*
 * Dirent interface for Microsoft Visual Studio
 * Version 1.23
 *
 * Copyright (C) 2006-2012 Toni Ronkko
 * This file is part of dirent.  Dirent may be freely distributed
 * under the MIT license.  For all details and documentation, see
 * https://github.com/tronkko/dirent
 */
#ifndef DIRENT_H
................................................................................
                    num_entries = size * 2;
                }

                /* Allocate first pointer table or enlarge existing table */
                p = realloc (files, sizeof (void*) * num_entries);
                if (p != NULL) {
                    /* Got the memory */
                    files = p;
                    allocated = num_entries;
                } else {
                    /* Out of memory */
                    result = -1;
                    break;
                }

................................................................................

                } else {

                    /*
                     * End of directory stream reached => sort entries and
                     * exit.
                     */
                    qsort (files, size, sizeof (void*), (void*) compare);
                    break;

                }

            } else {
                /* Error reading directory entry */
                result = /*Error*/ -1;


|







 







|







 







|







1
2
3
4
5
6
7
8
9
10
...
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
...
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
/*
 * Dirent interface for Microsoft Visual Studio
 * Version 1.23.1
 *
 * Copyright (C) 2006-2012 Toni Ronkko
 * This file is part of dirent.  Dirent may be freely distributed
 * under the MIT license.  For all details and documentation, see
 * https://github.com/tronkko/dirent
 */
#ifndef DIRENT_H
................................................................................
                    num_entries = size * 2;
                }

                /* Allocate first pointer table or enlarge existing table */
                p = realloc (files, sizeof (void*) * num_entries);
                if (p != NULL) {
                    /* Got the memory */
                    files = (dirent**) p;
                    allocated = num_entries;
                } else {
                    /* Out of memory */
                    result = -1;
                    break;
                }

................................................................................

                } else {

                    /*
                     * End of directory stream reached => sort entries and
                     * exit.
                     */
                    qsort (files, size, sizeof (void*), compare);
                    break;

                }

            } else {
                /* Error reading directory entry */
                result = /*Error*/ -1;