| 1 |
– |
/* Copyright (c) 1994 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* Header file for tracking hierarchical object names |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
|
#include <stdio.h> |
| 9 |
+ |
#include <stdlib.h> |
| 10 |
|
#include <string.h> |
| 11 |
|
#include "parser.h" |
| 12 |
|
|
| 26 |
|
{ |
| 27 |
|
if (ac == 1) { /* just pop top object */ |
| 28 |
|
if (obj_nnames < 1) |
| 29 |
< |
return(MG_OK); /* should be error? */ |
| 29 |
> |
return(MG_ECNTXT); |
| 30 |
|
free((MEM_PTR)obj_name[--obj_nnames]); |
| 31 |
|
obj_name[obj_nnames] = NULL; |
| 32 |
|
return(MG_OK); |