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

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/c-libs/smlnj-runtime/blast-in.c
ViewVC logotype

Annotation of /sml/trunk/src/runtime/c-libs/smlnj-runtime/blast-in.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download) (as text)

1 : monnier 249 /* blast_in.c
2 :     *
3 :     * COPYRIGHT (c) 1994 by AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "ml-base.h"
7 :     #include "ml-values.h"
8 :     #include "ml-objects.h"
9 :     #include "ml-c.h"
10 :     #include "heap-io.h"
11 :     #include "cfun-proto-list.h"
12 :    
13 :     /* _ml_RunT_blast_in : string -> 'a
14 :     *
15 :     * Build an ML object from a string.
16 :     */
17 :     ml_val_t _ml_RunT_blast_in (ml_state_t *msp, ml_val_t arg)
18 :     {
19 :     bool_t errFlg = FALSE;
20 :     ml_val_t obj;
21 :    
22 :     obj = BlastIn (msp, PTR_MLtoC(Byte_t, arg), OBJ_LEN(arg), &errFlg);
23 :    
24 :     if (errFlg)
25 :     return RAISE_ERROR(msp, "blast_in");
26 :     else
27 :     return obj;
28 :    
29 :     } /* end of _ml_RunT_blast_in */
30 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0