|
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 s
Length: 2032 (0x7f0) Types: TextFile Names: »showentry.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/quipu/dish/showentry.c«
/* showentry.c - */ #ifndef lint static char *rcsid = "$Header: /f/osi/quipu/dish/RCS/showentry.c,v 6.0 89/03/18 23:40:55 mrose Rel $"; #endif /* * $Header: /f/osi/quipu/dish/RCS/showentry.c,v 6.0 89/03/18 23:40:55 mrose Rel $ * * * $Log: showentry.c,v $ * Revision 6.0 89/03/18 23:40:55 mrose * Release 5.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 "quipu/dua.h" #include "quipu/entry.h" #include "quipu/read.h" extern Entry current_entry; extern DN current_dn; extern PS opt; extern PS rps; extern DN dn; char move_flag; extern LLog *log_dua; call_showentry (argc, argv) int argc; char **argv; { Attr_Sequence eptr; char *vect[2]; int x; char name_flag = FALSE; extern char all_flag; extern Attr_Sequence as_flag; vect[0] = "showentry"; move_flag = FALSE; for (x=1; x<argc; x++) { if (test_arg(argv[x],"-noname",3)) name_flag = FALSE; else if (test_arg (argv[x],"-name",2)) name_flag = TRUE; else if (test_arg (argv[x], "-move",2)) move_flag = TRUE; else if (test_arg (argv[x], "-nomove",3)) move_flag = FALSE; else continue; shuffle_up (argc--,argv,x--); } if ((argc = read_cache (argc, argv)) < 0) return; if (argc != 1) { ps_printf (opt,"Unknown option %s\n",argv[1]); Usage (argv[0]); return; } if (current_entry == NULLENTRY) { ps_print (opt,"Specify an entry \n"); /* this CAN happen - when the entry is not cache, but -noread */ return; } if (name_flag) { vect [1] = "-compact"; call_showname (2,vect); } if (all_flag) eptr = current_entry->e_attributes; else eptr = as_flag; for (; eptr != NULLATTR; eptr = eptr->attr_link) showattribute (eptr->attr_type); consolidate_move(); }