Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/idlbasis-devel/src/runtime/config/gen-bc-instr-def.c
ViewVC logotype

View of /sml/branches/idlbasis-devel/src/runtime/config/gen-bc-instr-def.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 848 - (download) (as text) (annotate)
Mon Jun 25 19:29:29 2001 UTC (19 years, 9 months ago)
File size: 480 byte(s)
This commit was manufactured by cvs2svn to create branch
/* gen-bc-instr-def.c
 * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.
 * A program to generate #defines for the bytecode instruction opcodes.

#include <stdio.h>
#include "gen.h"
#include "bc.h"
#include "print-bc.h"

main ()
    int		i;
    FILE	*f;

    f = OpenFile ("bc-instr-def.h", "_BC_INSTR_DEF_");

    for (i = 0;  i < NUM_BC_INSTRS;  i++)
	fprintf(f, "#define %-23s %d\n", instrTbl[i].instrName, i);

    CloseFile (f, "_BC_INSTR_DEF_");

    exit (0);

ViewVC Help
Powered by ViewVC 1.0.0