about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-15 01:18:40 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-15 01:18:40 -0700
commit8ddead3eca7ca752379613220c946223c7695752 (patch)
treed6efe41db518ed03d7a4d5cc6752474f278cc6ff /ext
parent7ad9fd8b217eedd7cab2dc9e1dd5475244d16957 (diff)
downloadunicorn-8ddead3eca7ca752379613220c946223c7695752.tar.gz
Sometimes I end up hacking on 10-row high terminals
and need more context :x
Diffstat (limited to 'ext')
-rw-r--r--ext/unicorn_http/c_util.h2
-rw-r--r--ext/unicorn_http/ext_help.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/unicorn_http/c_util.h b/ext/unicorn_http/c_util.h
index 0ab9b31..9e674fa 100644
--- a/ext/unicorn_http/c_util.h
+++ b/ext/unicorn_http/c_util.h
@@ -27,7 +27,7 @@
 #  endif
 #else
 #  error off_t size unknown for this platform!
-#endif
+#endif /* SIZEOF_OFF_T check */
 
 /*
  * capitalizes all lower-case ASCII characters and converts dashes
diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h
index bd29cc7..81bb936 100644
--- a/ext/unicorn_http/ext_help.h
+++ b/ext/unicorn_http/ext_help.h
@@ -3,10 +3,10 @@
 
 #ifndef RSTRING_PTR
 #define RSTRING_PTR(s) (RSTRING(s)->ptr)
-#endif
+#endif /* !defined(RSTRING_PTR) */
 #ifndef RSTRING_LEN
 #define RSTRING_LEN(s) (RSTRING(s)->len)
-#endif
+#endif /* !defined(RSTRING_LEN) */
 
 #ifndef RUBINIUS
 #  define rb_str_update(x) do {} while (0)
@@ -22,14 +22,14 @@ static void rb_18_str_set_len(VALUE str, long len)
   rb_str_flush(str);
 }
 #  define rb_str_set_len(str,len) rb_18_str_set_len(str,len)
-#endif
+#endif /* !defined(HAVE_RB_STR_SET_LEN) */
 
 /* not all Ruby implementations support frozen objects (Rubinius does not) */
 #if defined(OBJ_FROZEN)
 #  define assert_frozen(f) assert(OBJ_FROZEN(f) && "unfrozen object")
 #else
 #  define assert_frozen(f) do {} while (0)
-#endif
+#endif /* !defined(OBJ_FROZEN) */
 
 #if !defined(OFFT2NUM)
 #  if SIZEOF_OFF_T == SIZEOF_LONG
@@ -41,7 +41,7 @@ static void rb_18_str_set_len(VALUE str, long len)
 
 #ifndef HAVE_RB_STR_MODIFY
 #  define rb_str_modify(x) do {} while (0)
-#endif
+#endif /* ! defined(HAVE_RB_STR_MODIFY) */
 
 static inline int str_cstr_eq(VALUE val, const char *ptr, size_t len)
 {
@@ -70,4 +70,4 @@ static int str_cstr_case_eq(VALUE val, const char *ptr, size_t len)
 #define STR_CSTR_CASE_EQ(val, const_str) \
   str_cstr_case_eq(val, const_str, sizeof(const_str) - 1)
 
-#endif
+#endif /* ext_help_h */