Source:Vis tab.c (long form)

Below is the full text to src/vis_tab.c from NetHack 3.4.3, as generated when the VISION_TABLES symbol is enabled at compile time. To link to a particular line, write [[vis_tab.c (long form)#line123 ]], for example.

/* This source file is generated by 'makedefs'. Do not edit. */

A clean distribution of NetHack does not include this file. It is generated at compile time.

close2d close_table[CLOSE_MAX_SB_DY] = { /* DY = 1 (- 1)*/ , /* DY =  2 (- 1)*/ , /* DY =  3 (- 1)*/ , /* DY =  4 (- 1)*/ , /* DY =  5 (- 1)*/ , /* DY =  6 (- 1)*/ , /* DY =  7 (- 1)*/ , /* DY =  8 (- 1)*/ , /* DY =  9 (- 1)*/ , /* DY = 10 (- 1)*/ , /* DY = 11 (- 1)*/ , /* DY = 12 (- 1)*/ , /* DY = 13 (- 1)*/ , /* DY = 14 (- 1)*/ , /* DY = 15 (- 1)*/ , /* DY = 16 (- 1)*/ , /* DY = 17 (- 1)*/ , /* DY = 18 (- 1)*/ , /* DY = 19 (- 1)*/ , /* DY = 20 (- 1)*/ , }; /* close_table[] */ far2d far_table[FAR_MAX_SB_DY] = { /* DY = 0 */ , /* DY =  1 */ , /* DY =  2 */ , /* DY =  3 */ , /* DY =  4 */ , /* DY =  5 */ , /* DY =  6 */ , /* DY =  7 */ , /* DY =  8 */ , /* DY =  9 */ , /* DY = 10 */ , /* DY = 11 */ , /* DY = 12 */ , /* DY = 13 */ , /* DY = 14 */ , /* DY = 15 */ , /* DY = 16 */ , /* DY = 17 */ , /* DY = 18 */ , /* DY = 19 */ , /* DY = 20 */ , }; /* far_table[] */ void vis_tab_init { return; } /*vis_tab.c*/
 * 1) include "config.h"
 * 2) ifdef VISION_TABLES
 * 3) include "vis_tab.h"
 * 1) ifndef FAR_TABLE_ONLY
 * 1) endif /* !FAR_TABLE_ONLY */
 * 1) ifndef CLOSE_TABLE_ONLY
 * 1) endif /* !CLOSE_TABLE_ONLY */
 * 1) endif /* VISION_TABLES */

If the VISION_TABLES symbol is not defined at compile time, makedefs produces a shorter form of this file.