File: export.h

package info (click to toggle)
html-xml-utils 7.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,488 kB
  • sloc: ansic: 11,213; sh: 7,996; lex: 243; makefile: 193; yacc: 125
file content (30 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (6)
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
/*
 * export.h -- header file for programs that use cexport
 *
 * Copyright  1994-2000 World Wide Web Consortium
 * See http://www.w3.org/Consortium/Legal/copyright-software
 *
 *
 * Functions, type definitions, variable declarations can all be
 * exported by putting EXPORT (uppercase only) in front of the
 * declaration. The declarations must be ANSI-C. Macros can be
 * exported with EXPORTDEF. Examples:
 *
 * EXPORT int sqr(int n) {...}		-- exports function sqr()
 * EXPORT typedef struct _Str * MyStr;	-- exports type MyStr
 * EXPORT int maximum;			-- exports variable maximum
 * #define max(a,b) ((a)>(b)?(a):(b))
 * EXPORTDEF(max(a,b))			-- exports macro max(a,b)
 */
#ifndef _EXPORT_H_
#define _EXPORT_H_

#ifndef __export
#define EXPORT /* nothing */
#define EXPORTDEF(x) /* nothing */
#else
//#define EXPORTDEF(x) EXPORTDEF_##x x
#define EXPORTDEF(x) EXPORTDEF #x x
#endif

#endif /* _EXPORT_H_ */