Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
d1a951b8
Commit
d1a951b8
authored
Aug 10, 2018
by
Kazuhiro Sera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos detected by github.com/client9/misspell
parent
55d81423
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
59 additions
and
59 deletions
+59
-59
ccan/antithread/examples/arabella.c
ccan/antithread/examples/arabella.c
+1
-1
ccan/asort/test/run.c
ccan/asort/test/run.c
+3
-3
ccan/autodata/autodata.h
ccan/autodata/autodata.h
+1
-1
ccan/bitops/bitops.h
ccan/bitops/bitops.h
+18
-18
ccan/coroutine/coroutine.c
ccan/coroutine/coroutine.c
+1
-1
ccan/crypto/sha256/benchmarks/double-sha-bench.c
ccan/crypto/sha256/benchmarks/double-sha-bench.c
+1
-1
ccan/hash/hash.c
ccan/hash/hash.c
+2
-2
ccan/intmap/intmap.h
ccan/intmap/intmap.h
+2
-2
ccan/iscsi/scsi-lowlevel.c
ccan/iscsi/scsi-lowlevel.c
+4
-4
ccan/list/list.h
ccan/list/list.h
+4
-4
ccan/rbtree/rbtree.c
ccan/rbtree/rbtree.c
+1
-1
ccan/rfc822/rfc822.h
ccan/rfc822/rfc822.h
+1
-1
ccan/str/hex/_info
ccan/str/hex/_info
+1
-1
ccan/str/hex/hex.h
ccan/str/hex/hex.h
+1
-1
ccan/strgrp/_info
ccan/strgrp/_info
+1
-1
ccan/tal/stack/_info
ccan/tal/stack/_info
+1
-1
ccan/tal/stack/stack.h
ccan/tal/stack/stack.h
+1
-1
ccan/tal/tal.c
ccan/tal/tal.c
+1
-1
ccan/talloc/talloc.c
ccan/talloc/talloc.c
+1
-1
ccan/tap/tap.3
ccan/tap/tap.3
+2
-2
ccan/time/time.h
ccan/time/time.h
+1
-1
ccan/tlist/_info
ccan/tlist/_info
+1
-1
ccan/tlist/tlist.h
ccan/tlist/tlist.h
+1
-1
ccan/tlist2/_info
ccan/tlist2/_info
+1
-1
ccan/tlist2/tlist2.h
ccan/tlist2/tlist2.h
+1
-1
ccan/xstring/xstring.h
ccan/xstring/xstring.h
+4
-4
tools/ccanlint/licenses.c
tools/ccanlint/licenses.c
+2
-2
No files found.
ccan/antithread/examples/arabella.c
View file @
d1a951b8
...
...
@@ -128,7 +128,7 @@ static void paint_triangle(struct image *image, const struct triangle *tri)
x1
=
tri
->
coord
[
i1
].
x
,
y1
=
tri
->
coord
[
i1
].
y
;
x2
=
tri
->
coord
[
i2
].
x
,
y2
=
tri
->
coord
[
i2
].
y
;
// test for easy cases, else split tri
na
gle in two and render both halfs
// test for easy cases, else split tri
an
gle in two and render both halfs
if
(
y1
==
y2
)
{
if
(
x1
>
x2
)
swap
(
&
x1
,
&
x2
);
add_flat_triangle
(
image
,
x1
,
y1
,
x2
,
y2
,
x0
,
y0
,
...
...
ccan/asort/test/run.c
View file @
d1a951b8
...
...
@@ -35,7 +35,7 @@ static bool is_reverse_sorted(const int arr[], unsigned int size)
return
true
;
}
static
void
ps
ue
do_random_array
(
int
arr
[],
unsigned
int
size
)
static
void
ps
eu
do_random_array
(
int
arr
[],
unsigned
int
size
)
{
unsigned
int
i
;
...
...
@@ -52,14 +52,14 @@ int main(void)
plan_tests
(
4
);
ps
ue
do_random_array
(
tmparr
,
TEST_SIZE
);
ps
eu
do_random_array
(
tmparr
,
TEST_SIZE
);
ok1
(
!
is_sorted
(
tmparr
,
TEST_SIZE
));
ok1
(
!
is_reverse_sorted
(
tmparr
,
TEST_SIZE
));
asort
(
tmparr
,
TEST_SIZE
,
test_cmp
,
&
multiplier
);
ok1
(
is_sorted
(
tmparr
,
TEST_SIZE
));
ps
ue
do_random_array
(
tmparr
,
TEST_SIZE
);
ps
eu
do_random_array
(
tmparr
,
TEST_SIZE
);
multiplier
=
-
1
;
asort
(
tmparr
,
TEST_SIZE
,
test_cmp
,
&
multiplier
);
ok1
(
is_reverse_sorted
(
tmparr
,
TEST_SIZE
));
...
...
ccan/autodata/autodata.h
View file @
d1a951b8
...
...
@@ -12,7 +12,7 @@
* @name: the name for this set of autodata
* @type: the type this autodata points to
*
* This macro is usually placed in a header: it must prece
ed
any
* This macro is usually placed in a header: it must prece
de
any
* autodata functions in the file.
*
* Example:
...
...
ccan/bitops/bitops.h
View file @
d1a951b8
...
...
@@ -15,7 +15,7 @@
/**
* bitops_ffs32: find first set bit in a uint32_t
*
* Returns 1 for least signficant bit, 32 for most significant bit, 0
* Returns 1 for least sign
i
ficant bit, 32 for most significant bit, 0
* for no bits set.
*/
static
inline
int
bitops_ffs32
(
uint32_t
u
)
...
...
@@ -26,7 +26,7 @@ static inline int bitops_ffs32(uint32_t u)
/**
* bitops_ffs64: find lowest set bit in a uint64_t
*
* Returns 1 for least signficant bit, 32 for most significant bit, 0
* Returns 1 for least sign
i
ficant bit, 32 for most significant bit, 0
* for no bits set.
*/
static
inline
int
bitops_ffs64
(
uint64_t
u
)
...
...
@@ -46,8 +46,8 @@ int bitops_ffs64(uint64_t u);
/**
* bitops_clz32: count leading zeros in a uint32_t (must not be 0)
*
* Returns 0 if most signficant bit is set, 31 if only least
* signficant bit is set.
* Returns 0 if most sign
i
ficant bit is set, 31 if only least
* sign
i
ficant bit is set.
*/
static
inline
int
bitops_clz32
(
uint32_t
u
)
{
...
...
@@ -58,8 +58,8 @@ static inline int bitops_clz32(uint32_t u)
/**
* bitops_clz64: count leading zeros in a uint64_t (must not be 0)
*
* Returns 0 if most signficant bit is set, 63 if only least
* signficant bit is set.
* Returns 0 if most sign
i
ficant bit is set, 63 if only least
* sign
i
ficant bit is set.
*/
static
inline
int
bitops_clz64
(
uint64_t
u
)
{
...
...
@@ -79,8 +79,8 @@ int bitops_clz64(uint64_t u);
/**
* bitops_ctz32: count trailing zeros in a uint32_t (must not be 0)
*
* Returns 0 if least signficant bit is set, 31 if only most
* signficant bit is set.
* Returns 0 if least sign
i
ficant bit is set, 31 if only most
* sign
i
ficant bit is set.
*/
static
inline
int
bitops_ctz32
(
uint32_t
u
)
{
...
...
@@ -91,8 +91,8 @@ static inline int bitops_ctz32(uint32_t u)
/**
* bitops_ctz64: count trailing zeros in a uint64_t (must not be 0)
*
* Returns 0 if least signficant bit is set, 63 if only most
* signficant bit is set.
* Returns 0 if least sign
i
ficant bit is set, 63 if only most
* sign
i
ficant bit is set.
*/
static
inline
int
bitops_ctz64
(
uint64_t
u
)
{
...
...
@@ -111,7 +111,7 @@ int bitops_ctz64(uint64_t u);
/**
* bitops_ls32: find lowest set bit in a uint32_t (must not be zero)
*
* Returns 0 for least signficant bit, 31 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 31 for most significant bit.
*/
static
inline
int
bitops_ls32
(
uint32_t
u
)
{
...
...
@@ -122,7 +122,7 @@ static inline int bitops_ls32(uint32_t u)
/**
* bitops_ls64: find lowest set bit in a uint64_t (must not be zero)
*
* Returns 0 for least signficant bit, 63 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 63 for most significant bit.
*/
static
inline
int
bitops_ls64
(
uint64_t
u
)
{
...
...
@@ -133,7 +133,7 @@ static inline int bitops_ls64(uint64_t u)
/**
* bitops_hs32: find highest set bit in a uint32_t (must not be zero)
*
* Returns 0 for least signficant bit, 31 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 31 for most significant bit.
*/
static
inline
int
bitops_hs32
(
uint32_t
u
)
{
...
...
@@ -144,7 +144,7 @@ static inline int bitops_hs32(uint32_t u)
/**
* bitops_hs64: find highest set bit in a uint64_t (must not be zero)
*
* Returns 0 for least signficant bit, 63 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 63 for most significant bit.
*/
static
inline
int
bitops_hs64
(
uint64_t
u
)
{
...
...
@@ -155,7 +155,7 @@ static inline int bitops_hs64(uint64_t u)
/**
* bitops_lc32: find lowest clear bit in a uint32_t (must not be 0xFFFFFFFF)
*
* Returns 0 for least signficant bit, 31 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 31 for most significant bit.
*/
static
inline
int
bitops_lc32
(
uint32_t
u
)
{
...
...
@@ -165,7 +165,7 @@ static inline int bitops_lc32(uint32_t u)
/**
* bitops_lc64: find lowest clear bit in a uint64_t (must not be 0xFFFFFFFFFFFFFFFF)
*
* Returns 0 for least signficant bit, 63 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 63 for most significant bit.
*/
static
inline
int
bitops_lc64
(
uint64_t
u
)
{
...
...
@@ -175,7 +175,7 @@ static inline int bitops_lc64(uint64_t u)
/**
* bitops_hc32: find highest clear bit in a uint32_t (must not be 0xFFFFFFFF)
*
* Returns 0 for least signficant bit, 31 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 31 for most significant bit.
*/
static
inline
int
bitops_hc32
(
uint32_t
u
)
{
...
...
@@ -185,7 +185,7 @@ static inline int bitops_hc32(uint32_t u)
/**
* bitops_hc64: find highest clear bit in a uint64_t (must not be 0xFFFFFFFFFFFFFFFF)
*
* Returns 0 for least signficant bit, 63 for most significant bit.
* Returns 0 for least sign
i
ficant bit, 63 for most significant bit.
*/
static
inline
int
bitops_hc64
(
uint64_t
u
)
{
...
...
ccan/coroutine/coroutine.c
View file @
d1a951b8
...
...
@@ -17,7 +17,7 @@
* Stack management
*/
/* Returns lowest stack addres, regardless of growth direction */
/* Returns lowest stack addres
s
, regardless of growth direction */
static
UNNEEDED
void
*
coroutine_stack_base
(
struct
coroutine_stack
*
stack
)
{
#if HAVE_STACK_GROWS_UPWARDS
...
...
ccan/crypto/sha256/benchmarks/double-sha-bench.c
View file @
d1a951b8
...
...
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
block
.
h
.
u
.
u8
[
3
],
block
.
h
.
u
.
u8
[
4
],
block
.
h
.
u
.
u8
[
5
],
(
unsigned
long
long
)
time_to_nsec
(
diff
));
/* Now, don't re-initalize every time; use Transform */
/* Now, don't re-init
i
alize every time; use Transform */
memset
(
&
block
,
0
,
sizeof
(
block
));
sha256
(
&
block
.
h
,
&
n
,
sizeof
(
n
));
block
.
u8
[
sizeof
(
block
.
h
)]
=
0x80
;
...
...
ccan/hash/hash.c
View file @
d1a951b8
...
...
@@ -281,7 +281,7 @@ static uint32_t hashlittle( const void *key, size_t length, uint32_t *val2 )
* rest of the string. Every machine with memory protection I've seen
* does it on word boundaries, so is OK with this. But VALGRIND will
* still catch it and complain. The masking trick does make the hash
* noticably faster for short strings (like English words).
* notic
e
ably faster for short strings (like English words).
*
* Not on my testing with gcc 4.5 on an intel i5 CPU, at least --RR.
*/
...
...
@@ -458,7 +458,7 @@ static uint32_t hashbig( const void *key, size_t length, uint32_t *val2)
* rest of the string. Every machine with memory protection I've seen
* does it on word boundaries, so is OK with this. But VALGRIND will
* still catch it and complain. The masking trick does make the hash
* noticably faster for short strings (like English words).
* notic
e
ably faster for short strings (like English words).
*
* Not on my testing with gcc 4.5 on an intel i5 CPU, at least --RR.
*/
...
...
ccan/intmap/intmap.h
View file @
d1a951b8
...
...
@@ -286,7 +286,7 @@ void *intmap_first_(const struct intmap *map, intmap_index_t *indexp);
/**
* uintmap_after - get the closest following index in an unsigned intmap
* @umap: the typed intmap to iterate through.
* @indexp: the prece
e
ding index (may not exist)
* @indexp: the preceding index (may not exist)
*
* Returns NULL if the there is no entry > @indexp, otherwise
* populates *@indexp and returns the lowest entry > @indexp.
...
...
@@ -300,7 +300,7 @@ void *intmap_after_(const struct intmap *map, intmap_index_t *indexp);
/**
* sintmap_after - get the closest following index in a signed intmap
* @smap: the typed intmap to iterate through.
* @indexp: the prece
e
ding index (may not exist)
* @indexp: the preceding index (may not exist)
*
* Returns NULL if the there is no entry > @indexp, otherwise
* populates *@indexp and returns the lowest entry > @indexp.
...
...
ccan/iscsi/scsi-lowlevel.c
View file @
d1a951b8
...
...
@@ -118,7 +118,7 @@ struct scsi_task *scsi_reportluns_cdb(int report_type, int alloc_len)
}
/*
* parse the data in blob and calcu
al
te the size of a full report luns datain structure
* parse the data in blob and calcu
la
te the size of a full report luns datain structure
*/
static
int
scsi_reportluns_datain_getfullsize
(
struct
scsi_task
*
task
)
{
...
...
@@ -198,7 +198,7 @@ struct scsi_task *scsi_cdb_readcapacity10(int lba, int pmi)
}
/*
* parse the data in blob and calcu
al
te the size of a full readcapacity10 datain structure
* parse the data in blob and calcu
la
te the size of a full readcapacity10 datain structure
*/
static
int
scsi_readcapacity10_datain_getfullsize
(
struct
scsi_task
*
task
UNUSED
)
...
...
@@ -268,7 +268,7 @@ struct scsi_task *scsi_cdb_inquiry(int evpd, int page_code, int alloc_len)
}
/*
* parse the data in blob and calcu
al
te the size of a full inquiry datain structure
* parse the data in blob and calcu
la
te the size of a full inquiry datain structure
*/
static
int
scsi_inquiry_datain_getfullsize
(
struct
scsi_task
*
task
)
{
...
...
@@ -412,7 +412,7 @@ struct scsi_task *scsi_cdb_modesense6(int dbd, enum scsi_modesense_page_control
}
/*
* parse the data in blob and calcu
al
te the size of a full report luns datain structure
* parse the data in blob and calcu
la
te the size of a full report luns datain structure
*/
static
int
scsi_modesense6_datain_getfullsize
(
struct
scsi_task
*
task
)
{
...
...
ccan/list/list.h
View file @
d1a951b8
...
...
@@ -708,7 +708,7 @@ static inline void list_prepend_list_(struct list_head *to,
/**
* list_for_each_off - iterate through a list of memory regions.
* @h: the list_head
* @i: the pointer to a memory region wich contains list node data.
* @i: the pointer to a memory region w
h
ich contains list node data.
* @off: offset(relative to @i) at which list node data resides.
*
* This is a low-level wrapper to iterate @i over the entire list, used to
...
...
@@ -740,7 +740,7 @@ static inline void list_prepend_list_(struct list_head *to,
/**
* list_for_each_rev_off - iterate through a list of memory regions backwards
* @h: the list_head
* @i: the pointer to a memory region wich contains list node data.
* @i: the pointer to a memory region w
h
ich contains list node data.
* @off: offset(relative to @i) at which list node data resides.
*
* See list_for_each_off for details
...
...
@@ -752,7 +752,7 @@ static inline void list_prepend_list_(struct list_head *to,
* list_for_each_safe_off - iterate through a list of memory regions, maybe
* during deletion
* @h: the list_head
* @i: the pointer to a memory region wich contains list node data.
* @i: the pointer to a memory region w
h
ich contains list node data.
* @nxt: the structure containing the list_node
* @off: offset(relative to @i) at which list node data resides.
*
...
...
@@ -771,7 +771,7 @@ static inline void list_prepend_list_(struct list_head *to,
* list_for_each_rev_safe_off - iterate backwards through a list of
* memory regions, maybe during deletion
* @h: the list_head
* @i: the pointer to a memory region wich contains list node data.
* @i: the pointer to a memory region w
h
ich contains list node data.
* @nxt: the structure containing the list_node
* @off: offset(relative to @i) at which list node data resides.
*
...
...
ccan/rbtree/rbtree.c
View file @
d1a951b8
...
...
@@ -448,7 +448,7 @@ delete_node(trbt_node_t *node)
predecessor instead.
The predecessor is guaranteed to have at most one child
node since its right arm must be NULL
(It must be NULL since we are its sucessor and we are above
(It must be NULL since we are its suc
c
essor and we are above
it in the tree)
*/
if
(
node
->
left
!=
NULL
&&
node
->
right
!=
NULL
)
{
...
...
ccan/rfc822/rfc822.h
View file @
d1a951b8
...
...
@@ -78,7 +78,7 @@ struct rfc822_msg *rfc822_start(const void *ctx, const char *p, size_t len);
* rfc822_free - free an rfc822 message
* @msg: message to free
*
* Frees an rfc822_msg context, including all subsid
u
ary data
* Frees an rfc822_msg context, including all subsid
i
ary data
* structures.
*/
void
rfc822_free
(
struct
rfc822_msg
*
msg
);
...
...
ccan/str/hex/_info
View file @
d1a951b8
...
...
@@ -5,7 +5,7 @@
/**
* str/hex - hex-to-string conversions and vice-versa
*
* This code contains simple routines for hex
i
decimal strings.
* This code contains simple routines for hex
a
decimal strings.
*
* License: CC0 (Public domain)
* Author: Rusty Russell <rusty@rustcorp.com.au>
...
...
ccan/str/hex/hex.h
View file @
d1a951b8
...
...
@@ -7,7 +7,7 @@
/**
* hex_decode - Unpack a hex string.
* @str: the hex
i
decimal string
* @str: the hex
a
decimal string
* @slen: the length of @str
* @buf: the buffer to write the data into
* @bufsize: the length of @buf
...
...
ccan/strgrp/_info
View file @
d1a951b8
...
...
@@ -51,7 +51,7 @@
* threshold. Two measurements are used as rejecting filters (i.e. a failure to
* exceed the threshold prevents further measurements being made):
*
* 4a. Compar
si
on of string lengths: String lengths must be within given bounds
* 4a. Compar
is
on of string lengths: String lengths must be within given bounds
* to satisfy the user-supplied similarity constraint. A negative result avoids
* invoking the O(m * n) behaviour of LCS at the cost of O(m + n) in the two
* strlen() invocations.
...
...
ccan/tal/stack/_info
View file @
d1a951b8
...
...
@@ -3,7 +3,7 @@
#include <string.h>
/**
* tal/stack - stack of tal context
e
s (inspired by talloc_stack)
* tal/stack - stack of tal contexts (inspired by talloc_stack)
*
* Implement a stack of tal contexts. A new (empty) context is pushed on top
* of the stack using tal_newframe and it is popped/freed using tal_free().
...
...
ccan/tal/stack/stack.h
View file @
d1a951b8
...
...
@@ -9,7 +9,7 @@
*
* Allocates and push a new tal context on top of the stack.
* The context must be freed using tal_free() which will also pop it
* off the stack, which will also free all its nested context
e
s, if any.
* off the stack, which will also free all its nested contexts, if any.
*
* NOTE: this function is not threadsafe.
*
...
...
ccan/tal/tal.c
View file @
d1a951b8
...
...
@@ -495,7 +495,7 @@ void *tal_steal_(const tal_t *new_parent, const tal_t *ctx)
old_parent
=
ignore_destroying_bit
(
t
->
parent_child
)
->
parent
;
if
(
unlikely
(
!
add_child
(
newpar
,
t
)))
{
/* We can always add to old parent, bec
ua
se it has a
/* We can always add to old parent, bec
au
se it has a
* children property already. */
if
(
!
add_child
(
old_parent
,
t
))
abort
();
...
...
ccan/talloc/talloc.c
View file @
d1a951b8
...
...
@@ -621,7 +621,7 @@ static inline int talloc_unreference(const void *context, const void *ptr)
/*
remove a specific parent context from a pointer. This is a more
controlled vari
e
nt of talloc_free()
controlled vari
a
nt of talloc_free()
*/
int
talloc_unlink
(
const
void
*
context
,
void
*
ptr
)
{
...
...
ccan/tap/tap.3
View file @
d1a951b8
...
...
@@ -285,7 +285,7 @@ diag("Expected return code 0, got return code %d", rcode);
.Xc
.El
.Pp
For maximum compat
a
bility your test program should return a particular
For maximum compat
i
bility your test program should return a particular
exit code. This is calculated by
.Fn exit_status
so it is sufficient to always return from
...
...
@@ -303,7 +303,7 @@ directory in the source distribution contains numerous tests of
functionality, written using
.Nm .
Examine them for examples of how to construct test suites.
.Sh COMPAT
A
BILITY
.Sh COMPAT
I
BILITY
.Nm
strives to be compatible with the Perl Test::More and Test::Harness
modules. The test suite verifies that
...
...
ccan/time/time.h
View file @
d1a951b8
...
...
@@ -42,7 +42,7 @@ struct timerel {
};
/**
* struct timeabs - an absolue time.
* struct timeabs - an absolu
t
e time.
* @ts: the actual timespec value.
*
* For example, Midnight UTC January 1st, 1970: ts.tv_sec = 0, ts.tv_nsec = 0
...
...
ccan/tlist/_info
View file @
d1a951b8
...
...
@@ -6,7 +6,7 @@
* tlist - typesafe double linked list routines
*
* The list header contains routines for manipulating double linked lists;
* this extends it so you can create list head types which only accomodate
* this extends it so you can create list head types which only accom
m
odate
* a specific entry type.
*
* Example:
...
...
ccan/tlist/tlist.h
View file @
d1a951b8
...
...
@@ -34,7 +34,7 @@
}
/**
* TLIST_INIT - initalizer for an empty tlist
* TLIST_INIT - init
i
alizer for an empty tlist
* @name: the name of the list.
*
* Explicit initializer for an empty list.
...
...
ccan/tlist2/_info
View file @
d1a951b8
...
...
@@ -6,7 +6,7 @@
* tlist2 - typesafe double linked list routines, alternative form
*
* The list header contains routines for manipulating double linked lists;
* this extends it so you can create list head types which only accomodate
* this extends it so you can create list head types which only accom
m
odate
* a specific entry type.
*
* Compared to 'tlist', this:
...
...
ccan/tlist2/tlist2.h
View file @
d1a951b8
...
...
@@ -31,7 +31,7 @@
TCON_CONTAINER(canary, etype, link))
/**
* TLIST2_INIT - initalizer for an empty tlist
* TLIST2_INIT - init
i
alizer for an empty tlist
* @name: the name of the list.
*
* Explicit initializer for an empty list.
...
...
ccan/xstring/xstring.h
View file @
d1a951b8
...
...
@@ -131,7 +131,7 @@ int xstrAddSubs(xstring *x, ...);
* @x: pointer to xstring
* @src: string to append
*
* Run xstrAdd. Reterminate at inital length if truncation occurs.
* Run xstrAdd. Reterminate at init
i
al length if truncation occurs.
*
* Return: x->truncated
*/
...
...
@@ -141,7 +141,7 @@ int xstrAddSubs(xstring *x, ...);
* @x: pointer to xstring
* @...: one or more strings followed by NULL
*
* Run xstrCat. Reterminate at inital length if truncation occurs.
* Run xstrCat. Reterminate at init
i
al length if truncation occurs.
*
* Return: x->truncated
*/
...
...
@@ -152,7 +152,7 @@ int xstrAddSubs(xstring *x, ...);
* @sep: separator string
* @...: one or more strings followed by NULL
*
* Run xstrJoin. Reterminate at inital length if truncation occurs.
* Run xstrJoin. Reterminate at init
i
al length if truncation occurs.
*
* Return: x->truncated
*/
...
...
@@ -163,7 +163,7 @@ int xstrAddSubs(xstring *x, ...);
* @x: pointer to xstring
* @...: one or more pairs of string and length followed by NULL
*
* Run xstrAddSubs. Reterminate at inital length if truncation occurs.
* Run xstrAddSubs. Reterminate at init
i
al length if truncation occurs.
*
* Return: x->truncated
*/
...
...
tools/ccanlint/licenses.c
View file @
d1a951b8
...
...
@@ -92,7 +92,7 @@ const struct license_info licenses[] = {
},
};
/* License compatibilty chart (simplified: we don't test that licenses between
/* License compatibil
i
ty chart (simplified: we don't test that licenses between
* files are compatible). */
#define O true
#define X false
...
...
@@ -130,7 +130,7 @@ bool license_compatible[LICENSE_UNKNOWN+1][LICENSE_UNKNOWN] = {
#undef O
/* See GPLv2 and v2 (basically same wording) for interpreting versions:
* the "any later version" means the rec
e
pient can choose. */
* the "any later version" means the rec
i
pient can choose. */
enum
license
which_license
(
struct
doc_section
*
d
)
{
if
(
!
d
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment