User`s guide
5 Controlling Code Generation
5-36
Default Width
Not specifying a page width formatting option uses the default of 80. Using
mcc -xg gasket
generates this code segment:
012345678
12345678901234567890123456789012345678901234567890123456789012345678901234567890
for (mclForStart(
&viter__, mlfScalar(1), mclVa(numPoints, "numPoints"), NULL);
mclForNext(&viter__, &i);
) {
/*
* startPoint = floor((corners(theRand(i),:)+startPoint)/2);
*/
mclMline(21);
mlfAssign(
&startPoint,
mlfFloor(
mclMrdivide(
mclPlus(
mlfIndexRef(
mclVv(corners, "corners"),
"(?,?)",
mlfIndexRef(
mclVv(theRand, "theRand"), "(?)", mclVv(i, "i")),
mlfCreateColonIndex()),
mclVv(startPoint, "startPoint")),
mlfScalar(2))));
.
.
.
Page Width = 40
This example specifies a page width of 40:
mcc -xg -F page-width:40 gasket
The segment of generated code is
012345678
12345678901234567890123456789012345678901234567890123456789012345678901234567890
mclMline(13);
mlfAssign(
&theImage,
mlfZeros(
mlfScalar(1000),
mlfScalar(1000),