htmllex.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /// @file
  2. /// @ingroup common_utils
  3. /*************************************************************************
  4. * Copyright (c) 2011 AT&T Intellectual Property
  5. * All rights reserved. This program and the accompanying materials
  6. * are made available under the terms of the Eclipse Public License v1.0
  7. * which accompanies this distribution, and is available at
  8. * https://www.eclipse.org/legal/epl-v10.html
  9. *
  10. * Contributors: Details at https://graphviz.org
  11. *************************************************************************/
  12. #pragma once
  13. #include <util/agxbuf.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. union HTMLSTYPE;
  18. typedef struct htmlparserstate_s htmlparserstate_t;
  19. typedef struct htmlscan_s htmlscan_t;
  20. extern int initHTMLlexer(htmlscan_t *, char *, agxbuf *, htmlenv_t *);
  21. extern int htmllex(union HTMLSTYPE *, htmlscan_t *);
  22. extern unsigned long htmllineno(htmlscan_t *);
  23. extern int clearHTMLlexer(htmlscan_t *);
  24. void htmlerror(htmlscan_t *, const char *);
  25. #ifdef __cplusplus
  26. }
  27. #endif