X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/0f2a884637b405e8cdf04801a1e904edeaab1dd5..e7d93da8951557085bf18daac69e7b226203988e:/url.h diff --git a/url.h b/url.h index 3ccc49a..90b649a 100644 --- a/url.h +++ b/url.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: url.h,v 1.1 1999/06/01 09:49:48 mdw Exp $ + * $Id: url.h,v 1.3 2001/01/20 12:06:01 mdw Exp $ * * Parsing and construction of url-encoded name/value pairs * @@ -30,13 +30,19 @@ /*----- 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 URL_H -#define URL_H +#ifndef MLIB_URL_H +#define MLIB_URL_H #ifdef __cplusplus extern "C" { @@ -44,7 +50,7 @@ /*----- Header files ------------------------------------------------------*/ -#ifndef DSTR_H +#ifndef MLIB_DSTR_H # include "dstr.h" #endif @@ -54,9 +60,7 @@ typedef struct url_ectx { unsigned f; } url_ectx; -enum { - URLF_SEP = 1 -}; +#define URLF_SEP 1u typedef struct url_dctx { const char *p;