Skip to content

Commit 394620b

Browse files
committed
Use cheri_getlength over cheri_getlen.
1 parent bc42dfd commit 394620b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cheri-c-programming.tex

+1-2
Original file line numberDiff line numberDiff line change
@@ -1308,11 +1308,10 @@ \subsection{Retrieving capability properties}
13081308
% This macro wraps the compiler built-in
13091309
% \cfunc{\_\_builtin\_cheri\_address\_get}.
13101310

1311-
\item[\ccode{size\_t cheri\_getlen(void *c)}] Return the length of the bounds for the capability \cvar{c}.
1311+
\item[\ccode{size\_t cheri\_getlength(void *c)}] Return the length of the bounds for the capability \cvar{c}.
13121312
% This macro wraps the compiler built-in
13131313
% \cfunc{\_\_builtin\_cheri\_length\_get}.
13141314
(The base plus the length gives the upper bound on \cvar{c}'s address.)
1315-
\arnote{I would quite like it if we used ``cheri\_getlength'' instead and deprecated the ``len'' version.}
13161315

13171316
\item[\ccode{size\_t cheri\_getoffset(void *c)}] Return the difference between the address and the lower bound of the capability \cvar{c}.
13181317
% This macro wraps the compiler built-in

0 commit comments

Comments
 (0)