Skip to content

Commit d16e76b

Browse files
author
David Kinder
committed
Fix statistics output for Glulx (Mantis 1267)
1 parent 69b2a0d commit d16e76b

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

ReleaseNotes.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ <h3>Bugs fixed</h3>
145145
];
146146
</pre>
147147
is now supported for Glulx. [Mantis 1214]
148+
<li><p>The statistics produced by the <tt>-s</tt> compiler switch are now correct for Glulx. [Mantis 1267]
148149
</ul>
149150

150151
<h2>Compiler 6.32</h2>

header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* */
3131
/* ------------------------------------------------------------------------- */
3232

33-
#define RELEASE_DATE "18th April 2014"
33+
#define RELEASE_DATE "10th May 2014"
3434
#define RELEASE_NUMBER 1633
3535
#define GLULX_RELEASE_NUMBER 38
3636
#define MODULE_VERSION_NUMBER 1

tables.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,25 +1633,25 @@ Out: %s %s %d.%c%c%c%c%c%c (%ld%sK long):\n",
16331633

16341634
printf("\
16351635
%6d classes (maximum %3d) %6d objects (maximum %3d)\n\
1636-
%6d global vars (maximum 233) %6d variable/array space (maximum %d)\n",
1636+
%6d global vars (maximum %3d) %6d variable/array space (maximum %d)\n",
16371637
no_classes, MAX_CLASSES,
1638-
no_objects, ((version_number==3)?255:(MAX_OBJECTS-1)),
1639-
no_globals,
1638+
no_objects, MAX_OBJECTS,
1639+
no_globals, MAX_GLOBAL_VARIABLES,
16401640
dynamic_array_area_size, MAX_STATIC_DATA);
16411641

16421642
printf(
16431643
"%6d verbs (maximum %3d) %6d dictionary entries (maximum %d)\n\
16441644
%6d grammar lines (version %d) %6d grammar tokens (unlimited)\n\
16451645
%6d actions (maximum %3d) %6d attributes (maximum %2d)\n\
1646-
%6d common props (maximum %2d) %6d individual props (unlimited)\n",
1646+
%6d common props (maximum %3d) %6d individual props (unlimited)\n",
16471647
no_Inform_verbs, MAX_VERBS,
16481648
dict_entries, MAX_DICT_ENTRIES,
16491649
no_grammar_lines, grammar_version_number,
16501650
no_grammar_tokens,
16511651
no_actions, MAX_ACTIONS,
1652-
no_attributes, ((version_number==3)?32:48),
1653-
no_properties-2, ((version_number==3)?30:62),
1654-
no_individual_properties - 64);
1652+
no_attributes, NUM_ATTR_BYTES*8,
1653+
no_properties, INDIV_PROP_START,
1654+
no_individual_properties - INDIV_PROP_START);
16551655

16561656
if (track_unused_routines)
16571657
{
@@ -1667,7 +1667,7 @@ Out: %s %s %d.%c%c%c%c%c%c (%ld%sK long):\n",
16671667
"%6ld characters used in text %6ld bytes compressed (rate %d.%3ld)\n\
16681668
%6d abbreviations (maximum %d) %6d routines (unlimited)\n\
16691669
%6ld instructions of code %6d sequence points\n\
1670-
%6ld bytes readable memory used (maximum 65536)\n\
1670+
%6ld bytes writable memory used %6ld bytes read-only memory used\n\
16711671
%6ld bytes used in machine %10ld bytes free in machine\n",
16721672
(long int) total_chars_trans,
16731673
(long int) strings_length,
@@ -1676,7 +1676,8 @@ Out: %s %s %d.%c%c%c%c%c%c (%ld%sK long):\n",
16761676
no_abbreviations, MAX_ABBREVS,
16771677
no_routines,
16781678
(long int) no_instructions, no_sequence_points,
1679-
(long int) Write_Code_At,
1679+
(long int) (Out_Size - Write_RAM_At),
1680+
(long int) Write_RAM_At,
16801681
(long int) Out_Size,
16811682
(long int)
16821683
(((long int) (limit*1024L)) - ((long int) Out_Size)));

0 commit comments

Comments
 (0)