Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7532d850
Commit
7532d850
authored
Aug 14, 2012
by
Pieter Noordhuis
Browse files
Order of includes is not something to care about
parent
16ea0909
Changes
13
Hide whitespace changes
Inline
Side-by-side
src/address.c
View file @
7532d850
#include <string.h>
#include <assert.h>
#include <arpa/inet.h>
#include <assert.h>
#include <string.h>
#include "address.h"
redis_address
redis_address_from_in
(
struct
sockaddr_in
sa
)
{
...
...
src/address.h
View file @
7532d850
#ifndef _HIREDIS_ADDRESS_H
#define _HIREDIS_ADDRESS_H 1
/* struct sockaddr_(in|in6|un) */
#include <netinet/in.h>
#include <sys/un.h>
...
...
src/context.c
View file @
7532d850
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
/* local */
#include "context.h"
#include "format.h"
#include "object.h"
...
...
src/context.h
View file @
7532d850
...
...
@@ -3,7 +3,6 @@
#include <stdarg.h>
/* local */
#include "handle.h"
typedef
struct
redis_context_s
redis_context
;
...
...
src/fd.c
View file @
7532d850
#include "fmacros.h"
/* misc */
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
/* socket/connect/(get|set)sockopt*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
/* TCP_* constants */
/* fcntl */
#include <unistd.h>
#include <fcntl.h>
/* getaddrinfo */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include "fd.h"
...
...
src/fd.h
View file @
7532d850
#ifndef _HIREDIS_FD_H
#define _HIREDIS_FD_H 1
#include "common.h"
#include "address.h"
#include "common.h"
int
redis_fd_error
(
int
fd
);
int
redis_fd_read
(
int
fildes
,
void
*
buf
,
size_t
nbyte
);
...
...
src/format.c
View file @
7532d850
#include "fmacros.h"
/* misc */
#include <
stdlib
.h>
#include <assert.h>
#include <
ctype
.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
/* local */
#include "format.h"
#include "sds.h"
...
...
src/handle.c
View file @
7532d850
#include "fmacros.h"
/* misc */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
/* poll */
#include <errno.h>
#include <poll.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/* local */
#include "handle.h"
#include "fd.h"
#include "handle.h"
#include "sds.h"
#define REDIS__READABLE 1
...
...
src/handle.h
View file @
7532d850
#ifndef _HIREDIS_HANDLE_H
#define _HIREDIS_HANDLE_H 1
/* struct timeval */
#include <sys/time.h>
/* local */
#include "address.h"
#include "common.h"
#include "parser.h"
#include "address.h"
typedef
struct
redis_handle_s
redis_handle
;
...
...
src/object.c
View file @
7532d850
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "object.h"
void
redis_object_free
(
redis_object
**
ptr
)
{
...
...
src/parser.c
View file @
7532d850
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include "parser.h"
#define ERRNO(code) RPE_##code
...
...
src/request.c
View file @
7532d850
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "handle.h"
/* return values */
#include "handle.h"
#include "object.h"
#include "request.h"
#include "object.h"
/* default parser callbacks */
int
redis_request_init
(
redis_request
*
self
)
{
memset
(
self
,
0
,
sizeof
(
*
self
));
...
...
src/request.h
View file @
7532d850
#ifndef _HIREDIS_REQUEST_H
#define _HIREDIS_REQUEST_H 1
#include <stddef.h>
/* offsetof */
#include <stddef.h>
#include "ngx-queue.h"
#include "parser.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment