-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpconnect-phptparser.h
47 lines (41 loc) · 1.26 KB
/
pconnect-phptparser.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
+----------------------------------------------------------------------+
| Copyright (c) 2009-2015, Johannes Schlüter <johannes@schlueters.de> |
| All rights reserved. |
+----------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the conditions which are |
| bundled with this package in the file LICENSE. |
| This product includes PHP software, freely available from |
| <http://www.php.net/software/> |
+----------------------------------------------------------------------+
*/
#ifndef PCONNECT_PHPTPARSER_H
#define PCONNECT_PHPTPARSER_H
typedef struct {
char *begin;
char *end;
} phpt_section;
enum expect_type {
EXPECT,
EXPECTF,
EXPECTREGEX
};
struct phpt {
phpt_section test;
phpt_section ini;
phpt_section file;
phpt_section xfail;
enum expect_type type;
phpt_section expect;
};
void parse_phpt(struct phpt *phpt, char *buffer, char *end);
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: ft=c noet sw=4 ts=4 fdm=marker
* vim<600: ft=c noet sw=4 ts=4
*/