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/c-libs/win32/win32-errors.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/win32/win32-errors.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 651 - (download) (as text) (annotate)
Thu Jun 1 18:34:03 2000 UTC (20 years, 1 month ago) by monnier
File size: 489 byte(s)
bring revisions from the vendor branch to the trunk
/* win32-errors.c
 * COPYRIGHT (c) 1996 Bell Laboratories, Lucent Technologies
 * interface to win32 error functions

#include <windows.h>
#include "ml-base.h"
#include "ml-values.h"
#include "ml-objects.h"
#include "ml-c.h"

/* _ml_win32_get_last_error: unit -> word
ml_val_t _ml_win32_get_last_error(ml_state_t *msp, ml_val_t arg)
    Word_t	err = (Word_t)GetLastError();
    ml_val_t	res;

    WORD_ALLOC(msp, res, err);

    return res;

/* end of win32-errors.c */

ViewVC Help
Powered by ViewVC 1.0.0