Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build without c-pages, but with c-fsindex #5

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
configure: "--disable-c-pkgconfig --disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
description: "no pkgcfg, pages, fsindex, readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
configure: "--disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
description: "no pages, fsindex, readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-fsindex --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
configure: "--disable-c-pages --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
description: "no pages, readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-fsindex --disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
description: "no fsindex, readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
configure: "--disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
description: "no readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: " --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
2024-05-26 Konstantin Kushnir <[email protected]>
* Add tests for writer
* Fix build without c-pages, but with c-fsindex

2024-05-25 Konstantin Kushnir <[email protected]>
* Add support for writer in C
Expand Down
4 changes: 4 additions & 0 deletions generic/fsindexIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Tcl_Obj *Cookfs_FsindexToObject(Cookfs_Fsindex *fsIndex) {
return result;
}

#ifdef COOKFS_USECPAGES

/*
*----------------------------------------------------------------------
*
Expand Down Expand Up @@ -127,6 +129,8 @@ Cookfs_Fsindex *Cookfs_FsindexFromPages(Cookfs_Fsindex *fsindex, Cookfs_Pages *p
return rc;
}

#endif /* COOKFS_USECPAGES */

/*
*----------------------------------------------------------------------
*
Expand Down
2 changes: 2 additions & 0 deletions generic/fsindexIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

Tcl_Obj *Cookfs_FsindexToObject(Cookfs_Fsindex *i);
Cookfs_Fsindex *Cookfs_FsindexFromObject(Cookfs_Fsindex *i, Tcl_Obj *o);
#ifdef COOKFS_USECPAGES
Cookfs_Fsindex *Cookfs_FsindexFromPages(Cookfs_Fsindex *fsindex, Cookfs_Pages *pages);
#endif /* COOKFS_USECPAGES */

#endif /* COOKFS_USECFSINDEX */

Expand Down