]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - para.h
Move para_tmpname() to file_write.c and make it static.
[paraslash.git] / para.h
diff --git a/para.h b/para.h
index 06eb8b30f617104051fb3260e5b17c261a04ec17..1dbffdf88222e0ae391f3f2ce49debb1f17ec223 100644 (file)
--- a/para.h
+++ b/para.h
@@ -224,7 +224,7 @@ __printf_2_3 void para_log(int, const char*, ...);
  *
  * \return An integer between zero and \p max - 1, inclusively.
  */
-static inline long int para_random(unsigned max)
+_static_inline_ long int para_random(unsigned max)
 {
        return ((max + 0.0) * (random() / (RAND_MAX + 1.0)));
 }
@@ -250,3 +250,8 @@ static inline long int para_random(unsigned max)
  * horribly for characters which have their most significant bit set.
  */
 #define para_isspace(c) isspace((int)(unsigned char)(c))
+
+/** Data that indicates an eof-condition for a fec-encoded stream. */
+#define FEC_EOF_PACKET "\xec\x0d\xcc\xfe\0\0\0\0" \
+       "\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0"
+#define FEC_EOF_PACKET_LEN 32