source: git/MP/examples/util.c @ 678cfd

spielwiese
Last change on this file since 678cfd was 678cfd, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r337, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@338 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 399 bytes
Line 
1/*
2    util.c - some utility routines to support the examples.
3*/
4
5#include "MP.h"
6
7/* we assume here that annot_type is in the correct range! */
8char * annot_to_str(MP_DictTag_t dtag, MP_AnnotType_t annot_type)
9{
10    switch(dtag) {
11    case MP_MpDict    : return MpAnnotations[annot_type];
12    case MP_ProtoDict : return ProtoAnnotations[annot_type];
13    default : return "Unknown Annot";
14    }
15}
Note: See TracBrowser for help on using the repository browser.