[OpenBIOS] r103 - fcode-utils/detok

svn at openbios.org svn at openbios.org
Mon Oct 30 11:04:25 CET 2006


Author: stepan
Date: 2006-10-30 11:04:23 +0100 (Mon, 30 Oct 2006)
New Revision: 103

Modified:
   fcode-utils/detok/addfcodes.h
   fcode-utils/detok/detok.h
Log:
detok 1.0.2 merge


Modified: fcode-utils/detok/addfcodes.h
===================================================================
--- fcode-utils/detok/addfcodes.h	2006-10-30 09:50:41 UTC (rev 102)
+++ fcode-utils/detok/addfcodes.h	2006-10-30 10:04:23 UTC (rev 103)
@@ -39,6 +39,16 @@
 
 /* ************************************************************************** *
  *
+ *      Global Variables Exported
+ *
+ **************************************************************************** */
+
+/*  For "special function" identification  */
+extern u16 *double_lit_code;
+
+
+/* ************************************************************************** *
+ *
  *      Function Prototypes / Functions Exported:
  *
  **************************************************************************** */

Modified: fcode-utils/detok/detok.h
===================================================================
--- fcode-utils/detok/detok.h	2006-10-30 09:50:41 UTC (rev 102)
+++ fcode-utils/detok/detok.h	2006-10-30 10:04:23 UTC (rev 103)
@@ -35,10 +35,28 @@
 
 #include "types.h"
 
+/*  Structure of an entry in a token-table
+ *  Consists of:
+ *      (1)  Name of the token
+ *      (2)  FCode of the token
+ *      (3)  Link-pointer to previous entry.
+ */
+
+typedef struct token {
+	char *name;
+	u16 fcode;
+	struct token *prev;
+} token_t;
+
+/*  Macro for creating an entry in a token-table data-array  */
+#define TOKEN_ENTRY(num, name)   { name, (u16)num, (token_t *)NULL }
+
+
 /*  Prototypes for functions exported from
  *   detok.c  decode.c  printformats.c  pcihdr.c  and  dictionary.c
  */
 
+void link_token(token_t *curr_token);
 void add_token(u16 number, char *name);
 void init_dictionary(void);
 void reset_dictionary(void);




More information about the OpenBIOS mailing list