diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-09-23 23:10:26 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-09-23 23:10:26 -0400 |
commit | a29e020059ca6f73a212ec76af94b22a694ad765 (patch) | |
tree | bb3d939fc66204c58eb812d50b2724c3f0b7782b /src/cff | |
parent | 6d19b29fbcd48bdfeb3ae10d26460137f65ebac8 (diff) | |
download | freetype2-a29e020059ca6f73a212ec76af94b22a694ad765.tar.gz |
Use NULL for pointers only.
* src/bdf/bdflib.c (*): Code changes.
* include/freetype/freetype.h: Comments only.
* src/cff/cffload.c, src/cff/cffobjs.c: Ditto.
* src/winfonts/winfnt.c: Ditto.
Diffstat (limited to 'src/cff')
-rw-r--r-- | src/cff/cffload.c | 2 | ||||
-rw-r--r-- | src/cff/cffobjs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cff/cffload.c b/src/cff/cffload.c index 9a9e0b9d8..3e7c971c3 100644 --- a/src/cff/cffload.c +++ b/src/cff/cffload.c @@ -400,7 +400,7 @@ /* Allocate a table containing pointers to an index's elements. */ /* The `pool' argument makes this function convert the index */ - /* entries to C-style strings (this is, NULL-terminated). */ + /* entries to C-style strings (this is, null-terminated). */ static FT_Error cff_index_get_pointers( CFF_Index idx, FT_Byte*** table, diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c index 4a040462b..3a4d47dbd 100644 --- a/src/cff/cffobjs.c +++ b/src/cff/cffobjs.c @@ -689,13 +689,13 @@ /* In Multiple Master CFFs, two SIDs hold the Normalize Design */ /* Vector (NDV) and Convert Design Vector (CDV) charstrings, */ - /* which may contain NULL bytes in the middle of the data, too. */ + /* which may contain null bytes in the middle of the data, too. */ /* We thus access `cff->strings' directly. */ for ( idx = 1; idx < cff->num_strings; idx++ ) { FT_Byte* s1 = cff->strings[idx - 1]; FT_Byte* s2 = cff->strings[idx]; - FT_PtrDist s1len = s2 - s1 - 1; /* without the final NULL byte */ + FT_PtrDist s1len = s2 - s1 - 1; /* without the final null byte */ FT_PtrDist l; |