Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

ChangeAnyToCString (lines 6059-6077)

6059  ! And this calls PrintAnyToArray on a particular array, jiggering
6060  ! the result to be a Glulx C-style ($E0) string.
6061   
6062  Constant GG_ANYTOSTRING_LEN 66;
6063  Array AnyToStrArr -> GG_ANYTOSTRING_LEN+1;
6064   
6065  [ ChangeAnyToCString _vararg_count ix len;
6066      ix = GG_ANYTOSTRING_LEN-2;
6067      @copy ix sp;
6068      ix = AnyToStrArr+1;
6069      @copy ix sp;
6070      ix = _vararg_count+2;
6071      @call PrintAnyToArray ix len;
6072      AnyToStrArr->0 = $E0;
6073      if (len >= GG_ANYTOSTRING_LEN)
6074          len = GG_ANYTOSTRING_LEN-1;
6075      AnyToStrArr->(len+1) = 0;
6076      return AnyToStrArr;
6077  ];


Last updated 27 February 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson assisted by C Knight.