File: builtin.h

package info (click to toggle)
jupp 3.1.41-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,584 kB
  • sloc: ansic: 31,797; sh: 4,304; makefile: 489; pascal: 66
file content (21 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef JUPP_BUILTIN_H
#define JUPP_BUILTIN_H

#ifdef EXTERN_RC_C
__IDSTRING(rcsid_builtin_h, "$MirOS: contrib/code/jupp/builtin.h,v 1.7 2020/03/27 06:38:55 tg Exp $");
#endif

/* Support for built-in config files */

typedef struct jfile {
	FILE *f;		/* Regular file, or NULL for built-in */
	const unsigned char *p;	/* Built-in file pointer */
} JFILE;

JFILE *jfopen(const unsigned char *name, const char *mode);
unsigned char *jfgets(unsigned char *buf,int len,JFILE *f);
int jfclose(JFILE *f);

extern const unsigned char * const builtins[];

#endif