toolbox

Check-in [b63b4f5903]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:retab: fix type in usage()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b63b4f590311e26e486c79bb89fbf35f3fa541e2193b5ecd8b95f58b5bb803a1
User & Date: jef 2020-04-29 11:25:51
Context
2020-04-29
12:33
lib: fix bug in jtlst_pop() check-in: f3fbfada10 user: jef tags: trunk
11:25
retab: fix type in usage() check-in: b63b4f5903 user: jef tags: trunk
11:12
retab: fix man page date field check-in: 7cd5438c52 user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/lib/jtstr.c.

1
2
3
4
5
6
7
8
9
10
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "jt.h"

char *
str_del_prefix(char *str, const char *prefix)
{
	size_t nchars, len_prefix;



<







1
2

3
4
5
6
7
8
9
#include <string.h>
#include <ctype.h>

#include "jt.h"

char *
str_del_prefix(char *str, const char *prefix)
{
	size_t nchars, len_prefix;

Changes to src/retab/retab.c.

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define PROGNAME "retab"

void
usage()
{
	fprintf(stderr,
		"Retabulate a markdown table\n"
		"Usage:"
		"	" PROGNAME " < table.txt\n"
		"Options:\n"
		"	-h : display this help and exit\n");
	exit(1);
}

size_t max(size_t a, size_t b)







|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define PROGNAME "retab"

void
usage()
{
	fprintf(stderr,
		"Retabulate a markdown table\n"
		"Usage:\n"
		"	" PROGNAME " < table.txt\n"
		"Options:\n"
		"	-h : display this help and exit\n");
	exit(1);
}

size_t max(size_t a, size_t b)