Commit e78cd4574877a314d67df4352e1c78fa62e18543

Authored by Georg Hopp
1 parent e8b5d7d5

add zero uuid instance

... ... @@ -53,6 +53,8 @@ CLASS(Uuid) {
53 53 } uuid;
54 54 };
55 55
  56 +extern Uuid uuidZero;
  57 +
56 58 /*
57 59 * generator functions...these are not really part of the object
58 60 * but generate a uuid object.
... ...
... ... @@ -53,4 +53,8 @@ uuidClone(void * _this, void * _base)
53 53 INIT_IFACE(Class, uuidCtor, uuidDtor, uuidClone);
54 54 CREATE_CLASS(Uuid, NULL, IFACE(Class));
55 55
  56 +INSTANCE(Uuid, uuidZero) {
  57 + .uuid.value = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
  58 +}};
  59 +
56 60 // vim: set ts=4 sw=4:
... ...
Please register or login to post a comment