The Meta-Environment API

MEPT-args.h File Reference

#include <MEPT.h>

Include dependency graph for MEPT-args.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int PT_indexOfTreeInArgs (PT_Args args, PT_Tree tree)
 Returns the index of the given tree in the list of arguments given.
PT_Args PT_removeArgsLiterals (PT_Args args)
 Removes all literal trees from a list of arguments.
PT_Args PT_removeArgsTree (PT_Args args, PT_Tree tree)
 Removes the given tree from the given list of arguments.


Function Documentation

int PT_indexOfTreeInArgs PT_Args  args,
PT_Tree  tree
 

Returns the index of the given tree in the list of arguments given.

Parameters:
args the list of arguments to search through.
tree the tree to search for in the list of arguments.
Returns:
the index of the first occurence of tree in args; or -1 if tree is not in args.

Definition at line 53 of file MEPT-args.c.

PT_Args PT_removeArgsLiterals PT_Args  args  ) 
 

Removes all literal trees from a list of arguments.

Parameters:
args list of arguments
Returns:
a new list of arguments without any literals

Definition at line 15 of file MEPT-args.c.

PT_Args PT_removeArgsTree PT_Args  args,
PT_Tree  tree
 

Removes the given tree from the given list of arguments.

Parameters:
args the arguments to remove the element from.
tree the tree to remove from the arguments.
Returns:
the new list of arguments without the given tree.

Definition at line 40 of file MEPT-args.c.


Generated on Thu Feb 11 11:26:32 2010 for pt-support by  doxygen 1.4.6