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/trunk/src/runtime/config/gen-win32-sigtbl.c
ViewVC logotype

View of /sml/trunk/src/runtime/config/gen-win32-sigtbl.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 250 - (download) (as text) (annotate)
Sat Apr 17 18:57:03 1999 UTC (22 years ago) by monnier
File size: 855 byte(s)
This commit was generated by cvs2svn to compensate for changes in r249,
which included commits to RCS files with non-trunk default branches.
/* gen-win32-sigtbl.c
 * COPYRIGHT (c) 1996 Bell Laboratories, Lucent Technologies
 * generate the "win32-sigtbl.c" file.

#include <signal.h>
#include <stdio.h>
#include "gen.h"
#include "win32-sigtab.h"

#ifndef DST_FILE
#define DST_FILE "win32-sigtbl.c"

main ()
    FILE	    *f;
    int i;

    f = OpenFile (DST_FILE, NIL(char *));

    fprintf (f, "\n");

    fprintf (f, "PVT sys_const_t SigInfo[NUM_SIGS] = {\n");
    for (i = 0; i < NUM_SIGS; i++) {
      fprintf(f, "\t{ %d, \"%s\" },\n", win32SigTab[i].n, win32SigTab[i].sname);
    fprintf (f, "};\n");

    fprintf (f, "PVT sysconst_tbl_t SigTbl = {\n");
    fprintf (f, "    /* numConsts */ NUM_SIGS,\n");
    fprintf (f, "    /* consts */    SigInfo\n");
    fprintf (f, "};\n");

    CloseFile (f, NIL(char *));

    exit (0);


/* end of gen-win32-sigtbl.c */

ViewVC Help
Powered by ViewVC 1.0.0