[Commit] nickle ChangeLog, 1.111, 1.112 builtin.c, 1.21, 1.22 builtin.h, 1.10, 1.11

Keith Packard commit at keithp.com
Fri Dec 10 23:46:52 PST 2004


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv5562

Modified Files:
	ChangeLog builtin.c builtin.h 
Log Message:
2004-12-10  Keith Packard  <keithp at keithp.com>

	* builtin.c: (BuiltinSetUserdefType), (BuiltinType):
	* builtin.h:
	Expose mechanism for using user-defined types in builtin functions


Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- ChangeLog	11 Dec 2004 06:02:23 -0000	1.111
+++ ChangeLog	11 Dec 2004 07:46:49 -0000	1.112
@@ -1,5 +1,11 @@
 2004-12-10  Keith Packard  <keithp at keithp.com>
 
+	* builtin.c: (BuiltinSetUserdefType), (BuiltinType):
+	* builtin.h:
+	Expose mechanism for using user-defined types in builtin functions
+
+2004-12-10  Keith Packard  <keithp at keithp.com>
+
 	* Makefile.am:
 	* builtin-namespaces.h:
 	* builtin-sockets.c: (import_Socket_namespace):

Index: builtin.c
===================================================================
RCS file: /local/src/CVS/nickle/builtin.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- builtin.c	11 Dec 2004 06:02:23 -0000	1.21
+++ builtin.c	11 Dec 2004 07:46:49 -0000	1.22
@@ -120,6 +120,14 @@
 					     type)));
 }
 
+static Type *typeUserdef;
+
+void
+BuiltinSetUserdefType (Type *type)
+{
+    typeUserdef = type;
+}
+
 static char *
 BuiltinType (char *format, Type **type)
 {
@@ -171,6 +179,7 @@
     case 'v': t = typePrim[rep_void]; break;
     case 'F': t = typePrim[rep_foreign]; break;
     case 'a': t = typeSockaddr; break;
+    case 'u': t = typeUserdef; break;
     default: 
 	t = 0;
 	write (2, "Invalid builtin argument type\n", 30);

Index: builtin.h
===================================================================
RCS file: /local/src/CVS/nickle/builtin.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- builtin.h	11 Dec 2004 06:02:23 -0000	1.10
+++ builtin.h	11 Dec 2004 07:46:49 -0000	1.11
@@ -31,6 +31,9 @@
 BuiltinNamespace (NamespacePtr  *namespacep,
 		  char		*string);
 
+void
+BuiltinSetUserdefType (Type *type);
+
 SymbolPtr
 BuiltinException (NamespacePtr  *namespacep,
 		  char		*string,




More information about the Commit mailing list