diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:18:26 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-03 11:02:11 -0800 |
commit | 6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c (patch) | |
tree | 45171678d6b1fbfe936bb2586933d3e03c93500a /expr.h | |
parent | 299c9762b1dbe53f3297c54e5526aeae767d1a10 (diff) |
Mark more pointers as const
Some suggested by cppcheck, others by manual code inspection
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'expr.h')
-rw-r--r-- | expr.h | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -35,14 +35,14 @@ typedef union _ExprResult XkbKeyNameRec keyName; } ExprResult; -typedef Bool(*IdentLookupFunc) (XPointer /* priv */ , +typedef Bool(*IdentLookupFunc) (const XPointer /* priv */ , Atom /* elem */ , Atom /* field */ , unsigned /* type */ , ExprResult * /* val_rtrn */ ); -extern int ExprResolveLhs(ExprDef * /* expr */ , +extern int ExprResolveLhs(const ExprDef * /* expr */ , ExprResult * /* elem_rtrn */ , ExprResult * /* field_rtrn */ , ExprDef ** /* index_rtrn */ @@ -72,81 +72,81 @@ typedef struct _LookupTable extern char *exprOpText(unsigned /* type */ ); -extern int RadioLookup(XPointer /* priv */ , +extern Bool RadioLookup(const XPointer /* priv */ , Atom /* elem */ , Atom /* field */ , unsigned /* type */ , ExprResult * /* val_rtrn */ ); -extern int SimpleLookup(XPointer /* priv */ , +extern Bool SimpleLookup(const XPointer /* priv */ , Atom /* elem */ , Atom /* field */ , unsigned /* type */ , ExprResult * /* val_rtrn */ ); -extern int LookupModIndex(XPointer /* priv */ , +extern Bool LookupModIndex(const XPointer /* priv */ , Atom /* elem */ , Atom /* field */ , unsigned /* type */ , ExprResult * /* val_rtrn */ ); -extern int ExprResolveModIndex(ExprDef * /* expr */ , +extern int ExprResolveModIndex(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveModMask(ExprDef * /* expr */ , +extern int ExprResolveModMask(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* priv */ ); -extern int ExprResolveBoolean(ExprDef * /* expr */ , +extern int ExprResolveBoolean(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveInteger(ExprDef * /* expr */ , +extern int ExprResolveInteger(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveFloat(ExprDef * /* expr */ , +extern int ExprResolveFloat(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveString(ExprDef * /* expr */ , +extern int ExprResolveString(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveKeyName(ExprDef * /* expr */ , +extern int ExprResolveKeyName(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveEnum(ExprDef * /* expr */ , +extern int ExprResolveEnum(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , - LookupEntry * /* values */ + const LookupEntry * /* values */ ); -extern int ExprResolveMask(ExprDef * /* expr */ , +extern int ExprResolveMask(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ ); -extern int ExprResolveKeySym(ExprDef * /* expr */ , +extern int ExprResolveKeySym(const ExprDef * /* expr */ , ExprResult * /* val_rtrn */ , IdentLookupFunc /* lookup */ , XPointer /* lookupPriv */ |