src/rl_addons/rl_accel/_rl_accel.c
changeset 4389 61a7f0840d00
parent 4330 617ffa6bbdc8
child 4413 dec33c7e7922
equal deleted inserted replaced
4388:9f93d62b9f6e 4389:61a7f0840d00
    27 #	define max(a,b) ((a)>(b)?(a):(b))
    27 #	define max(a,b) ((a)>(b)?(a):(b))
    28 #endif
    28 #endif
    29 #ifndef min
    29 #ifndef min
    30 #	define min(a,b) ((a)<(b)?(a):(b))
    30 #	define min(a,b) ((a)<(b)?(a):(b))
    31 #endif
    31 #endif
    32 #define VERSION "0.72"
    32 #define VERSION "0.73"
    33 #define MODULE "_rl_accel"
    33 #define MODULE "_rl_accel"
    34 
    34 
    35 struct module_state	{
    35 struct module_state	{
    36 	int moduleLineno;
    36 	int moduleLineno;
    37 #ifndef isPy3
    37 #ifndef isPy3
   442 }
   442 }
   443 
   443 
   444 static PyObject *sameFrag(PyObject *module, PyObject* args)
   444 static PyObject *sameFrag(PyObject *module, PyObject* args)
   445 {
   445 {
   446 	PyObject *f, *g;
   446 	PyObject *f, *g;
   447 	static char *names[] = {"fontName", "fontSize", "textColor", "rise", "underline", "strike", "link", "backColor", NULL};
   447 	static char *names[] = {"fontName", "fontSize", "textColor", "rise", "us_lines", "link", "backColor", NULL};
   448 	int	r=0, t;
   448 	int	r=0, t;
   449 	char **p;
   449 	char **p;
   450 	if (!PyArg_ParseTuple(args, "OO:sameFrag", &f, &g)) return NULL;
   450 	if (!PyArg_ParseTuple(args, "OO:sameFrag", &f, &g)) return NULL;
   451 	if(PyObject_HasAttrString(f,"cbDefn")||PyObject_HasAttrString(g,"cbDefn")
   451 	if(PyObject_HasAttrString(f,"cbDefn")||PyObject_HasAttrString(g,"cbDefn")
   452 		|| PyObject_HasAttrString(f,"lineBreak")||PyObject_HasAttrString(g,"lineBreak")) goto L0;
   452 		|| PyObject_HasAttrString(f,"lineBreak")||PyObject_HasAttrString(g,"lineBreak")) goto L0;