MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / OutputConstant

Function OutputConstant

blakcomp/codeutil.c:130–134  ·  view source on GitHub ↗

/ * OutputConstant: write out a constant, after adding the appropriate * tag bits to the beginning of the number. The tag bits indicate the * type of the constant, and are given in bkod.h. */

Source from the content-addressed store, hash-verified

128 * type of the constant, and are given in bkod.h.
129 */
130void OutputConstant(FILE *outfile, const_type c)
131{
132 int outnum = const_to_int(c);
133 fwrite(&outnum, sizeof(outnum), 1, outfile);
134}
135/************************************************************************/
136/*
137 * OutputBaseExpression: Given a base expression, first write out 1 byte

Callers 5

OutputBaseExpressionFunction · 0.85
flatten_exprFunction · 0.85
codegen_parameterFunction · 0.85
codegen_classvarFunction · 0.85
codegen_propertyFunction · 0.85

Calls 1

const_to_intFunction · 0.85

Tested by

no test coverage detected