Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Header and source file structure

オープン
#1,279 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
backend

調査の方向性

include/hx/zip/ と src/hx/zip/zlib/ の既存のレイアウトを読み、型付き zip 実験でヘッダーと実装をどのように分離しているかを理解してください。次に、その構造を、提案されているパスである include/hx/sys/File.hpp、include/hx/sys/win32/Win32File.hpp、include/hx/sys/posix/PosixFile.hpp と比較してください。OS 固有の実装を公開すべきか、またどのように公開すべきかについて、文書化された決定に到達すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

As part of the typed zip experiment I've started to play around with the structure of headers and source files, mainly for two reasons.

  • Instead of passing Dynamic handles through the _hx_ c functions the underlying classes are now exposed. But to avoid implementation details being leaked an abstract class of pure virtual functions is exposed (see include/hx/zip/ folder).
  • I moved the zlib implementation of the zip api into src/hx/zip/zlib instead of where it use to be so it matches the header folder more closely.

There's another thing I want to do which is to more formally expose those implementations, this would be especially useful for more fundamental types such as files and sockerts where you may want to get at the underlying OS handle to do stuff not exposed via the haxe api.
So would it be useful to haxe something like include/hx/sys/File.hpp and then include/hx/sys/win32/Win32File.hpp and include/hx/sys/posix/PosixFile.hpp style setup for this?

主要言語
C++
スター
329
フォーク
230
平均マージ
2日 16時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HaxeFoundation/hxcpp のほかの issue

HaxeFoundation/hxcpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。