src/c2html.h

changeset 24
e43dee5892f4
parent 22
f463693b5eeb
child 35
abaf2489c549
equal deleted inserted replaced
23:f44a185b678b 24:e43dee5892f4
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2014 Mike Becker. All rights reserved. 4 * Copyright 2015 Mike Becker. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
45 #endif 45 #endif
46 46
47 47
48 #define INPUTBUF_SIZE 2048 48 #define INPUTBUF_SIZE 2048
49 49
50 #define C2HTML_C 0
51 #define C2HTML_JAVA 1
52
50 typedef struct { 53 typedef struct {
51 char* outfilename; 54 char* outfilename;
52 char* headerfile; 55 char* headerfile;
53 char* footerfile; 56 char* footerfile;
54 char* infilename; 57 char* infilename;
55 int highlight; 58 int highlight;
59 int showlinenumbers;
56 } settings_t; 60 } settings_t;
57 61
58 typedef struct { 62 typedef struct {
59 size_t count; 63 size_t count;
60 size_t capacity; 64 size_t capacity;
61 size_t maxlinewidth; 65 size_t maxlinewidth;
62 char** lines; 66 char** lines;
63 } inputfile_t; 67 } inputfile_t;
64 68
69 typedef size_t(*fmt_write_func)(const void*, size_t, size_t, void*);
65 70
66 #ifdef __cplusplus 71 #ifdef __cplusplus
67 } 72 }
68 #endif 73 #endif
69 74

mercurial