ftp.nice.ch/pub/next/unix/tools/jug.0.7.N.bs.tar.gz#/readjug.h

This is readjug.h in view mode; [Download] [Up]

/*  (c) 1991 S.Hawtin
   Permission is granted to make any use of this file provided
    1) It is not used for commercial gain without my permission
    2) This notice is included in all copies
    3) Altered copies are marked as such

  No liability is accepted for the contents of the file.

*/

#define TIME_START	-1
#define TIME_INVALID	-2

#define TOK_NULL	0
#define TOK_STR 	1
#define TOK_NUM 	2
#define TOK_PUNCT	3
#define TOK_EOF		4
#define TOK_CMD		5
#define TOK_BALL	6
#define TOK_HAND	7

#define SUB_NULL	0
#define SUB_X		4
#define SUB_Y		5
#define SUB_Z		6
#define SUB_DX		7
#define SUB_DY		8
#define SUB_DZ		9
#define SUB_LABEL	10
#define SUB_DLABEL	11
#define SUB_COLON	12
#define SUB_COMMA	13

#define STATE_START   0
#define STATE_COMMENT 1
#define STATE_STR     2
#define STATE_NUM     3
#define STATE_GLOBAL  4

#define CMD_START 0
#define CMD_DONE  1

/* Define a structure to store tokens */

typedef struct
   {int tok_type;
    int sub_type;
    int value;
    char str[20];
    } Token;

#define GLOBAL_INT	1
#define GLOBAL_STR	2
#define GLOBAL_FLOAT	3

typedef struct
   {
    char str[20];
    int type;
    void *value;
    } SetGlobal;

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.