Fixing ACTION_MASK_ALL to be unsigned long rather than
[privoxy.git] / project.h
index 811cf22..890eecc 100644 (file)
--- a/project.h
+++ b/project.h
@@ -1,6 +1,6 @@
 #ifndef PROJECT_H_INCLUDED
 #define PROJECT_H_INCLUDED
-#define PROJECT_H_VERSION "$Id: project.h,v 1.67 2002/04/24 02:12:43 oes Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.69 2002/05/08 16:00:16 oes Exp $"
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/project.h,v $
  *
  * Revisions   :
  *    $Log: project.h,v $
+ *    Revision 1.69  2002/05/08 16:00:16  oes
+ *    Added size member to struct iob, so it can
+ *    be alloced larger than needed.
+ *
+ *    Revision 1.68  2002/04/26 12:56:00  oes
+ *    Killed REDIRECT_URL, added USER_MANUAL_URL and HELP_LINK_PREFIX
+ *
  *    Revision 1.67  2002/04/24 02:12:43  oes
  *     - Jon's multiple AF patch:
  *       - Make csp->actions_list an array
@@ -658,9 +665,10 @@ struct url_spec
 /* An I/O buffer */
 struct iob
 {
-   char *buf;
-   char *cur;
-   char *eod;
+   char *buf;    /* Start of buffer        */
+   char *cur;    /* Start of relevant data */
+   char *eod;    /* End of relevant data   */
+   size_t size;  /* Size as malloc()ed     */
 };
 
 
@@ -672,7 +680,7 @@ struct iob
 #define CT_GIF    2 /* Suitable for GIF filtering */
 #define CT_TABOO  4 /* DONT filter */
 
-#define ACTION_MASK_ALL        (~0U)
+#define ACTION_MASK_ALL        (~0UL)
 
 #define ACTION_MOST_COMPATIBLE 0x00000000UL