"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mktags.c" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

mktags.c  (discount-2.2.4.tar.bz2):mktags.c  (discount-2.2.6.tar.bz2)
/* block-level tags for passing html blocks through the blender /* block-level tags for passing html blocks through the blender
*/ */
#include <stdio.h> #include <stdio.h>
#define __WITHOUT_AMALLOC 1 #define __WITHOUT_AMALLOC 1
#include "cstring.h"
#include "config.h" #include "config.h"
#include "cstring.h"
#include "tags.h" #include "tags.h"
STRING(struct kw) blocktags; STRING(struct kw) blocktags;
/* define a html block tag /* define a html block tag
*/ */
static void static void
define_one_tag(char *id, int selfclose) define_one_tag(char *id, int selfclose)
{ {
struct kw *p = &EXPAND(blocktags); struct kw *p = &EXPAND(blocktags);
skipping to change at line 41 skipping to change at line 41
return strncasecmp(a->id, b->id, b->size); return strncasecmp(a->id, b->id, b->size);
} }
/* stupid cast to make gcc shut up about the function types being /* stupid cast to make gcc shut up about the function types being
* passed into qsort() and bsearch() * passed into qsort() and bsearch()
*/ */
typedef int (*stfu)(const void*,const void*); typedef int (*stfu)(const void*,const void*);
/* load in the standard collection of html tags that markdown supports /* load in the standard collection of html tags that markdown supports
*/ */
int
main() main()
{ {
int i; int i;
#define KW(x) define_one_tag(x, 0) #define KW(x) define_one_tag(x, 0)
#define SC(x) define_one_tag(x, 1) #define SC(x) define_one_tag(x, 1)
KW("STYLE"); KW("STYLE");
KW("SCRIPT"); KW("SCRIPT");
KW("ADDRESS"); KW("ADDRESS");
 End of changes. 3 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)