Unnamed Fossil Project

Check-in [1e5b57e115]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add missing headers and missing declarations
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1e5b57e1150a7ed53614e753d0b45defd92e0c7c
User & Date: labla 2012-05-17 19:09:23
Context
2012-05-17
19:11
import missing functions from illumos check-in: 48f7346e40 user: labla tags: trunk
19:09
add missing headers and missing declarations check-in: 1e5b57e115 user: labla tags: trunk
18:24
import nawk from illumos(1) check-in: c3966df31c user: labla tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to awk.h.

43
44
45
46
47
48
49



50

51
52
53
54
55
56
57
#include <limits.h>
#include <stdlib.h>
#include <regex.h>
#include <errno.h>
#include <sys/types.h>
#include <locale.h>
#include <wchar.h>



#include <widec.h>


#define	YYMAXDEPTH	300	/* Max # of productions (used by yacc) */
#define	YYSSIZE		300	/* Size of State/Value stacks (MKS YACC) */
#define	MAXDIGINT	19	/* Number of digits in an INT */
#define	FNULL		((FILE *)0)
#define	NNULL		((NODE *)0)
#define	SNULL		((STRING)0)







>
>
>
|
>







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <limits.h>
#include <stdlib.h>
#include <regex.h>
#include <errno.h>
#include <sys/types.h>
#include <locale.h>
#include <wchar.h>
#include "compat.h"

#include <libintl.h>
#include <wctype.h>
#include <unistd.h>

#define	YYMAXDEPTH	300	/* Max # of productions (used by yacc) */
#define	YYSSIZE		300	/* Size of State/Value stacks (MKS YACC) */
#define	MAXDIGINT	19	/* Number of digits in an INT */
#define	FNULL		((FILE *)0)
#define	NNULL		((NODE *)0)
#define	SNULL		((STRING)0)

Added compat.h.



























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
/*
 * POSIX Extensions
 */
typedef unsigned char   uchar_t;
typedef unsigned short  ushort_t;
typedef unsigned int    uint_t;

struct qelem {
        struct qelem    *q_forw;
        struct qelem    *q_back;
};

extern size_t
wcslen(const wchar_t *s);

extern size_t
wslen(const wchar_t *s);

extern wchar_t *
wcsdup(const wchar_t *s1);

extern wchar_t *
wsdup(const wchar_t *s1);

extern int
wsprintf(wchar_t *wstring, const char *format, ...);

#define REG_OK          0               /* success (non-standard) */
#define REG_EFATAL      16              /* internal error, not POSIX.2 */