muse_cells.c File Reference

#include "muse_opcodes.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

Include dependency graph for muse_cells.c:


Functions

muse_cell_t muse_cell_type (muse_cell cell)
 Returns the type of the cell data referenced by the given cell reference.
muse_boolean muse_isfn (muse_cell cell)
 Returns MUSE_TRUE if the given cell is a function
  • either native or lambda.

muse_cell muse_head (muse_cell cell)
 Returns the head of the cons cell referred to by the given cell reference.
muse_cell muse_tail (muse_cell cell)
 Returns the tail of the cons cell referred to by the given cell reference.
muse_cell muse_tail_n (muse_cell cell, int n)
 Returns the n-th tail of the given list.
muse_cell muse_next (muse_cell arg)
 (next list) = For traversing lazy lists.
muse_int muse_int_value (muse_cell cell)
 Given an integer or float cell, it returns the value cast to a 64-bit integer.
muse_float muse_float_value (muse_cell cell)
 Given an integer or float cell, it returns the value cast to a 64-bit float.
const muse_charmuse_text_contents (muse_cell cell, int *length)
 Returns a pointer to the characters of the string referenced by the given cell.
const muse_charmuse_symbol_name (muse_cell sym)
 Returns the string name of the given symbol.
muse_cell muse_symbol_value (muse_cell sym)
 Returns the top-most value of the symbol that's on the symbol's value stack.
muse_cell muse_set_cell (muse_cell cell, muse_cell head, muse_cell tail)
 Sets the given cell's head and tail to the given cell references.
muse_cell muse_set_head (muse_cell cell, muse_cell head)
 Sets the head of the given cell.
muse_cell muse_set_tail (muse_cell cell, muse_cell tail)
 Sets the tail of the given cell.
muse_cell muse_set_int (muse_cell int_cell, muse_int value)
 Sets the integer value of an int cell.
muse_cell muse_set_float (muse_cell float_cell, muse_float value)
 Sets the float value of a float cell.
muse_cell muse_set_text (muse_cell text, const muse_char *start, const muse_char *end)
 Copies the given string to the given text cell, modifying the cell's contents.
muse_cell muse_set_ctext (muse_cell text, const muse_char *start)
 Same as muse_set_text, except that it takes a null terminated c-style string instead.
muse_cell muse_define (muse_cell symbol, muse_cell value)
 Sets the value of the symbol.
muse_cell muse_pushdef (muse_cell symbol, muse_cell value)
 Makes the given value the current value of the symbol, without losing the previously assigned set of values.
muse_cell muse_popdef (muse_cell symbol)
 Removes the current value on the symbol's value stack and returns it.
int muse_list_length (muse_cell list)
 Returns the number of elements in the list.
muse_cell muse_dup (muse_cell obj)
 Deep copies the given object.
muse_cell muse_list_last (muse_cell list)
 Returns the last cell of a list or () if the list is itself ().
muse_cell muse_list_append (muse_cell head, muse_cell tail)
 Appends the tail list to the end of the head list and returns the head list.
muse_cell muse_array_to_list (int count, const muse_cell *array, int astep)
 Constructs a new list whose contents are that of the given array in the given order.
muse_cellmuse_list_to_array (muse_cell list, int *lengthptr)
 Constructs a new array with the contents of the list in the given order.
void muse_list_extract (int count, muse_cell list, int lstep, muse_cell *array, int astep)
 Extracts count elements from the list starting with the first element, into the given array.
muse_cell muse_generate_list (muse_list_generator_t generator, void *context)
 Creates a list whose contents are generated by the given generator function.
muse_cell muse_list (const char *format,...)
 Returns a list of the given items.
muse_cellmuse_find_list_element (muse_cell *list, muse_cell element)
 Searches for the given element in the given list and returns a reference to it.

Detailed Description

Author:
Srikumar K. S. (mailto:kumar@muvee.com)
Copyright (c) 2006 Jointly owned by Srikumar K. S. and muvee Technologies Pte. Ltd.

All rights reserved. See LICENSE.txt distributed with this source code or http://muvee-symbolic-expressions.googlecode.com/svn/trunk/LICENSE.txt for terms and conditions under which this software is provided to you.


Generated on Mon Sep 25 23:12:47 2006 for muSE by  doxygen 1.4.7