예제 #1
0
                Arg(Flux_Pts flx) :
                    b (Pt2di(0,0),Pt2di(0,0))
                {
                    pts =  Std_Pack_Of_Pts<INT>::new_pck(2,1000);
                    ELISE_COPY
                    (
                         flx,
                         Virgule(FX,FY),
                         push_values(&pts)
                     );

                    b = Box2di(pts->_pts[0],pts->_pts[1],pts->nb());
                    b._p1 =  b._p1 + Pt2di(1,1);
                }
예제 #2
0
/*
** Store entry's attributes and values at the given table.
** @param entry Current entry.
** @param tab Absolute stack index of the table.
*/
static void set_attribs (lua_State *L, LDAP *ld, LDAPMessage *entry, int tab) {
	char *attr;
	BerElement *ber = NULL;
	for (attr = ldap_first_attribute (ld, entry, &ber);
		attr != NULL;
		attr = ldap_next_attribute (ld, entry, ber))
	{
		lua_pushstring (L, attr);
		push_values (L, ld, entry, attr);
		lua_rawset (L, tab); /* tab[attr] = vals */
		ldap_memfree (attr);
	}
	ber_free (ber, 0); /* don't need to test if (ber == NULL) */
}
void DocumentPropertiesForm::ok_clicked()
{
  push_values();
}