Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use RB_GENERATE_STATIC, not RB_GENERATE_INTERNAL.

  • Loading branch information...
bnoordhuis committed Mar 16, 2012
1 parent aff94a0 commit 87151c8a7becf95c8ffd228ec2bf5eccaf355026
Showing with 2 additions and 8 deletions.
  1. +1 −2 src/unix/linux/inotify.c
  2. +1 −6 src/uv-common.c
@@ -132,8 +132,7 @@ static int compare_watchers(const uv_fs_event_t* a, const uv_fs_event_t* b) {
}


RB_GENERATE_INTERNAL(uv__inotify_watchers, uv_fs_event_s, node, compare_watchers,
inline static __attribute__((unused)))
RB_GENERATE_STATIC(uv__inotify_watchers, uv_fs_event_s, node, compare_watchers)


void uv__inotify_loop_init(uv_loop_t* loop) {
@@ -32,10 +32,6 @@
#include "ares/inet_net_pton.h"
#include "ares/inet_ntop.h"

#if !defined(__GNUC__) && !defined(__clang__)
# define __attribute__(x)
#endif


size_t uv_strlcpy(char* dst, const char* src, size_t size) {
size_t n;
@@ -191,8 +187,7 @@ static int cmp_ares_tasks(const uv_ares_task_t* a, const uv_ares_task_t* b) {
}


RB_GENERATE_INTERNAL(uv__ares_tasks, uv_ares_task_s, node, cmp_ares_tasks,
inline static __attribute__((unused)))
RB_GENERATE_STATIC(uv__ares_tasks, uv_ares_task_s, node, cmp_ares_tasks)


/* add ares handle to list */

0 comments on commit 87151c8

Please sign in to comment.
You can’t perform that action at this time.