Ticket #1394: comments_diff.txt

File comments_diff.txt, 23.6 KB (added by Derakon, 8 years ago)
Line 
1diff --git a/src/init2.c b/src/init2.c
2index 80d7d86..7c2390a 100644
3--- a/src/init2.c
4+++ b/src/init2.c
5@@ -370,6 +370,7 @@ struct kb_parsedata {
6        object_base *kb;
7 };
8 
9+// Parse D: lines from the kb file
10 static enum parser_error parse_kb_d(struct parser *p) {
11        const char *label;
12        int value;
13@@ -388,6 +389,7 @@ static enum parser_error parse_kb_d(struct parser *p) {
14        return PARSE_ERROR_NONE;
15 }
16 
17+// Parse N: lines from the kb file
18 static enum parser_error parse_kb_n(struct parser *p) {
19        struct object_base *kb;
20 
21@@ -408,6 +410,7 @@ static enum parser_error parse_kb_n(struct parser *p) {
22        return PARSE_ERROR_NONE;
23 }
24 
25+// Parse B: lines from the kb file
26 static enum parser_error parse_kb_b(struct parser *p) {
27        struct object_base *kb;
28 
29@@ -422,6 +425,7 @@ static enum parser_error parse_kb_b(struct parser *p) {
30        return PARSE_ERROR_NONE;
31 }
32 
33+// Parse F: lines from the kb file
34 static enum parser_error parse_kb_f(struct parser *p) {
35        struct object_base *kb;
36        char *s, *t;
37@@ -492,6 +496,7 @@ struct file_parser kb_parser = {
38 
39 /* Parsing functions for object.txt */
40 
41+// Parse N: lines from the object file
42 static enum parser_error parse_k_n(struct parser *p) {
43        int idx = parser_getint(p, "index");
44        const char *name = parser_getstr(p, "name");
45@@ -505,6 +510,7 @@ static enum parser_error parse_k_n(struct parser *p) {
46        return PARSE_ERROR_NONE;
47 }
48 
49+// Parse G: lines from the object file
50 static enum parser_error parse_k_g(struct parser *p) {
51        const char *sym = parser_getsym(p, "char");
52        const char *color = parser_getsym(p, "color");
53@@ -520,6 +526,7 @@ static enum parser_error parse_k_g(struct parser *p) {
54        return PARSE_ERROR_NONE;
55 }
56 
57+// Parse I: lines from the object file
58 static enum parser_error parse_k_i(struct parser *p) {
59        struct object_kind *k = parser_priv(p);
60        int tval;
61@@ -538,6 +545,7 @@ static enum parser_error parse_k_i(struct parser *p) {
62        return PARSE_ERROR_NONE;
63 }
64 
65+// Parse W: lines from the object file
66 static enum parser_error parse_k_w(struct parser *p) {
67        struct object_kind *k = parser_priv(p);
68        assert(k);
69@@ -548,6 +556,7 @@ static enum parser_error parse_k_w(struct parser *p) {
70        return PARSE_ERROR_NONE;
71 }
72 
73+// Parse A: lines from the object file
74 static enum parser_error parse_k_a(struct parser *p) {
75        struct object_kind *k = parser_priv(p);
76        const char *tmp = parser_getstr(p, "minmax");
77@@ -563,6 +572,7 @@ static enum parser_error parse_k_a(struct parser *p) {
78        return PARSE_ERROR_NONE;
79 }
80 
81+// Parse P: lines from the object file
82 static enum parser_error parse_k_p(struct parser *p) {
83        struct object_kind *k = parser_priv(p);
84        struct random hd = parser_getrand(p, "hd");
85@@ -577,6 +587,7 @@ static enum parser_error parse_k_p(struct parser *p) {
86        return PARSE_ERROR_NONE;
87 }
88 
89+// Parse C: lines from the object file
90 static enum parser_error parse_k_c(struct parser *p) {
91        struct object_kind *k = parser_priv(p);
92        assert(k);
93@@ -585,6 +596,7 @@ static enum parser_error parse_k_c(struct parser *p) {
94        return PARSE_ERROR_NONE;
95 }
96 
97+// Parse M: lines from the object file
98 static enum parser_error parse_k_m(struct parser *p) {
99        struct object_kind *k = parser_priv(p);
100        assert(k);
101@@ -594,6 +606,7 @@ static enum parser_error parse_k_m(struct parser *p) {
102        return PARSE_ERROR_NONE;
103 }
104 
105+// Parse F: lines from the object file
106 static enum parser_error parse_k_f(struct parser *p) {
107        struct object_kind *k = parser_priv(p);
108        char *s = string_make(parser_getstr(p, "flags"));
109@@ -610,6 +623,7 @@ static enum parser_error parse_k_f(struct parser *p) {
110        return t ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
111 }
112 
113+// Parse E: lines from the object file
114 static enum parser_error parse_k_e(struct parser *p) {
115        struct object_kind *k = parser_priv(p);
116        assert(k);
117@@ -622,6 +636,7 @@ static enum parser_error parse_k_e(struct parser *p) {
118        return PARSE_ERROR_NONE;
119 }
120 
121+// Parse D: lines from the object file
122 static enum parser_error parse_k_d(struct parser *p) {
123        struct object_kind *k = parser_priv(p);
124        assert(k);
125@@ -629,6 +644,7 @@ static enum parser_error parse_k_d(struct parser *p) {
126        return PARSE_ERROR_NONE;
127 }
128 
129+// Parse L: lines from the object file
130 static enum parser_error parse_k_l(struct parser *p) {
131        struct object_kind *k = parser_priv(p);
132        char *s;
133@@ -707,6 +723,7 @@ struct file_parser k_parser = {
134 };
135 
136 /* Parsing functions for artifact.txt */
137+// Parse N: lines from the artifact file
138 static enum parser_error parse_a_n(struct parser *p) {
139        bitflag f[OF_SIZE];
140        int idx = parser_getint(p, "index");
141@@ -726,6 +743,7 @@ static enum parser_error parse_a_n(struct parser *p) {
142        return PARSE_ERROR_NONE;
143 }
144 
145+// Parse I: lines from the artifact file
146 static enum parser_error parse_a_i(struct parser *p) {
147        struct artifact *a = parser_priv(p);
148        int tval, sval;
149@@ -745,6 +763,7 @@ static enum parser_error parse_a_i(struct parser *p) {
150        return PARSE_ERROR_NONE;
151 }
152 
153+// Parse W: lines from the artifact file
154 static enum parser_error parse_a_w(struct parser *p) {
155        struct artifact *a = parser_priv(p);
156        assert(a);
157@@ -756,6 +775,7 @@ static enum parser_error parse_a_w(struct parser *p) {
158        return PARSE_ERROR_NONE;
159 }
160 
161+// Parse A: lines from the artifact file
162 static enum parser_error parse_a_a(struct parser *p) {
163        struct artifact *a = parser_priv(p);
164        const char *tmp = parser_getstr(p, "minmax");
165@@ -774,6 +794,7 @@ static enum parser_error parse_a_a(struct parser *p) {
166        return PARSE_ERROR_NONE;
167 }
168 
169+// Parse P: lines from the artifact file
170 static enum parser_error parse_a_p(struct parser *p) {
171        struct artifact *a = parser_priv(p);
172        struct random hd = parser_getrand(p, "hd");
173@@ -788,6 +809,7 @@ static enum parser_error parse_a_p(struct parser *p) {
174        return PARSE_ERROR_NONE;
175 }
176 
177+// Parse F: lines from the artifact file
178 static enum parser_error parse_a_f(struct parser *p) {
179        struct artifact *a = parser_priv(p);
180        char *s;
181@@ -808,6 +830,7 @@ static enum parser_error parse_a_f(struct parser *p) {
182        return t ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
183 }
184 
185+// Parse E: lines from the artifact file
186 static enum parser_error parse_a_e(struct parser *p) {
187        struct artifact *a = parser_priv(p);
188        assert(a);
189@@ -819,6 +842,7 @@ static enum parser_error parse_a_e(struct parser *p) {
190        return PARSE_ERROR_NONE;
191 }
192 
193+// Parse M: lines from the artifact file
194 static enum parser_error parse_a_m(struct parser *p) {
195        struct artifact *a = parser_priv(p);
196        assert(a);
197@@ -827,6 +851,7 @@ static enum parser_error parse_a_m(struct parser *p) {
198        return PARSE_ERROR_NONE;
199 }
200 
201+// Parse L: lines from the artifact file
202 static enum parser_error parse_a_l(struct parser *p) {
203        struct artifact *a = parser_priv(p);
204        char *s;
205@@ -857,6 +882,7 @@ static enum parser_error parse_a_l(struct parser *p) {
206        return t ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
207 }
208 
209+// Parse D: lines from the artifact file
210 static enum parser_error parse_a_d(struct parser *p) {
211        struct artifact *a = parser_priv(p);
212        assert(a);
213@@ -992,6 +1018,7 @@ struct file_parser names_parser = {
214 };
215 
216 /* Parsing functions for terrain.txt */
217+// Parse N: lines from the terrain file
218 static enum parser_error parse_f_n(struct parser *p) {
219        int idx = parser_getuint(p, "index");
220        const char *name = parser_getstr(p, "name");
221@@ -1006,6 +1033,7 @@ static enum parser_error parse_f_n(struct parser *p) {
222        return PARSE_ERROR_NONE;
223 }
224 
225+// Parse G: lines from the terrain file
226 static enum parser_error parse_f_g(struct parser *p) {
227        char glyph = parser_getchar(p, "glyph");
228        const char *color = parser_getsym(p, "color");
229@@ -1025,6 +1053,7 @@ static enum parser_error parse_f_g(struct parser *p) {
230        return PARSE_ERROR_NONE;
231 }
232 
233+// Parse M: lines from the terrain file
234 static enum parser_error parse_f_m(struct parser *p) {
235        unsigned int idx = parser_getuint(p, "index");
236        struct feature *f = parser_priv(p);
237@@ -1035,6 +1064,7 @@ static enum parser_error parse_f_m(struct parser *p) {
238        return PARSE_ERROR_NONE;
239 }
240 
241+// Parse P: lines from the terrain file
242 static enum parser_error parse_f_p(struct parser *p) {
243        unsigned int priority = parser_getuint(p, "priority");
244        struct feature *f = parser_priv(p);
245@@ -1081,6 +1111,7 @@ static errr grab_one_flag(u32b *flags, const char *names[], const char *what)
246        return (-1);
247 }
248 
249+// Parse F: lines from the terrain file
250 static enum parser_error parse_f_f(struct parser *p) {
251        char *flags;
252        struct feature *f = parser_priv(p);
253@@ -1106,6 +1137,7 @@ static enum parser_error parse_f_f(struct parser *p) {
254        return PARSE_ERROR_NONE;
255 }
256 
257+// Parse X: lines from the terrain file
258 static enum parser_error parse_f_x(struct parser *p) {
259        struct feature *f = parser_priv(p);
260 
261@@ -1118,6 +1150,7 @@ static enum parser_error parse_f_x(struct parser *p) {
262        return PARSE_ERROR_NONE;
263 }
264 
265+// Parse E: lines from the terrain file
266 static enum parser_error parse_f_e(struct parser *p) {
267        struct feature *f = parser_priv(p);
268 
269@@ -1176,6 +1209,7 @@ struct file_parser f_parser = {
270 };
271 
272 /* Parsing functions for ego-item.txt */
273+// Parse N: lines from the ego_item file
274 static enum parser_error parse_e_n(struct parser *p) {
275        int idx = parser_getint(p, "index");
276        const char *name = parser_getstr(p, "name");
277@@ -1189,6 +1223,7 @@ static enum parser_error parse_e_n(struct parser *p) {
278        return PARSE_ERROR_NONE;
279 }
280 
281+// Parse W: lines from the ego_item file
282 static enum parser_error parse_e_w(struct parser *p) {
283        int level = parser_getint(p, "level");
284        int rarity = parser_getint(p, "rarity");
285@@ -1203,6 +1238,7 @@ static enum parser_error parse_e_w(struct parser *p) {
286        return PARSE_ERROR_NONE;
287 }
288 
289+// Parse X: lines from the ego_item file
290 static enum parser_error parse_e_x(struct parser *p) {
291        int rating = parser_getint(p, "rating");
292        int xtra = parser_getint(p, "xtra");
293@@ -1215,6 +1251,7 @@ static enum parser_error parse_e_x(struct parser *p) {
294        return PARSE_ERROR_NONE;
295 }
296 
297+// Parse T: lines from the ego_item file
298 static enum parser_error parse_e_t(struct parser *p) {
299        int i;
300        int tval;
301@@ -1245,6 +1282,7 @@ static enum parser_error parse_e_t(struct parser *p) {
302        return PARSE_ERROR_NONE;
303 }
304 
305+// Parse C: lines from the ego_item file
306 static enum parser_error parse_e_c(struct parser *p) {
307        struct random th = parser_getrand(p, "th");
308        struct random td = parser_getrand(p, "td");
309@@ -1261,6 +1299,7 @@ static enum parser_error parse_e_c(struct parser *p) {
310        return PARSE_ERROR_NONE;
311 }
312 
313+// Parse M: lines from the ego_item file
314 static enum parser_error parse_e_m(struct parser *p) {
315        int th = parser_getint(p, "th");
316        int td = parser_getint(p, "td");
317@@ -1277,6 +1316,7 @@ static enum parser_error parse_e_m(struct parser *p) {
318        return PARSE_ERROR_NONE;
319 }
320 
321+// Parse F: lines from the ego_item file
322 static enum parser_error parse_e_f(struct parser *p) {
323        struct ego_item *e = parser_priv(p);
324        char *s;
325@@ -1297,6 +1337,8 @@ static enum parser_error parse_e_f(struct parser *p) {
326        return t ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
327 }
328 
329+// Parse L: lines from the ego_item file.
330+// Parse L: lines from the ego_item file
331 static enum parser_error parse_e_l(struct parser *p) {
332        struct ego_item *e = parser_priv(p);
333        char *s;
334@@ -1329,6 +1371,7 @@ static enum parser_error parse_e_l(struct parser *p) {
335        return t ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
336 }
337 
338+// Parse D: lines from the ego_item file
339 static enum parser_error parse_e_d(struct parser *p) {
340        struct ego_item *e = parser_priv(p);
341 
342@@ -1390,6 +1433,7 @@ struct file_parser e_parser = {
343 
344 /* Parsing functions for monster_base.txt */
345 
346+// Parse N: lines from the rb file
347 static enum parser_error parse_rb_n(struct parser *p) {
348        struct monster_base *h = parser_priv(p);
349        struct monster_base *rb = mem_zalloc(sizeof *rb);
350@@ -1399,6 +1443,7 @@ static enum parser_error parse_rb_n(struct parser *p) {
351        return PARSE_ERROR_NONE;
352 }
353 
354+// Parse G: lines from the rb file
355 static enum parser_error parse_rb_g(struct parser *p) {
356        struct monster_base *rb = parser_priv(p);
357 
358@@ -1409,6 +1454,7 @@ static enum parser_error parse_rb_g(struct parser *p) {
359        return PARSE_ERROR_NONE;
360 }
361 
362+// Parse M: lines from the rb file
363 static enum parser_error parse_rb_m(struct parser *p) {
364        struct monster_base *rb = parser_priv(p);
365        int pain_idx;
366@@ -1434,6 +1480,7 @@ static const char *r_info_flags[] =
367        NULL
368 };
369 
370+// Parse F: lines from the rb file
371 static enum parser_error parse_rb_f(struct parser *p) {
372        struct monster_base *rb = parser_priv(p);
373        char *flags;
374@@ -1465,6 +1512,7 @@ static const char *r_info_spell_flags[] =
375        NULL
376 };
377 
378+// Parse S: lines from the rb file
379 static enum parser_error parse_rb_s(struct parser *p) {
380        struct monster_base *rb = parser_priv(p);
381        char *flags;
382@@ -1489,6 +1537,7 @@ static enum parser_error parse_rb_s(struct parser *p) {
383 }
384 
385 
386+// Parse D: lines from the rb file
387 static enum parser_error parse_rb_d(struct parser *p) {
388        struct monster_base *rb = parser_priv(p);
389 
390@@ -1532,6 +1581,7 @@ struct file_parser rb_parser = {
391 
392 
393 /* Parsing functions for monster.txt */
394+// Parse N: lines from the monster file
395 static enum parser_error parse_r_n(struct parser *p) {
396        struct monster_race *h = parser_priv(p);
397        struct monster_race *r = mem_zalloc(sizeof *r);
398@@ -1542,6 +1592,7 @@ static enum parser_error parse_r_n(struct parser *p) {
399        return PARSE_ERROR_NONE;
400 }
401 
402+// Parse T: lines from the monster file
403 static enum parser_error parse_r_t(struct parser *p) {
404        struct monster_race *r = parser_priv(p);
405       
406@@ -1559,6 +1610,7 @@ static enum parser_error parse_r_t(struct parser *p) {
407        return PARSE_ERROR_NONE;
408 }
409 
410+// Parse G: lines from the monster file
411 static enum parser_error parse_r_g(struct parser *p) {
412        struct monster_race *r = parser_priv(p);
413       
414@@ -1568,6 +1620,7 @@ static enum parser_error parse_r_g(struct parser *p) {
415        return PARSE_ERROR_NONE;
416 }
417 
418+// Parse C: lines from the monster file
419 static enum parser_error parse_r_c(struct parser *p) {
420        struct monster_race *r = parser_priv(p);
421        const char *color;
422@@ -1586,6 +1639,7 @@ static enum parser_error parse_r_c(struct parser *p) {
423        return PARSE_ERROR_NONE;
424 }
425 
426+// Parse I: lines from the monster file
427 static enum parser_error parse_r_i(struct parser *p) {
428        struct monster_race *r = parser_priv(p);
429 
430@@ -1599,6 +1653,7 @@ static enum parser_error parse_r_i(struct parser *p) {
431        return PARSE_ERROR_NONE;
432 }
433 
434+// Parse W: lines from the monster file
435 static enum parser_error parse_r_w(struct parser *p) {
436        struct monster_race *r = parser_priv(p);
437 
438@@ -1643,6 +1698,7 @@ static int find_blow_effect(const char *name) {
439        return i;
440 }
441 
442+// Parse B: lines from the monster file
443 static enum parser_error parse_r_b(struct parser *p) {
444        struct monster_race *r = parser_priv(p);
445        int i;
446@@ -1673,6 +1729,7 @@ static enum parser_error parse_r_b(struct parser *p) {
447        return PARSE_ERROR_NONE;
448 }
449 
450+// Parse F: lines from the monster file
451 static enum parser_error parse_r_f(struct parser *p) {
452        struct monster_race *r = parser_priv(p);
453        char *flags;
454@@ -1696,6 +1753,7 @@ static enum parser_error parse_r_f(struct parser *p) {
455        return PARSE_ERROR_NONE;
456 }
457 
458+// Parse D: lines from the monster file
459 static enum parser_error parse_r_d(struct parser *p) {
460        struct monster_race *r = parser_priv(p);
461 
462@@ -1705,6 +1763,7 @@ static enum parser_error parse_r_d(struct parser *p) {
463        return PARSE_ERROR_NONE;
464 }
465 
466+// Parse S: lines from the monster file
467 static enum parser_error parse_r_s(struct parser *p) {
468        struct monster_race *r = parser_priv(p);
469        char *flags;
470@@ -1741,6 +1800,7 @@ static enum parser_error parse_r_s(struct parser *p) {
471        return ret;
472 }
473 
474+// Parse D: lines from the monster file
475 static enum parser_error parse_r_drop(struct parser *p) {
476        struct monster_race *r = parser_priv(p);
477        struct monster_drop *d;
478@@ -1768,6 +1828,7 @@ static enum parser_error parse_r_drop(struct parser *p) {
479        return PARSE_ERROR_NONE;
480 }
481 
482+// Parse D: lines from the monster file
483 static enum parser_error parse_r_drop_artifact(struct parser *p) {
484        struct monster_race *r = parser_priv(p);
485        struct monster_drop *d;
486@@ -1845,6 +1906,7 @@ struct file_parser r_parser = {
487 };
488 
489 /* Parsing functions for prace.txt */
490+// Parse N: lines from the p_race file
491 static enum parser_error parse_p_n(struct parser *p) {
492        struct player_race *h = parser_priv(p);
493        struct player_race *r = mem_zalloc(sizeof *r);
494@@ -1856,6 +1918,7 @@ static enum parser_error parse_p_n(struct parser *p) {
495        return PARSE_ERROR_NONE;
496 }
497 
498+// Parse S: lines from the p_race file
499 static enum parser_error parse_p_s(struct parser *p) {
500        struct player_race *r = parser_priv(p);
501        if (!r)
502@@ -1869,6 +1932,7 @@ static enum parser_error parse_p_s(struct parser *p) {
503        return PARSE_ERROR_NONE;
504 }
505 
506+// Parse R: lines from the p_race file
507 static enum parser_error parse_p_r(struct parser *p) {
508        struct player_race *r = parser_priv(p);
509        if (!r)
510@@ -1886,6 +1950,7 @@ static enum parser_error parse_p_r(struct parser *p) {
511        return PARSE_ERROR_NONE;
512 }
513 
514+// Parse X: lines from the p_race file
515 static enum parser_error parse_p_x(struct parser *p) {
516        struct player_race *r = parser_priv(p);
517        if (!r)
518@@ -1896,6 +1961,7 @@ static enum parser_error parse_p_x(struct parser *p) {
519        return PARSE_ERROR_NONE;
520 }
521 
522+// Parse I: lines from the p_race file
523 static enum parser_error parse_p_i(struct parser *p) {
524        struct player_race *r = parser_priv(p);
525        if (!r)
526@@ -1906,6 +1972,7 @@ static enum parser_error parse_p_i(struct parser *p) {
527        return PARSE_ERROR_NONE;
528 }
529 
530+// Parse H: lines from the p_race file
531 static enum parser_error parse_p_h(struct parser *p) {
532        struct player_race *r = parser_priv(p);
533        if (!r)
534@@ -1917,6 +1984,7 @@ static enum parser_error parse_p_h(struct parser *p) {
535        return PARSE_ERROR_NONE;
536 }
537 
538+// Parse W: lines from the p_race file
539 static enum parser_error parse_p_w(struct parser *p) {
540        struct player_race *r = parser_priv(p);
541        if (!r)
542@@ -1928,6 +1996,7 @@ static enum parser_error parse_p_w(struct parser *p) {
543        return PARSE_ERROR_NONE;
544 }
545 
546+// Parse F: lines from the p_race file
547 static enum parser_error parse_p_f(struct parser *p) {
548        struct player_race *r = parser_priv(p);
549        char *flags;
550@@ -1956,6 +2025,7 @@ static const char *player_info_flags[] =
551        NULL
552 };
553 
554+// Parse Y: lines from the p_race file
555 static enum parser_error parse_p_y(struct parser *p) {
556        struct player_race *r = parser_priv(p);
557        char *flags;
558@@ -1976,6 +2046,7 @@ static enum parser_error parse_p_y(struct parser *p) {
559        return s ? PARSE_ERROR_INVALID_FLAG : PARSE_ERROR_NONE;
560 }
561 
562+// Parse C: lines from the p_race file
563 static enum parser_error parse_p_c(struct parser *p) {
564        struct player_race *r = parser_priv(p);
565        char *classes;
566@@ -2030,6 +2101,7 @@ struct file_parser p_parser = {
567 };
568 
569 /* Parsing functions for pclass.txt */
570+// Parse N: lines from the p_class file
571 static enum parser_error parse_c_n(struct parser *p) {
572        struct player_class *h = parser_priv(p);
573        struct player_class *c = mem_zalloc(sizeof *c);
574@@ -2040,6 +2112,7 @@ static enum parser_error parse_c_n(struct parser *p) {
575        return PARSE_ERROR_NONE;
576 }
577 
578+// Parse S: lines from the p_class file
579 static enum parser_error parse_c_s(struct parser *p) {
580        struct player_class *c = parser_priv(p);
581 
582@@ -2055,6 +2128,7 @@ static enum parser_error parse_c_s(struct parser *p) {
583        return PARSE_ERROR_NONE;
584 }
585 
586+// Parse C: lines from the p_class file
587 static enum parser_error parse_c_c(struct parser *p) {
588        struct player_class *c = parser_priv(p);
589 
590@@ -2073,6 +2147,7 @@ static enum parser_error parse_c_c(struct parser *p) {
591        return PARSE_ERROR_NONE;
592 }
593 
594+// Parse X: lines from the p_class file
595 static enum parser_error parse_c_x(struct parser *p) {
596        struct player_class *c = parser_priv(p);
597 
598@@ -2091,6 +2166,7 @@ static enum parser_error parse_c_x(struct parser *p) {
599        return PARSE_ERROR_NONE;
600 }
601 
602+// Parse I: lines from the p_class file
603 static enum parser_error parse_c_i(struct parser *p) {
604        struct player_class *c = parser_priv(p);
605 
606@@ -2103,6 +2179,7 @@ static enum parser_error parse_c_i(struct parser *p) {
607        return PARSE_ERROR_NONE;
608 }
609 
610+// Parse A: lines from the p_class file
611 static enum parser_error parse_c_a(struct parser *p) {
612        struct player_class *c = parser_priv(p);
613 
614@@ -2114,6 +2191,7 @@ static enum parser_error parse_c_a(struct parser *p) {
615        return PARSE_ERROR_NONE;
616 }
617 
618+// Parse M: lines from the p_class file
619 static enum parser_error parse_c_m(struct parser *p) {
620        struct player_class *c = parser_priv(p);
621 
622@@ -2126,6 +2204,7 @@ static enum parser_error parse_c_m(struct parser *p) {
623        return PARSE_ERROR_NONE;
624 }
625 
626+// Parse B: lines from the p_class file
627 static enum parser_error parse_c_b(struct parser *p) {
628        struct player_class *c = parser_priv(p);
629        unsigned int spell;
630@@ -2142,6 +2221,7 @@ static enum parser_error parse_c_b(struct parser *p) {
631        return PARSE_ERROR_NONE;
632 }
633 
634+// Parse T: lines from the p_class file
635 static enum parser_error parse_c_t(struct parser *p) {
636        struct player_class *c = parser_priv(p);
637        int i;
638@@ -2160,6 +2240,7 @@ static enum parser_error parse_c_t(struct parser *p) {
639        return PARSE_ERROR_NONE;
640 }
641 
642+// Parse E: lines from the p_class file
643 static enum parser_error parse_c_e(struct parser *p) {
644        struct player_class *c = parser_priv(p);
645        struct start_item *si;
646@@ -2192,6 +2273,7 @@ static enum parser_error parse_c_e(struct parser *p) {
647        return PARSE_ERROR_NONE;
648 }
649 
650+// Parse F: lines from the p_class file
651 static enum parser_error parse_c_f(struct parser *p) {
652        struct player_class *c = parser_priv(p);
653        char *flags;
654@@ -2249,6 +2331,7 @@ struct file_parser c_parser = {
655 };
656 
657 /* Parsing functions for vault.txt */
658+// Parse N: lines from the vault file
659 static enum parser_error parse_v_n(struct parser *p) {
660        struct vault *h = parser_priv(p);
661        struct vault *v = mem_zalloc(sizeof *v);
662@@ -2260,6 +2343,7 @@ static enum parser_error parse_v_n(struct parser *p) {
663        return PARSE_ERROR_NONE;
664 }
665 
666+// Parse X: lines from the vault file
667 static enum parser_error parse_v_x(struct parser *p) {
668        struct vault *v = parser_priv(p);
669 
670@@ -2279,6 +2363,7 @@ static enum parser_error parse_v_x(struct parser *p) {
671        return PARSE_ERROR_NONE;
672 }
673 
674+// Parse D: lines from the vault file
675 static enum parser_error parse_v_d(struct parser *p) {
676        struct vault *v = parser_priv(p);
677 
678@@ -2316,6 +2401,7 @@ struct file_parser v_parser = {
679 };
680 
681 /* Parsing functions for p_hist.txt */
682+// Parse N: lines from the p_hist file
683 static enum parser_error parse_h_n(struct parser *p) {
684        struct history_chart *oc = parser_priv(p);
685        struct history_chart *c;
686@@ -2338,6 +2424,7 @@ static enum parser_error parse_h_n(struct parser *p) {
687        return PARSE_ERROR_NONE;
688 }
689 
690+// Parse D: lines from the p_hist file
691 static enum parser_error parse_h_d(struct parser *p) {
692        struct history_chart *h = parser_priv(p);
693 
694@@ -2477,6 +2564,7 @@ struct file_parser flavor_parser = {
695 };
696 
697 /* Parsing functions for spell.txt */
698+// Parse N: lines from the spell file
699 static enum parser_error parse_s_n(struct parser *p) {
700        struct spell *s = mem_zalloc(sizeof *s);
701        s->next = parser_priv(p);
702@@ -2486,6 +2574,7 @@ static enum parser_error parse_s_n(struct parser *p) {
703        return PARSE_ERROR_NONE;
704 }
705 
706+// Parse I: lines from the spell file
707 static enum parser_error parse_s_i(struct parser *p) {
708        struct spell *s = parser_priv(p);
709 
710@@ -2502,6 +2591,7 @@ static enum parser_error parse_s_i(struct parser *p) {
711        return PARSE_ERROR_NONE;
712 }
713 
714+// Parse D: lines from the spell file
715 static enum parser_error parse_s_d(struct parser *p) {
716        struct spell *s = parser_priv(p);
717 
718@@ -2595,6 +2685,7 @@ static struct file_parser hints_parser = {
719 };
720 
721 /* Initialise monster pain messages */
722+// Parse N: lines from the pain file
723 static enum parser_error parse_mp_n(struct parser *p) {
724        struct monster_pain *h = parser_priv(p);
725        struct monster_pain *mp = mem_zalloc(sizeof *mp);
726@@ -2604,6 +2695,7 @@ static enum parser_error parse_mp_n(struct parser *p) {
727        return PARSE_ERROR_NONE;
728 }
729 
730+// Parse M: lines from the pain file
731 static enum parser_error parse_mp_m(struct parser *p) {
732        struct monster_pain *mp = parser_priv(p);
733        int i;