mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
* Clang 16 (and likely GCC 14) will enforce strict C99 semantics and break old K&R C declarations and require correct C89 function prototypes. Bug: https://bugs.gentoo.org/870952 Clang: https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/9
40 lines
677 B
C
40 lines
677 B
C
/* markdown: a C implementation of John Gruber's Markdown markup language.
|
|
*
|
|
* Copyright (C) 2007 David L Parsons.
|
|
* The redistribution terms are provided in the COPYRIGHT file that must
|
|
* be distributed with this source code.
|
|
*/
|
|
#include "config.h"
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <ctype.h>
|
|
|
|
#include "cstring.h"
|
|
#include "markdown.h"
|
|
#include "amalloc.h"
|
|
#include "tags.h"
|
|
|
|
static int need_to_initrng = 1;
|
|
|
|
void
|
|
mkd_initialize(void)
|
|
{
|
|
|
|
if ( need_to_initrng ) {
|
|
need_to_initrng = 0;
|
|
INITRNG(time(0));
|
|
}
|
|
}
|
|
|
|
|
|
void DESTRUCTOR
|
|
mkd_shlib_destructor(void)
|
|
{
|
|
mkd_deallocate_tags();
|
|
}
|
|
|