Codebase list mdp-src / a478461
New upstream version 1.0.13 Lev Lamberov 5 years ago
19 changed file(s) with 22 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
00 #
11 # Makefile
2 # Copyright (C) 2016 Michael Goehler
2 # Copyright (C) 2018 Michael Goehler
33 #
44 # This file is part of mdp.
55 #
22
33 /*
44 * Macros to do bit operations on integer variables.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
22
33 /*
44 * Common macros.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
22
33 /*
44 * An implementation of a char stack in heap memory.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
22
33 /*
44 * An implementation of expandable c strings in heap memory.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
22
33 /*
44 * mdp -- A command-line based markdown presentation tool.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This program is free software: you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
2424
2525 #define MDP_VER_MAJOR 1
2626 #define MDP_VER_MINOR 0
27 #define MDP_VER_REVISION 12
27 #define MDP_VER_REVISION 13
2828
2929 #endif // !defined( MAIN_H )
22
33 /*
44 * An implementation of markdown objects.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
44 * Functions necessary to parse a file and transform its content into
55 * a deck of slides containing lines. All based on markdown formating
66 * rules.
7 * Copyright (C) 2016 Michael Goehler
7 * Copyright (C) 2018 Michael Goehler
88 *
99 * This file is part of mdp.
1010 *
22
33 /*
44 * An object to store all urls of a slide.
5 * Copyright (C) 2016 Michael Goehler
5 * Copyright (C) 2018 Michael Goehler
66 *
77 * This file is part of mdp.
88 *
44 * Functions necessary to display a deck of slides in different color modes
55 * using ncurses. Only white, red, and blue are supported, as they can be
66 * faded in 256 color mode.
7 * Copyright (C) 2016 Michael Goehler
7 * Copyright (C) 2018 Michael Goehler
88 *
99 * This file is part of mdp.
1010 *
162162 Written by Michael Goehler and others, see
163163 .IR https://github.com/visit1985/mdp/blob/master/AUTHORS "."
164164 .SH COPYRIGHT
165 Copyright (C) 2016 Michael Goehler
165 Copyright (C) 2018 Michael Goehler
166166 .PP
167167 This is free software; see the source for copying conditions. There is NO
168168 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00 #
11 # Makefile
2 # Copyright (C) 2016 Michael Goehler
2 # Copyright (C) 2018 Michael Goehler
33 #
44 # This file is part of mdp.
55 #
00 /*
11 * An implementation of a char stack in heap memory.
2 * Copyright (C) 2016 Michael Goehler
2 * Copyright (C) 2018 Michael Goehler
33 *
44 * This file is part of mdp.
55 *
00 /*
11 * An implementation of expandable c strings in heap memory.
2 * Copyright (C) 2016 Michael Goehler
2 * Copyright (C) 2018 Michael Goehler
33 *
44 * This file is part of mdp.
55 *
00 /*
11 * mdp -- A command-line based markdown presentation tool.
2 * Copyright (C) 2016 Michael Goehler
2 * Copyright (C) 2018 Michael Goehler
33 *
44 * This program is free software: you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
4444
4545 void version() {
4646 printf("mdp %d.%d.%d\n", MDP_VER_MAJOR, MDP_VER_MINOR, MDP_VER_REVISION);
47 printf("Copyright (C) 2016 Michael Goehler\n");
47 printf("Copyright (C) 2018 Michael Goehler\n");
4848 printf("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n");
4949 printf("This is free software: you are free to change and redistribute it.\n");
5050 printf("There is NO WARRANTY, to the extent permitted by law.\n");
00 /*
11 * An implementation of markdown objects.
2 * Copyright (C) 2016 Michael Goehler
2 * Copyright (C) 2018 Michael Goehler
33 *
44 * This file is part of mdp.
55 *
11 * Functions necessary to parse a file and transform its content into
22 * a deck of slides containing lines. All based on markdown formating
33 * rules.
4 * Copyright (C) 2016 Michael Goehler
4 * Copyright (C) 2018 Michael Goehler
55 *
66 * This file is part of mdp.
77 *
00 /*
11 * Functions necessary to handle pandoc URLs.
2 * Copyright (C) 2016 Michael Goehler
2 * Copyright (C) 2018 Michael Goehler
33 *
44 * This file is part of mdp.
55 *
11 * Functions necessary to display a deck of slides in different color modes
22 * using ncurses. Only white, red, and blue are supported, as they can be
33 * faded in 256 color mode.
4 * Copyright (C) 2016 Michael Goehler
4 * Copyright (C) 2018 Michael Goehler
55 *
66 * This file is part of mdp.
77 *
981981
982982 int get_slide_number(char init) {
983983 int retval = init - '0';
984 char c;
984 int c;
985985 // block for tenths of a second when using getch, ERR if no input
986986 halfdelay(GOTO_SLIDE_DELAY);
987987 while((c = getch()) != ERR) {