chiark / gitweb /
str: New str_matchx function optionally reports possible prefix.
[mLib] / url.h
diff --git a/url.h b/url.h
index 90b649a745ecaf15c875dcb9594a98aa416b70f9..6f82d122b9713ede224de76ceb4de56ed8b750fe 100644 (file)
--- a/url.h
+++ b/url.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: url.h,v 1.3 2001/01/20 12:06:01 mdw Exp $
+ * $Id: url.h,v 1.4 2004/04/08 01:36:13 mdw Exp $
  *
  * Parsing and construction of url-encoded name/value pairs
  *
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: url.h,v $
- * Revision 1.3  2001/01/20 12:06:01  mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.2  1999/12/10 23:42:04  mdw
- * Change header file guard names.
- *
- * Revision 1.1  1999/06/01 09:49:48  mdw
- * New files for url-encoding and decoding.
- *
- */
-
 #ifndef MLIB_URL_H
 #define MLIB_URL_H
 
@@ -60,12 +46,17 @@ typedef struct url_ectx {
   unsigned f;
 } url_ectx;
 
-#define URLF_SEP 1u
 
 typedef struct url_dctx {
   const char *p;
+  unsigned f;
 } url_dctx;
 
+#define URLF_SEP 1u
+#define URLF_STRICT 2u
+#define URLF_LAX 4u
+#define URLF_SEMI 8u
+
 /*----- Functions provided ------------------------------------------------*/
 
 /* --- @url_initenc@ --- *