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/rt-transition/runtime/smlnj-rt-lib/record-concat.c
ViewVC logotype

View of /sml/branches/rt-transition/runtime/smlnj-rt-lib/record-concat.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2982 - (download) (as text) (annotate)
Sat Apr 12 16:08:19 2008 UTC (13 years, 6 months ago) by jhr
File size: 641 byte(s)
  Minor edits
/* record-concat.c
 * COPYRIGHT (c) 1998 Bell Labs, Lucent Technologies.
 * Concatenation for records.

#include "ml-base.h"
#include "ml-values.h"
#include "ml-state.h"
#include "ml-objects.h"
#include "gc.h"
#include "smlnj-runtime.h"
#include "ml-c.h"

/* recordConcat : (object * object) -> object
ML_object_t recordConcat (ml_state_t *msp, ML_object_t r1, ML_object_t r2)
    if (r1 == ML_unit)
	return r2;
    else if (r2 == ML_unit)
	return r1;
    else {
	ml_val_t	res = RecordConcat (msp, r1, r2);

	if (res == ML_unit)
	    return RAISE_ERROR(msp, "recordConcat: not a record");
	    return res;


ViewVC Help
Powered by ViewVC 1.0.0