annotate ueda/libunet/unetrd.h @ 9:faeb83c43f1c

libunet started
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 01 Aug 2015 20:50:59 +0000
parents
children 33e4c4cdf493
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 * Data structures for the unet reader
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 */
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 struct unetrd_state {
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 char *filename;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 FILE *stream;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 int lineno;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 };
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 struct unetrd_out {
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 int typecode;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 char *keyword;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 char *objname;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 char *connect_to_net;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 char *nc_comment;
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17 };
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 #define UNETOBJ_CLOSINGBRACE 0
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 #define UNETOBJ_NET 1
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 #define UNETOBJ_COMPONENT 2
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22 #define UNETOBJ_STARPOINT 3
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23 #define UNETOBJ_PRIMITIVE 4
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 #define UNETOBJ_ALTNAME 5
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 #define UNETOBJ_PIN 6
faeb83c43f1c libunet started
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26 #define UNETOBJ_PINMAP 7