/*
 *  TMENU.INF dump tool

 *  date            ed  notes
 *  --------------  --  -------------------------------------
 *  90/08/16        01  malor 君作のものをいただいて手直し
 *  90/11/06 21:05  02  .inf ファイルをパラメータで指定できるようにした
*/

#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>



#define INFBUFSIZ   (sizeof(infrec)-1)
#define IR_FNAMELEN  8
#define IR_NAMELEN  12
#define IR_CMDLEN   64

typedef unsigned char   u_char ;

typedef struct
{
    char    fname[8] ;  /*  ベースネーム        */
    char    dot[1] ;    /*  "."                 */
    char    fext[3] ;   /*  拡張子              */
    char    dirflag ;   /*  ディレクトリフラグ  */
    char    dum ;       /*  ダミー              */
    u_char  icon_num ;  /*  アイコン番号        */
    char    null[15] ;  /*  Reserve ?           */
    char    space[21] ; /*  Reserve ?           */
    u_char  name[13] ;  /*  アイテム名          */
    u_char  cmd[64] ;   /*  パス名とパラメータ  */
    u_char  dummy ;     /*  文字列終端子 (ファイルにはない)  */
}   infrec ;

typedef struct  _INF
{
    struct  _INF    *next ;
    unsigned char   icon_num ;  /*  アイコン番号        */
    unsigned char   name[13] ;  /*  アイテム名          */
    unsigned char   cmd[65] ;   /*  パス名              */
    unsigned char   prm[65] ;   /*  パラメータ          */
}   INF ;


