File: exports.c

package info (click to toggle)
gnuboy 1.0.3-7.1
  • links: PTS
  • area: contrib
  • in suites: bullseye, buster
  • size: 1,056 kB
  • sloc: ansic: 12,467; asm: 2,641; cpp: 190; sh: 152; makefile: 140
file content (43 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43


#include <stdlib.h>

#include "rc.h"

extern rcvar_t rcfile_exports[], emu_exports[], loader_exports[],
	lcd_exports[], rtc_exports[], debug_exports[], sound_exports[],
	vid_exports[], joy_exports[], pcm_exports[];


rcvar_t *sources[] =
{
	rcfile_exports,
	emu_exports,
	loader_exports,
	lcd_exports,
	rtc_exports,
	debug_exports,
	sound_exports,
	vid_exports,
	joy_exports,
	pcm_exports,
	NULL
};


void init_exports()
{
	rcvar_t **s = sources;
	
	while (*s)
		rc_exportvars(*(s++));
}


void show_exports()
{
	int i, j;
	for (i = 0; sources[i]; i++)
		for (j = 0; sources[i][j].name; j++)
			printf("%s\n", sources[i][j].name);
}