-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdebug.c
More file actions
33 lines (31 loc) · 797 Bytes
/
Copy pathdebug.c
File metadata and controls
33 lines (31 loc) · 797 Bytes
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
#include "h/config.h"
#include "h/minicrawler.h"
const char *mcrawler_state_to_s(const enum mcrawler_url_s x) {
switch (x) {
case MCURL_S_JUSTBORN:
return "MCURL_S_JUSTBORN";
case MCURL_S_PARSEDURL:
return "MCURL_S_PARSEDURL";
case MCURL_S_INDNS:
return "MCURL_S_INDNS";
case MCURL_S_GOTIP:
return "MCURL_S_GOTIP";
case MCURL_S_CONNECT:
return "MCURL_S_CONNECT";
case MCURL_S_HANDSHAKE:
return "MCURL_S_HANDSHAKE";
case MCURL_S_GENREQUEST:
return "MCURL_S_GENREQUEST";
case MCURL_S_SENDREQUEST:
return "MCURL_S_SENDREQUEST";
case MCURL_S_RECVREPLY:
return "MCURL_S_RECVREPLY";
case MCURL_S_DOWNLOADED:
return "MCURL_S_DOWNLOADED";
case MCURL_S_ERROR:
return "MCURL_S_ERROR";
case MCURL_S_DONE:
return "MCURL_S_DONE";
}
return "";
}