| 1 | /* markdown: a C implementation of John Gruber's Markdown markup language. |
| 2 | * |
| 3 | * Copyright (C) 2007 David L Parsons. |
| 4 | * The redistribution terms are provided in the COPYRIGHT file that must |
| 5 | * be distributed with this source code. |
| 6 | */ |
| 7 | #include "config.h" |
| 8 | |
| 9 | #include <stdio.h> |
| 10 | #include <string.h> |
| 11 | #include <stdarg.h> |
| 12 | #include <stdlib.h> |
| 13 | #include <time.h> |
| 14 | #include <ctype.h> |
| 15 | |
| 16 | #include "cstring.h" |
| 17 | #include "markdown.h" |
| 18 | #include "amalloc.h" |
| 19 | #include "tags.h" |
| 20 | |
| 21 | static int need_to_initrng = 1; |
| 22 | |
| 23 | void |
| 24 | mkd_initialize() |
| 25 | { |
| 26 | |
| 27 | if ( need_to_initrng ) { |
| 28 | need_to_initrng = 0; |
| 29 | INITRNG(time(0)); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | |
| 34 | void DESTRUCTOR |
| 35 | mkd_shlib_destructor() |
| 36 | { |
| 37 | mkd_deallocate_tags(); |
| 38 | } |
| 39 |