genmap.c (6646b95aab5f62c049f1416a3801dec5432c348b) genmap.c (6a5c94d92699b7f12f5dae32fa889d196bda3a80)
1// SPDX-License-Identifier: GPL-2.0+
2/* genmap.c
3 * originally written by: Kirk Reiser.
4 *
5 ** Copyright (C) 2002 Kirk Reiser.
6 * Copyright (C) 2003 David Borowski.
7 */
8

--- 56 unchanged lines hidden (view full) ---

65 if (argc < 2) {
66 fputs("usage: genmap filename\n", stderr);
67 exit(1);
68 }
69
70 for (p_init = init_key_data; p_init->name[0] != '.'; p_init++)
71 add_key(p_init->name, p_init->value, p_init->shift);
72
1// SPDX-License-Identifier: GPL-2.0+
2/* genmap.c
3 * originally written by: Kirk Reiser.
4 *
5 ** Copyright (C) 2002 Kirk Reiser.
6 * Copyright (C) 2003 David Borowski.
7 */
8

--- 56 unchanged lines hidden (view full) ---

65 if (argc < 2) {
66 fputs("usage: genmap filename\n", stderr);
67 exit(1);
68 }
69
70 for (p_init = init_key_data; p_init->name[0] != '.'; p_init++)
71 add_key(p_init->name, p_init->value, p_init->shift);
72
73 open_input(".", argv[1]);
73 open_input(NULL, argv[1]);
74 while (fgets(buffer, sizeof(buffer), infile)) {
75 lc++;
76 value = shift_state = 0;
77
78 cp = strtok(buffer, delims);
79 if (*cp == '#')
80 continue;
81

--- 81 unchanged lines hidden ---
74 while (fgets(buffer, sizeof(buffer), infile)) {
75 lc++;
76 value = shift_state = 0;
77
78 cp = strtok(buffer, delims);
79 if (*cp == '#')
80 continue;
81

--- 81 unchanged lines hidden ---