• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionf29912b7aa8b25d9b69614e974f7940ab7bccfef (tree)
Time2014-01-28 21:20:40
Authordeskull <deskull@0568...>
Commiterdeskull

Log Message

Add Doxygen comment to files.c.

Change Summary

Incremental Difference

--- a/src/files.c
+++ b/src/files.c
@@ -350,69 +350,49 @@ static named_num gf_desc[] =
350350 * Each "action" line has an "action symbol" in the first column,
351351 * followed by a colon, followed by some command specific info,
352352 * usually in the form of "tokens" separated by colons or slashes.
353- *
354353 * Blank lines, lines starting with white space, and lines starting
355354 * with pound signs ("#") are ignored (as comments).
356- *
357355 * Note the use of "tokenize()" to allow the use of both colons and
358356 * slashes as delimeters, while still allowing final tokens which
359357 * may contain any characters including "delimiters".
360- *
361358 * Note the use of "strtol()" to allow all "integers" to be encoded
362359 * in decimal, hexidecimal, or octal form.
363- *
364360 * Note that "monster zero" is used for the "player" attr/char, "object
365361 * zero" will be used for the "stack" attr/char, and "feature zero" is
366362 * used for the "nothing" attr/char.
367- *
368363 * Parse another file recursively, see below for details
369364 * %:<filename>
370- *
371365 * Specify the attr/char values for "monsters" by race index
372366 * R:<num>:<a>:<c>
373- *
374367 * Specify the attr/char values for "objects" by kind index
375368 * K:<num>:<a>:<c>
376- *
377369 * Specify the attr/char values for "features" by feature index
378370 * F:<num>:<a>:<c>
379- *
380371 * Specify the attr/char values for unaware "objects" by kind tval
381372 * U:<tv>:<a>:<c>
382- *
383373 * Specify the attr/char values for inventory "objects" by kind tval
384374 * E:<tv>:<a>:<c>
385- *
386375 * Define a macro action, given an encoded macro action
387376 * A:<str>
388- *
389377 * Create a normal macro, given an encoded macro trigger
390378 * P:<str>
391- *
392379 * Create a command macro, given an encoded macro trigger
393380 * C:<str>
394- *
395381 * Create a keyset mapping
396382 * S:<key>:<key>:<dir>
397- *
398383 * Turn an option off, given its name
399384 * X:<str>
400- *
401385 * Turn an option on, given its name
402386 * Y:<str>
403- *
404387 * Specify visual information, given an index, and some data
405388 * V:<num>:<kv>:<rv>:<gv>:<bv>
406- *
407389 * Specify the set of colors to use when drawing a zapped spell
408390 * Z:<type>:<str>
409- *
410391 * Specify a macro trigger template and macro trigger names.
411392 * T:<template>:<modifier chr>:<modifier name1>:<modifier name2>:...
412393 * T:<trigger>:<keycode>:<shift-keycode>
413394 * </pre>
414395 */
415-
416396 errr process_pref_file_command(char *buf)
417397 {
418398 int i, j, n1, n2;
@@ -810,15 +790,20 @@ errr process_pref_file_command(char *buf)
810790 }
811791
812792
813-/*
793+/*!
794+ * @brief process_pref_fileのサブルーチンとして条件分岐処理の解釈と結果を返す /
814795 * Helper function for "process_pref_file()"
815- *
796+ * @param sp テキスト文字列の参照ポインタ
797+ * @param fp 再帰中のポインタ参照
798+ * @return
799+ * @details
800+ * <pre>
816801 * Input:
817802 * v: output buffer array
818803 * f: final character
819- *
820804 * Output:
821805 * result
806+ * </pre>
822807 */
823808 cptr process_pref_file_expr(char **sp, char *fp)
824809 {
@@ -1114,8 +1099,20 @@ cptr process_pref_file_expr(char **sp, char *fp)
11141099 #define PREF_TYPE_AUTOPICK 1
11151100 #define PREF_TYPE_HISTPREF 2
11161101
1117-/*
1102+/*!
1103+ * @brief process_pref_fileのサブルーチン /
11181104 * Open the "user pref file" and parse it.
1105+ * @param name 読み込むファイル名
1106+ * @param preftype prefファイルのタイプ
1107+ * @return エラーコード
1108+ * @details
1109+ * <pre>
1110+ * Input:
1111+ * v: output buffer array
1112+ * f: final character
1113+ * Output:
1114+ * result
1115+ * </pre>
11191116 */
11201117 static errr process_pref_file_aux(cptr name, int preftype)
11211118 {
Show on old repository browser