Skip to content

Commit

Permalink
Fix build without c-pages, but with c-fsindex
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed May 26, 2024
1 parent 921c8d8 commit a497800
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
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 fsindex, readedchannel, writer, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-readerchannel --disable-c-writer --disable-c-writerchannel --disable-c-vfs"
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"
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

0 comments on commit a497800

Please sign in to comment.