summaryrefslogtreecommitdiff
path: root/expr.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:18:26 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-03 11:02:11 -0800
commit6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c (patch)
tree45171678d6b1fbfe936bb2586933d3e03c93500a /expr.h
parent299c9762b1dbe53f3297c54e5526aeae767d1a10 (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.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/expr.h b/expr.h
index b0b79dc..7561190 100644
--- a/expr.h
+++ b/expr.h
@@ -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 */