chiark / gitweb /
cleanup: All the whitespace fixes, all at once.
[mLib] / url.h
diff --git a/url.h b/url.h
index 55e443dacb11b3513a2ac60d695d83ce6b7d2818..e0906ceb8fa84c58197f83a04e9be69a56140636 100644 (file)
--- a/url.h
+++ b/url.h
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: url.h,v 1.2 1999/12/10 23:42:04 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
  *
  * (c) 1999 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: url.h,v $
- * 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
 
@@ -57,14 +46,17 @@ typedef struct url_ectx {
   unsigned f;
 } url_ectx;
 
-enum {
-  URLF_SEP = 1
-};
 
 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@ --- *