~ubuntu-branches/ubuntu/wily/acl2/wily

« back to all changes in this revision

Viewing changes to books/workshops/2004/ruiz-et-al/support/dag-quadratic-C/lists.h

  • Committer: Package Import Robot
  • Author(s): Camm Maguire
  • Date: 2015-01-16 10:35:45 UTC
  • mfrom: (3.3.26 sid)
  • Revision ID: package-import@ubuntu.com-20150116103545-prehe9thgo79o8w8
Tags: 7.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/// Ordered lists
 
2
/// Author: ChesKo
 
3
///****************************************************************************
 
4
 
 
5
#include <stdio.h>
 
6
 
 
7
///****************************************************************************
 
8
/// Ordered lists
 
9
///****************************************************************************
 
10
 
 
11
typedef struct varlist {
 
12
  char symbol[5];
 
13
  int direction;
 
14
  struct varlist *rest;
 
15
} Varlist;
 
16
 
 
17
Varlist *varlistadd(Varlist *, char [5], int);
 
18
 
 
19
///****************************************************************************
 
20
/// Integer lists
 
21
///****************************************************************************
 
22
 
 
23
typedef struct intlist {
 
24
    int val;
 
25
    struct intlist *rest;
 
26
} Intlist;
 
27
 
 
28
Intlist *intlistadd(Intlist *, int);
 
29
int intlistlength(Intlist *);
 
30
void print_intlist(Intlist *);
 
31
 
 
32
///****************************************************************************