|
3 | 3 | helpname: 'develop'
|
4 | 4 | ---
|
5 | 5 | <div id='vimCodeElement'>
|
6 |
| -<a class="Constant" href="develop.html" name="develop.txt">develop.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Aug 11<br> |
| 6 | +<a class="Constant" href="develop.html" name="develop.txt">develop.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Sep 01<br> |
7 | 7 | <br>
|
8 | 8 | <br>
|
9 | 9 | <span class="Identifier">VIMリファレンスマニュアル by Bram Moolenaar</span><br>
|
|
363 | 363 | unsigned 32-bit またはそれ以上の unsigned<br>
|
364 | 364 | <br>
|
365 | 365 | <br>
|
| 366 | +<span class="Statement">関数プロトタイプ</span> <a class="Constant" href="develop.html#assumptions-prototypes" name="assumptions-prototypes">assumptions-prototypes</a><br> |
| 367 | +<br> |
| 368 | +Vim は現在、ほとんどの内部関数プロトタイプに従来のヘッダーファイル (<span class="Comment">.h</span>) を使<br> |
| 369 | +用していない。代わりに、現在のアーキテクチャでは <span class="Comment">src/proto/</span> ディレクトリ内の<br> |
| 370 | +個別の <span class="Comment">.pro</span> ファイルを使用し、<span class="Comment">.c</span> ファイルごとに 1 つの <span class="Comment">.pro</span> ファイルを使<br> |
| 371 | +用する。<br> |
| 372 | +<br> |
| 373 | +従来の自己完結型ヘッダーファイルとは異なり、これらの <span class="Comment">.pro</span> ファイルには、API<br> |
| 374 | +ドキュメント、構造体と列挙型の定義、その他の宣言は含まれず、関数のプロトタイプ<br> |
| 375 | +のみが含まれる。<br> |
| 376 | +<br> |
| 377 | +これらのファイルのバンドルは自動化されていない。<span class="Comment">src/proto.h</span> ヘッダーは、各<br> |
| 378 | +<span class="Comment">.pro</span> ファイルごとに 1 つずつ、手動で記述する <span class="Comment">#include</span> ディレクティブのリス<br> |
| 379 | +トで構成されている。<br> |
| 380 | +<br> |
| 381 | +この設計のため、このアーキテクチャ内に新しいソースファイルを統合するには、対応<br> |
| 382 | +する <span class="Comment">.pro</span> ファイルを作成し、新しい <span class="Comment">#include</span> ディレクティブを <span class="Comment">proto.h</span> に<br> |
| 383 | +手動で追加し、このファイルを <span class="Comment">src/Makefile</span> と <span class="Comment">src/Make_mvc.mak</span> の両方に手動<br> |
| 384 | +で追加する必要がある。<br> |
| 385 | +<br> |
| 386 | +<span class="Comment">src/Makefile</span> には <span class="Comment">make proto</span> ターゲットが存在し、本来の目的は <span class="Comment">.pro</span> ファ<br> |
| 387 | +イルの更新プロセスを自動化することでした。しかし、このターゲットは信頼性が低<br> |
| 388 | +く、主要プラットフォーム (例えば、macOS) では動作せず、新リリースワークフロー<br> |
| 389 | +の一部に過ぎない。実際には、コントリビューターは関数シグネチャを追加、削除、ま<br> |
| 390 | +たは変更する際に、関連する <span class="Comment">.pro</span> ファイルを手動で編集している。<br> |
| 391 | +<br> |
| 392 | +このシステムは、Vim の関数がまだ K&R スタイルで書かれていたバージョン 1.24 以<br> |
| 393 | +降で導入されている。<br> |
| 394 | +<br> |
366 | 395 | <span class="PreProc">==============================================================================</span><br>
|
367 | 396 | 4. コーディングスタイル <a class="Constant" href="develop.html#coding-style" name="coding-style">coding-style</a><br>
|
368 | 397 | <br>
|
|
0 commit comments