Update upstream source from tag 'upstream/1.0.13'
Update to upstream version '1.0.13'
with Debian dir 330269709ba280d96aa45c429d5b3a982a263b6e
Lev Lamberov
5 years ago
0 | 0 |
#
|
1 | 1 |
# Makefile
|
2 | |
# Copyright (C) 2016 Michael Goehler
|
|
2 |
# Copyright (C) 2018 Michael Goehler
|
3 | 3 |
#
|
4 | 4 |
# This file is part of mdp.
|
5 | 5 |
#
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* Macros to do bit operations on integer variables.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* Common macros.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* An implementation of a char stack in heap memory.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* An implementation of expandable c strings in heap memory.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* mdp -- A command-line based markdown presentation tool.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This program is free software: you can redistribute it and/or modify
|
8 | 8 |
* it under the terms of the GNU General Public License as published by
|
|
24 | 24 |
|
25 | 25 |
#define MDP_VER_MAJOR 1
|
26 | 26 |
#define MDP_VER_MINOR 0
|
27 | |
#define MDP_VER_REVISION 12
|
|
27 |
#define MDP_VER_REVISION 13
|
28 | 28 |
|
29 | 29 |
#endif // !defined( MAIN_H )
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* An implementation of markdown objects.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
4 | 4 |
* Functions necessary to parse a file and transform its content into
|
5 | 5 |
* a deck of slides containing lines. All based on markdown formating
|
6 | 6 |
* rules.
|
7 | |
* Copyright (C) 2016 Michael Goehler
|
|
7 |
* Copyright (C) 2018 Michael Goehler
|
8 | 8 |
*
|
9 | 9 |
* This file is part of mdp.
|
10 | 10 |
*
|
2 | 2 |
|
3 | 3 |
/*
|
4 | 4 |
* An object to store all urls of a slide.
|
5 | |
* Copyright (C) 2016 Michael Goehler
|
|
5 |
* Copyright (C) 2018 Michael Goehler
|
6 | 6 |
*
|
7 | 7 |
* This file is part of mdp.
|
8 | 8 |
*
|
4 | 4 |
* Functions necessary to display a deck of slides in different color modes
|
5 | 5 |
* using ncurses. Only white, red, and blue are supported, as they can be
|
6 | 6 |
* faded in 256 color mode.
|
7 | |
* Copyright (C) 2016 Michael Goehler
|
|
7 |
* Copyright (C) 2018 Michael Goehler
|
8 | 8 |
*
|
9 | 9 |
* This file is part of mdp.
|
10 | 10 |
*
|
162 | 162 |
Written by Michael Goehler and others, see
|
163 | 163 |
.IR https://github.com/visit1985/mdp/blob/master/AUTHORS "."
|
164 | 164 |
.SH COPYRIGHT
|
165 | |
Copyright (C) 2016 Michael Goehler
|
|
165 |
Copyright (C) 2018 Michael Goehler
|
166 | 166 |
.PP
|
167 | 167 |
This is free software; see the source for copying conditions. There is NO
|
168 | 168 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
0 | 0 |
#
|
1 | 1 |
# Makefile
|
2 | |
# Copyright (C) 2016 Michael Goehler
|
|
2 |
# Copyright (C) 2018 Michael Goehler
|
3 | 3 |
#
|
4 | 4 |
# This file is part of mdp.
|
5 | 5 |
#
|
0 | 0 |
/*
|
1 | 1 |
* An implementation of a char stack in heap memory.
|
2 | |
* Copyright (C) 2016 Michael Goehler
|
|
2 |
* Copyright (C) 2018 Michael Goehler
|
3 | 3 |
*
|
4 | 4 |
* This file is part of mdp.
|
5 | 5 |
*
|
0 | 0 |
/*
|
1 | 1 |
* An implementation of expandable c strings in heap memory.
|
2 | |
* Copyright (C) 2016 Michael Goehler
|
|
2 |
* Copyright (C) 2018 Michael Goehler
|
3 | 3 |
*
|
4 | 4 |
* This file is part of mdp.
|
5 | 5 |
*
|
0 | 0 |
/*
|
1 | 1 |
* mdp -- A command-line based markdown presentation tool.
|
2 | |
* Copyright (C) 2016 Michael Goehler
|
|
2 |
* Copyright (C) 2018 Michael Goehler
|
3 | 3 |
*
|
4 | 4 |
* This program is free software: you can redistribute it and/or modify
|
5 | 5 |
* it under the terms of the GNU General Public License as published by
|
|
44 | 44 |
|
45 | 45 |
void version() {
|
46 | 46 |
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");
|
48 | 48 |
printf("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n");
|
49 | 49 |
printf("This is free software: you are free to change and redistribute it.\n");
|
50 | 50 |
printf("There is NO WARRANTY, to the extent permitted by law.\n");
|
0 | 0 |
/*
|
1 | 1 |
* An implementation of markdown objects.
|
2 | |
* Copyright (C) 2016 Michael Goehler
|
|
2 |
* Copyright (C) 2018 Michael Goehler
|
3 | 3 |
*
|
4 | 4 |
* This file is part of mdp.
|
5 | 5 |
*
|
1 | 1 |
* Functions necessary to parse a file and transform its content into
|
2 | 2 |
* a deck of slides containing lines. All based on markdown formating
|
3 | 3 |
* rules.
|
4 | |
* Copyright (C) 2016 Michael Goehler
|
|
4 |
* Copyright (C) 2018 Michael Goehler
|
5 | 5 |
*
|
6 | 6 |
* This file is part of mdp.
|
7 | 7 |
*
|
0 | 0 |
/*
|
1 | 1 |
* Functions necessary to handle pandoc URLs.
|
2 | |
* Copyright (C) 2016 Michael Goehler
|
|
2 |
* Copyright (C) 2018 Michael Goehler
|
3 | 3 |
*
|
4 | 4 |
* This file is part of mdp.
|
5 | 5 |
*
|
1 | 1 |
* Functions necessary to display a deck of slides in different color modes
|
2 | 2 |
* using ncurses. Only white, red, and blue are supported, as they can be
|
3 | 3 |
* faded in 256 color mode.
|
4 | |
* Copyright (C) 2016 Michael Goehler
|
|
4 |
* Copyright (C) 2018 Michael Goehler
|
5 | 5 |
*
|
6 | 6 |
* This file is part of mdp.
|
7 | 7 |
*
|
|
981 | 981 |
|
982 | 982 |
int get_slide_number(char init) {
|
983 | 983 |
int retval = init - '0';
|
984 | |
char c;
|
|
984 |
int c;
|
985 | 985 |
// block for tenths of a second when using getch, ERR if no input
|
986 | 986 |
halfdelay(GOTO_SLIDE_DELAY);
|
987 | 987 |
while((c = getch()) != ERR) {
|