|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 1738 (0x6ca)
Types: TextFile
Names: »tai_init.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/quipu/tai_init.c«
/* tai_init.c - */
#ifndef lint
static char *rcsid = "$Header: /f/osi/quipu/RCS/tai_init.c,v 7.0 89/11/23 22:18:10 mrose Rel $";
#endif
/*
* $Header: /f/osi/quipu/RCS/tai_init.c,v 7.0 89/11/23 22:18:10 mrose Rel $
*
*
* $Log: tai_init.c,v $
* Revision 7.0 89/11/23 22:18:10 mrose
* Release 6.0
*
*/
/*
* NOTICE
*
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
* this agreement.
*
*/
#include "quipu/util.h"
#include "tailor.h"
extern char *dsatailfile;
#define MAXTAIARGS 100
extern LLog *log_dsap;
dsa_tai_init(name)
char *name;
{
FILE *fp;
char buf[BUFSIZ];
char *cp;
isodetailor (name,0);
if( (fp = fopen(cp = isodefile(dsatailfile, 0), "r")) == (FILE *)NULL){
LLOG (log_dsap,LLOG_FATAL, ("Cannot open tailor file '%s'", cp));
fatal (-46, "Cannot open quiputailor");
}
while(fgets(buf, sizeof(buf), fp) != NULLCP)
if ( (*buf != '#') && (*buf != '\n') )
/* not a comment or blank */
if (dsa_tai_string (buf) == NOTOK)
LLOG (log_dsap,LLOG_EXCEPTIONS,("tai_string failed %s",buf));
(void) fclose(fp);
isodexport();
return OK;
}
dsa_tai_string (str)
char * str;
{
char *args[MAXTAIARGS];
char *p, *index();
int ac;
if( (p = index(str, '\n')) != NULLCP)
*p = '\0';
if((ac = sstr2arg(str, MAXTAIARGS, args, " \t,")) == NOTOK) {
LLOG (log_dsap,LLOG_EXCEPTIONS,("too many tailor parameters"));
return(NOTOK);
}
if(ac <= 1) {
LLOG (log_dsap,LLOG_EXCEPTIONS,("no option set",str));
return (NOTOK);
}
return (dsa_sys_tai(ac, args));
}