2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Just in case we're not in a build environment, make sure that 2N/A * TEXT_DOMAIN gets set to something. 2N/A * (re)allocate argv array 2N/A /* allocate in chunks */ 2N/A /* zero out new stuff */ 2N/A /* adjust for new size */ 2N/A * (re)allocate line array 2N/A /* allocate in chunks */ 2N/A /* zero out new stuff */ 2N/A /* adjust for new size */ 2N/A /* we can count on '\n\0' as the last characters */ 2N/A /* allocate context buffer "file line XXX" */ 2N/A while (p < e && *p !=
'\0') {
2N/A /* allocate new line */ 2N/A /* coalesce \ continuations */ 2N/A while (*t !=
'\n') {
2N/A if ((*t ==
'\\') && (*(t +
1) ==
'\n')) {
2N/A /* leading whitespace */ 2N/A while ((p < e) && (*p !=
'\n')) {
2N/A /* allocate new token */ 2N/A /* find end of token */ 2N/A /* eat white space */ 2N/A /* fill in the rest */ 2N/A /* if cname is NULL then the meta/hsp name is invalid */ 2N/A * read in md.tab file and return struct 2N/A /* allocate table */ 2N/A /* return success if file was correctly parsed */ 2N/A /* cleanup, return error */ 2N/A /* if name is not legal meta name then return NULL */