… | |
… | |
343 | " unshift @INC, '" LIBDIR "';" |
343 | " unshift @INC, '" LIBDIR "';" |
344 | "}" |
344 | "}" |
345 | "" |
345 | "" |
346 | "use urxvt;" |
346 | "use urxvt;" |
347 | }; |
347 | }; |
348 | int argc = sizeof (args) / sizeof (args[0]); |
348 | int argc = ARRAY_LENGTH(args); |
349 | char **argv = args; |
349 | char **argv = args; |
350 | |
350 | |
351 | PERL_SYS_INIT3 (&argc, &argv, &environ); |
351 | PERL_SYS_INIT3 (&argc, &argv, &environ); |
352 | perl = perl_alloc (); |
352 | perl = perl_alloc (); |
353 | perl_construct (perl); |
353 | perl_construct (perl); |
… | |
… | |
770 | const_iv (XIMDontChange), |
770 | const_iv (XIMDontChange), |
771 | # endif |
771 | # endif |
772 | # endif |
772 | # endif |
773 | }; |
773 | }; |
774 | |
774 | |
775 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
775 | for (civ = const_iv + ARRAY_LENGTH(const_iv); civ-- > const_iv; ) |
776 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
776 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
777 | } |
777 | } |
778 | |
778 | |
779 | void |
779 | void |
780 | warn (const char *msg) |
780 | warn (const char *msg) |
… | |
… | |
1448 | # include "rsinc.h" |
1448 | # include "rsinc.h" |
1449 | # undef def |
1449 | # undef def |
1450 | # undef reserve |
1450 | # undef reserve |
1451 | }; |
1451 | }; |
1452 | |
1452 | |
1453 | rs = rslist + sizeof (rslist) / sizeof (rslist [0]); |
1453 | rs = rslist + ARRAY_LENGTH(rslist); |
1454 | |
1454 | |
1455 | if (*name) |
1455 | if (*name) |
1456 | { |
1456 | { |
1457 | do { |
1457 | do { |
1458 | if (rs-- == rslist) |
1458 | if (rs-- == rslist) |