[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
- Previous message: [Commit] nickle ChangeLog, 1.110, 1.111 Makefile.am, 1.62,
1.63 builtin-namespaces.h, 1.4, 1.5 builtin-sockets.c, 1.15,
1.16 builtin.c, 1.20, 1.21 builtin.h, 1.9, 1.10 configure.in,
1.38, 1.39 execute.c, 1.93, 1.94 file.c, 1.64, 1.65 gram.y,
1.143, 1.144 io.c, 1.12, 1.13 lex.l, 1.80, 1.81 mem.h, 1.16,
1.17 nickle.h, 1.120, 1.121 sched.c, 1.58, 1.59 string.c, 1.19,
1.20 value.c, 1.49, 1.50 value.h, 1.108, 1.109
- Next message: [Commit] nickle ChangeLog, 1.112, 1.113 builtin-foreign.c, NONE,
1.1 foreign.c, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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,
- Previous message: [Commit] nickle ChangeLog, 1.110, 1.111 Makefile.am, 1.62,
1.63 builtin-namespaces.h, 1.4, 1.5 builtin-sockets.c, 1.15,
1.16 builtin.c, 1.20, 1.21 builtin.h, 1.9, 1.10 configure.in,
1.38, 1.39 execute.c, 1.93, 1.94 file.c, 1.64, 1.65 gram.y,
1.143, 1.144 io.c, 1.12, 1.13 lex.l, 1.80, 1.81 mem.h, 1.16,
1.17 nickle.h, 1.120, 1.121 sched.c, 1.58, 1.59 string.c, 1.19,
1.20 value.c, 1.49, 1.50 value.h, 1.108, 1.109
- Next message: [Commit] nickle ChangeLog, 1.112, 1.113 builtin-foreign.c, NONE,
1.1 foreign.c, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list