| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 157 |
|
the_node->the_data.mbrs.memberList[i] = atoi( foo ); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
+ |
free(list_str); |
| 161 |
|
return the_node; |
| 162 |
|
} |
| 163 |
|
|
| 187 |
|
foo = strtok(list_str, " ,;\t"); |
| 188 |
|
the_node->the_data.cnstr.constraint_val = atof( foo ); |
| 189 |
|
|
| 190 |
+ |
free(list_str); |
| 191 |
|
return the_node; |
| 192 |
|
} |
| 193 |
|
|
| 223 |
|
foo = strtok(NULL, " ,;\t"); |
| 224 |
|
the_node->the_data.ort.psi = atof( foo ); |
| 225 |
|
|
| 226 |
+ |
free(list_str); |
| 227 |
|
return the_node; |
| 228 |
|
} |
| 229 |
|
|
| 259 |
|
foo = strtok(NULL, " ,;\t"); |
| 260 |
|
the_node->the_data.pos.z = atof( foo ); |
| 261 |
|
|
| 262 |
< |
|
| 262 |
> |
free(list_str); |
| 263 |
|
return the_node; |
| 264 |
|
} |
| 265 |
|
|
| 301 |
|
struct node_tag* the_node; |
| 302 |
|
the_node = ( struct node_tag* )malloc( sizeof( node ) ); |
| 303 |
|
|
| 304 |
< |
// The guillotine statement: |
| 304 |
> |
/* The guillotine statement:*/ |
| 305 |
|
the_node->type = CUTOFFGROUP_HEAD; |
| 306 |
|
the_node->index = index; |
| 307 |
|
the_node->next_stmt = NULL; |
| 397 |
|
|
| 398 |
|
|
| 399 |
|
int count_tokens(char *line, char *delimiters) { |
| 400 |
< |
/* PURPOSE: RETURN A COUNT OF THE NUMBER OF TOKENS ON THE LINE. */ |
| 400 |
> |
/* PURPOSE: RETURN A COUNT OF THE NUMBER OF TOKENS ON THE LINE. */ |
| 401 |
|
|
| 402 |
|
char *working_line; /* WORKING COPY OF LINE. */ |
| 403 |
|
int ntokens; /* NUMBER OF TOKENS FOUND IN LINE. */ |