Skip to content

Commit

Permalink
Introducing conformance with MISRA C:2012 amendments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgs3 committed Jan 19, 2025
1 parent 8846b8d commit 64a7313
Show file tree
Hide file tree
Showing 61 changed files with 381 additions and 93 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.22)
project(unicorn VERSION 1.0.2 LANGUAGES C)
project(unicorn VERSION 1.0.3 LANGUAGES C)

include(CheckIncludeFile)

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([unicorn], [1.0.2])
AC_INIT([unicorn], [1.0.3])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_PROG_CPP
Expand Down
48 changes: 24 additions & 24 deletions generate.pyz
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

# Unicorn - Embeddable Unicode Library
# Copyright (c) 2021-2024 Railgun Labs, LLC - All Rights Reserved
# Copyright (c) 2021-2025 Railgun Labs, LLC - All Rights Reserved
#
# All information contained herein is and remains the property of Railgun Labs.
# The intellectual and technical concepts contained herein are proprietary to
Expand Down Expand Up @@ -144,7 +144,7 @@ def cL(fi,struct,function):
for eo in ek.keys():
source+=' {'
for eC in eJ:
source+='UINT32_C({0}),'.format(eo.eB[eC.id])
source+='{0}u,'.format(eo.eB[eC.id])
size+=eC.ea.c()
source+='},\n'
source+=' };\n\n'
Expand All @@ -153,7 +153,7 @@ def cL(fi,struct,function):
if index%8==0:
source+='\n'
source+=' '
source+='UINT16_C(%d), '%value
source+='%d, '%value
size+=2
source+='\n'
source+=' };\n\n'
Expand All @@ -162,7 +162,7 @@ def cL(fi,struct,function):
if index%8==0:
source+='\n'
source+=' '
source+='UINT16_C(%d), '%value
source+='%d, '%value
size+=2
source+='\n'
source+=' };\n\n'
Expand Down Expand Up @@ -753,9 +753,9 @@ class cU(Feature):
source+='UNICHAR_C(0x{:04X}), '.format(eS)
size+=4
source+='};\n\n'
header=f'#define CASING_IN_TABLE(C) (((C) & UINT16_C({dI})) == UINT16_C({dI}))\n'
header+='#define GET_CASED_VALUE(C) ((C) & UINT16_C(0x3FFF))\n'
header+=f'#define CASING_DIFF INT32_C({ey})\n'
header=f'#define CASING_IN_TABLE(C) (((C) & (uint16_t){dI}) == (uint16_t){dI})\n'
header+='#define GET_CASED_VALUE(C) ((C) & (uint16_t)0x3FFF)\n'
header+=f'#define CASING_DIFF {ey}\n'
header+='extern const unichar unicorn_simple_case_mappings[{0}];\n'.format(len(et))
assert len(et)<65535,'cannot use unsigned 16-bit integer anymore'
fg=cL(eG,'CharCaseData','unicorn_get_character_casing')
Expand All @@ -778,8 +778,8 @@ class cm(Feature):
mappings=fg['characterFlags']
file.close()
dX=fi.get(dW[0])
header+='#define IS_CASED UINT32_C({0})\n'.format(u)
header+='#define IS_CASE_IGNORABLE UINT32_C({0})\n'.format(v)
header+='#define IS_CASED {0}u\n'.format(u)
header+='#define IS_CASE_IGNORABLE {0}u\n'.format(v)
for fb,flags in mappings.items():
fi.eb(int(fb,16),dX,flags)
return fe(source=source,header=header,size=size)
Expand Down Expand Up @@ -829,8 +829,8 @@ class cp(Feature):
fi.eb(fb,dX,cf)
for fb,offset in aw:
fi.set(fb,ay,offset)
header+='#define UNICORN_CHAR_NEEDS_NORMALIZATION UINT32_C({0})\n'.format(ce)
header+='#define UNICORN_CHAR_CHANGES_WHEN_CASEFOLDED UINT32_C({0})\n'.format(cf)
header+='#define UNICORN_CHAR_NEEDS_NORMALIZATION {0}u\n'.format(ce)
header+='#define UNICORN_CHAR_CHANGES_WHEN_CASEFOLDED {0}u\n'.format(cf)
fd='#define UNICORN_FEATURE_CASEFOLD_DEFAULT\n'
return fe(source,header,fd,size)
class az(Feature):
Expand Down Expand Up @@ -966,7 +966,7 @@ class ds(Feature):
if index%8==0:
source+='\n'
source+=' '
source+='UINT8_C(0x{:02X}), '.format(eS)
source+='(uint8_t)0x{:02X}, '.format(eS)
source+='\n'
source+='};\n\n'
if fh.optimize==er.el:
Expand Down Expand Up @@ -1017,7 +1017,7 @@ class aL(Feature):
header+=' unichar codepoint;\n'
header+=' unichar composed_codepoint;\n'
header+='};\n'
header+='#define CHAR_IS_COMPOSABLE UINT32_C({0})\n'.format(cd)
header+='#define CHAR_IS_COMPOSABLE {0}u\n'.format(cd)
header+='extern const struct CanonicalCompositionPair uni_canonical_comp_pairs[{0}];\n'.format(len(ct))
header+='\n'
fd='#define UNICORN_FEATURE_NFC\n'
Expand Down Expand Up @@ -1138,7 +1138,7 @@ class aV(Feature):
for dR,en in enumerate(dO):
if dR%4==0:
source+='\n '
source+='UINT32_C(0x{:08X}), '.format(en)
source+='0x{:08X}u, '.format(en)
size+=4
source+='};\n\n'
source+='const struct CollationNode unicorn_collation_mappings_trie[] = {\n'
Expand All @@ -1147,20 +1147,20 @@ class aV(Feature):
ep=len(eN.eF)<<24|eN.ev
aT=eN.dY
aU=eN.cy
source+=f' {{ UINT32_C({ep}), UINT16_C({aT}), UINT16_C({aU}) }},\n'
source+=f' {{ {ep}u, {aT}, {aU} }},\n'
size+=8
source+='};\n\n'
header=fg.header
header+=aP
header+='#define UNICORN_MAX_COLLATION {0}\n'.format(de+1)
header+='#define INLINE_CE_FLAG UINT32_C({0})\n'.format(db)
header+='#define IN_WEIGHT_TABLE_FLAG UINT32_C({0})\n'.format(cv)
header+='#define IN_TRIE_FLAG UINT32_C({0})\n'.format(cw)
header+='#define CONTINUATION_FLAG UINT32_C({0})\n'.format(cx)
header+='#define INLINE_CE_FLAG {0}u\n'.format(db)
header+='#define IN_WEIGHT_TABLE_FLAG {0}u\n'.format(cv)
header+='#define IN_TRIE_FLAG {0}u\n'.format(cw)
header+='#define CONTINUATION_FLAG {0}u\n'.format(cx)
header+='#define LONGEST_INITIAL_SUBSTRING {0}\n'.format(aQ)
header+='#define UNICORN_IN_COLLATION_TABLE(NODE) ((NODE)->collation_mappings_offset > UINT16_C(0))\n'
header+='#define GET_NODE_CODE_POINT(NODE) ((NODE)->codepoint_and_childcount & UINT32_C(0x1FFFFF))\n'
header+='#define GET_NODE_CHILD_COUNT(NODE) ((NODE)->codepoint_and_childcount >> UINT32_C(24))\n'
header+='#define UNICORN_IN_COLLATION_TABLE(NODE) ((NODE)->collation_mappings_offset > (uint16_t)0)\n'
header+='#define GET_NODE_CODE_POINT(NODE) ((NODE)->codepoint_and_childcount & 0x1FFFFFu)\n'
header+='#define GET_NODE_CHILD_COUNT(NODE) ((NODE)->codepoint_and_childcount >> 24u)\n'
header+='struct CollationNode {\n'
header+=' uint32_t codepoint_and_childcount;\n'
header+=' uint16_t collation_mappings_offset;\n'
Expand Down Expand Up @@ -1297,7 +1297,7 @@ def be(args,ff):
header+='#define UNICODE_VERSION_MINOR {0}\n'.format(dj[1])
header+='#define UNICODE_VERSION_PATCH {0}\n'.format(dj[2])
if fh.optimize==er.el:
header+='#define UNICORN_OPTIMIZE_FOR_SPEED\n'
header+='#define UNICORN_OPTIMIZE_FOR_SPEED // cppcheck-suppress misra-c2012-2.5\n'
else:
header+='#define UNICORN_OPTIMIZE_FOR_SIZE\n'
if fh.algorithms.dU&ed.bq:
Expand Down Expand Up @@ -1432,7 +1432,7 @@ def main(args):
file=ff.open('code.h')
bj=file.read().decode('utf-8-sig')
file.close()
copyright='/*\n * Unicorn: Embeddable Unicode algorithms software library.\n * Copyright (c) 2024 Railgun Labs, LLC\n *\n * This file is part of Unicorn, distributed under the Railgun\n * Limited Public License. For the full terms see the included\n * LICENSE file. If you did not receive a LICENSE file then\n * contact us at <https://RailgunLabs.com/contact/>.\n */\n\n// The Unicorn source code has been amalgamated into a monolithic source\n// and header file. As part of the amalgamation process all code comments\n// and extraneous white space have been removed.\n//\n// The amalgamation is intended for consumption, not development. The\n// unamalgamated source code can be obtained by purchasing a license\n// from Railgun Labs at https://RailgunLabs.com/unicorn/license.\n\n'
copyright='/*\n * Unicorn: Embeddable Unicode algorithms software library.\n * Copyright (c) 2025 Railgun Labs, LLC\n *\n * This file is part of Unicorn, distributed under a non-commercial use software\n * license. For the full terms see the included LICENSE file. If you did not\n * receive a LICENSE file or you would like to purchase a commercial license,\n * contact us at <https://RailgunLabs.com/contact/>.\n */\n\n// The Unicorn source code has been amalgamated into a monolithic source\n// and header file. As part of the amalgamation process all code comments\n// and extraneous white space have been removed.\n//\n// The amalgamation is intended for consumption, not development. The\n// unamalgamated source code can be obtained by purchasing a license\n// from Railgun Labs at https://RailgunLabs.com/unicorn/license.\n\n'
filename=os.path.join(args.output_dir,'unicorn.c')
fp=open(filename,'w',encoding='utf-8',newline='\n')
fp.write(copyright)
Expand Down
4 changes: 2 additions & 2 deletions man/uni_big.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
UNI_BIG \- big endian byte order
.SH LIBRARY
Expand All @@ -7,7 +7,7 @@ Embeddable Unicode Algorithms (libunicorn, -lunicorn)
.nf
.B #include <unicorn.h>
.PP
.B #define UNI_BIG 0x10
.B #define UNI_BIG 0x10u
.fi
.SH DESCRIPTION
Text attribute bit flag that indicates the text is encoded in big endian byte order.
Expand Down
2 changes: 1 addition & 1 deletion man/uni_caseconv.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_caseconv \- perform case conversion
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_caseconvchk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_caseconvchk \- check case status
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_casefold.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_casefold \- perform case folding
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_casefoldchk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_casefoldchk \- check case fold status
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_casefoldcmp.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_casefoldcmp \- case-insensitive string comparison
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_ccc.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_ccc \- canonical combining class
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_collate.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_collate \- compare strings for sorting
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_compress.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_compress \- compress text
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_convert.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_convert \- convert encoding forms
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_decompress.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_decompress \- decompress text
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_encode.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_encode \- encode a scalar value
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_gc.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_gc \- general category
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_getucdversion.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_getucdversion \- unicode standard version
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_getversion.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_getversion \- library version
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_is.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_is \- binary property value
.SH LIBRARY
Expand Down
4 changes: 2 additions & 2 deletions man/uni_little.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
UNI_LITTLE \- little endian byte order
.SH LIBRARY
Expand All @@ -7,7 +7,7 @@ Embeddable Unicode Algorithms (libunicorn, -lunicorn)
.nf
.B #include <unicorn.h>
.PP
.B #define UNI_LITTLE 0x20
.B #define UNI_LITTLE 0x20u
.fi
.SH DESCRIPTION
Text attribute bit flag that indicates the text is encoded in little endian byte order.
Expand Down
2 changes: 1 addition & 1 deletion man/uni_native.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
UNI_NATIVE \- native endian byte order
.SH LIBRARY
Expand Down
4 changes: 2 additions & 2 deletions man/uni_next.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_next \- decode a scalar value
.SH LIBRARY
Expand Down Expand Up @@ -59,7 +59,7 @@ int main(void)
}
else
{
printf("U+%04X\n", cp); // print scalar
printf("U+%04X\\n", cp); // print scalar
}
}
return 0;
Expand Down
4 changes: 2 additions & 2 deletions man/uni_nextbrk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_nextbrk \- compute next boundary
.SH LIBRARY
Expand Down Expand Up @@ -39,7 +39,7 @@ int main(void)
unisize index = 0;
while (uni_nextbrk(UNI_GRAPHEME, string, -1, UNI_UTF8, &index) == UNI_OK)
{
printf("%d\n", index); // prints '1', '2', '3', '4', 7', '10'
printf("%d\\n", index); // prints '1', '2', '3', '4', 7', '10'
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion man/uni_norm.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_norm \- normalize text
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_normchk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_normchk \- normalization check
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_normcmp.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_normcmp \- canonical equivalence
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_normqchk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_normqchk \- normalization quick check
.SH LIBRARY
Expand Down
4 changes: 2 additions & 2 deletions man/uni_nulify.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
UNI_NULIFY \- null terminated output
.SH LIBRARY
Expand All @@ -7,7 +7,7 @@ Embeddable Unicode Algorithms (libunicorn, -lunicorn)
.nf
.B #include <unicorn.h>
.PP
.B #define UNI_NULIFY 0x80
.B #define UNI_NULIFY 0x80u
.fi
.SH DESCRIPTION
Text attribute bit flag that indicates that the output buffer must be null terminated by the implementation.
Expand Down
2 changes: 1 addition & 1 deletion man/uni_numval.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_numval \- numeric property
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_prev.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_prev \- decode the previous scalar value
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_prevbrk.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_prevbrk \- compute preceding boundary
.SH LIBRARY
Expand Down
4 changes: 2 additions & 2 deletions man/uni_scalar.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
UNI_SCALAR \- unicode scalar value
.SH LIBRARY
Expand All @@ -7,7 +7,7 @@ Embeddable Unicode Algorithms (libunicorn, -lunicorn)
.nf
.B #include <unicorn.h>
.PP
.B #define UNI_SCALAR 0x1
.B #define UNI_SCALAR 0x1u
.fi
.SH DESCRIPTION
Text attribute bit flag that indicates the text is encoded as Unicode scalar values.
Expand Down
2 changes: 1 addition & 1 deletion man/uni_seterrfunc.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_seterrfunc \- receive diagnostic events
.SH LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion man/uni_setmemfunc.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "UNICORN" "3" "Dec 18th 2024" "Unicorn 1.0.2"
.TH "UNICORN" "3" "Jan 17th 2025" "Unicorn 1.0.3"
.SH NAME
uni_setmemfunc \- custom memory allocator
.SH LIBRARY
Expand Down
Loading

0 comments on commit 64a7313

Please sign in to comment.