Lines Matching defs:new

449 static char *__cil_userattribute_to_string(struct cil_db *db, struct cil_userattribute *attr, char *new)
459 memcpy(new, str, len);
460 new += len;
461 *new++ = ' ';
464 return new;
467 static char *__cil_cons_leaf_operand_to_string(struct cil_db *db, struct cil_list_item *operand, char *new)
520 strcpy(new, o_str);
521 new += 2;
525 *new++ = '{';
526 new = __cil_userattribute_to_string(db, operand->data, new);
527 new--;
528 *new++ = '}';
532 memcpy(new, o_str, o_len);
533 new += o_len;
536 *new++ = '{';
540 new = __cil_userattribute_to_string(db, operand->data, new);
544 memcpy(new, o_str, o_len);
545 new += o_len;
546 *new++ = ' ';
549 new--;
550 *new++ = '}';
553 return new;
556 static char *__cil_cons_leaf_op_to_string(struct cil_list_item *op, char *new)
589 strcpy(new, op_str);
590 new += len;
592 return new;
595 static char *__cil_cons_expr_to_string(struct cil_db *db, struct cil_list *cons_expr, char *new)
605 *new++ = '(';
606 strcpy(new, "not ");
607 new += 4;
608 new = __cil_cons_expr_to_string(db, i1->next->data, new);
609 *new++ = ')';
612 *new++ = '(';
613 new = __cil_cons_expr_to_string(db, i1->next->data, new);
614 strcpy(new, " and ");
615 new += 5;
616 new = __cil_cons_expr_to_string(db, i1->next->next->data, new);
617 *new++ = ')';
620 *new++ = '(';
621 new = __cil_cons_expr_to_string(db, i1->next->data, new);
622 strcpy(new, " or ");
623 new += 4;
624 new = __cil_cons_expr_to_string(db, i1->next->next->data, new);
625 *new++ = ')';
628 *new++ = '(';
629 new = __cil_cons_leaf_operand_to_string(db, i1->next, new);
630 new = __cil_cons_leaf_op_to_string(i1, new);
631 new = __cil_cons_leaf_operand_to_string(db, i1->next->next, new);
632 *new++ = ')';
635 return new;
640 char *new, *tail;
643 new = cil_malloc(len+1);
644 tail = __cil_cons_expr_to_string(db, cons_expr, new);
647 return new;
654 char *new, *curr;
662 new = cil_malloc(len);
663 curr = new;
682 cil_list_append(classperms_strs, CIL_STRING, new);