X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fobject.h;h=99ff28263164aaa96b3eb6e3fc4b4698c03906bf;hb=a0de81cbe1f6282fdc13f6e61d07ebf0ae1c0f4c;hp=c1a91798291492b6a8d38a64071f3bb92f9f2a16;hpb=cedf35c1d6510fe8511bf4d352c842c87de63b88;p=libucw.git diff --git a/lib/object.h b/lib/object.h index c1a91798..99ff2826 100644 --- a/lib/object.h +++ b/lib/object.h @@ -10,8 +10,7 @@ #ifndef _SHERLOCK_OBJECT_H #define _SHERLOCK_OBJECT_H -/* FIXME: Buggy objects with long attributes still exist in old databases. Decrease to 1024 one day. */ -#define MAX_ATTR_SIZE 4096 /* Maximum length an attribute can ever have (including name and trailing 0) */ +#define MAX_ATTR_SIZE 1024 /* Maximum length an attribute can ever have (including name and trailing 0) */ struct fastbuf; @@ -41,5 +40,7 @@ struct oattr *obj_set_attr_num(struct odes *, uns, uns); struct oattr *obj_add_attr(struct odes *, uns, byte *); struct oattr *obj_prepend_attr(struct odes *, uns, byte *); struct oattr *obj_insert_attr(struct odes *o, struct oattr *first, struct oattr *after, byte *v); +void obj_move_attr_to_head(struct odes *o, uns); +void obj_move_attr_to_tail(struct odes *o, uns); #endif