diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-10-13 19:35:08 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-10-13 19:35:08 -0400 |
| commit | 981217b98220f7dc94c70fd6f4b7078ecca6020b (patch) | |
| tree | 6666e524a43889fa8175ee8d99fab7243249b2e4 /ctemplates.h | |
| parent | 864448e37769c96ba3db365de2680e2cff4fe023 (diff) | |
| download | libctemplates-981217b98220f7dc94c70fd6f4b7078ecca6020b.tar.gz libctemplates-981217b98220f7dc94c70fd6f4b7078ecca6020b.tar.bz2 libctemplates-981217b98220f7dc94c70fd6f4b7078ecca6020b.zip | |
Allowed spaces to be used in attributes
* Added an is_whitespace() function
* <TMPL_VAR ...> may have whitespace between
* name = "..."
* default = "..."
* <TMPL_IF ...> may have whitespace between
* name = "..."
* value = "..."
* <TMPL_ELSEIF ...> may have whitespace between
* name = "..."
* value = "..."
Diffstat (limited to 'ctemplates.h')
| -rw-r--r-- | ctemplates.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ctemplates.h b/ctemplates.h index 4744d14..d1b6bba 100644 --- a/ctemplates.h +++ b/ctemplates.h @@ -32,9 +32,9 @@ typedef struct TMPL_fmtlists TMPL_fmtlists; #define TAG_CONTINUE_TEXT "TMPL_CONTINUE" #define TAG_END_TEXT "TMPL_END" -#define ATTRIBUTE_VARNAME "name=\"" -#define ATTRIBUTE_DEFAULT "default=\"" -#define ATTRIBUTE_VALUE "value=\"" +#define ATTRIBUTE_VARNAME "name" +#define ATTRIBUTE_DEFAULT "default" +#define ATTRIBUTE_VALUE "value" #define ERRBUF_HINTLEN 50 @@ -175,8 +175,8 @@ struct TMPL_token{ enum TMPL_tagtype type;//The type of token size_t length;//Length of token, should always be end-start struct TMPL_token* next;//The next token - unsigned int line; - unsigned int character; + unsigned int line;// Not used currently + unsigned int character;// Not used currently }TMPL_token; void TMPL_add_var_to_varlist(struct TMPL_varlist* vl, char* name, char* value); |
