Revision 1106 trunk/src/tools99/tescl.h

tescl.h (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 * 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "BSD" license.
9
 * 
9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
26 26
 * specific prior written permission.
27
 * 
27
 *
28 28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......
61 61
  while (tmp->next != this) tmp = tmp->next;
62 62
  return (tmp);
63 63
}
64
 
64

  
65 65
int  clist::length(const int & max)
66 66
{
67 67
  int num = 1;
......
79 79

  
80 80
clist::clist(const clist & t)
81 81
{
82
  clist& tmp=t.here(); 
82
  clist& tmp=t.here();
83 83
  next = t.next;
84 84
  tmp.next = this;
85 85
}
86
 
87
 
86

  
88 87
clist::~clist()
89 88
{
90 89
  if (next == here())
......
157 156
  shape = v.shape;
158 157
  s = v.s;
159 158
}
160
 
161
 
159

  
162 160
adstring operator+(const adstring & u, const adstring & v)
163 161
{
164 162
  int us = u.size ();

Also available in: Unified diff