Lines Matching full:echo
50 echo "\
72 echo "$progname (GNU $package) $version"
73 echo "Copyright (C) 2006-2019 Free Software Foundation, Inc.
77 echo "Written by" "Bruno Haible"
84 echo "moopp: *** $1" 1>&2
85 echo "moopp: *** Stop." 1>&2
106 arg=`echo "X$1" | sed -e 's/^X--dllexport=//'`
204 sed_result=`echo 'aaa//bcd' | sed -e "$sed_test"`
234 classname=`echo "$class_line" | sed -n -e "$sed_extract_classname"`
239 if echo "$class_line" | grep ':' > /dev/null; then
241 superclassname=`echo "$class_line" | sed -n -e "$sed_extract_superclassname"`
286 classname=`echo "$class_line" | sed -n -e "$sed_extract_classname"`
291 if echo "$class_line" | grep ':' > /dev/null; then
293 superclassname=`echo "$class_line" | sed -n -e "$sed_extract_superclassname"`
312 …methods_with_bad_arg1=`echo "$methods" | sed -e "$sed_remove_empty_lines" -e "$sed_remove_valid_ar…
314 …methods_with_bad_arg1=`{ echo "$methods_with_bad_arg1" | sed -e 's/$/, /' | tr -d '\015\n'; echo; …
377 echo "Updating $file (backup in ${file}~)"
380 echo "Creating $file"
390 echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'
391 echo
393 echo "/* Field layout of superclass. */"
394 echo "#include \"${main_superclassname}.priv.h\""
395 echo
397 echo "/* Field layout of ${main_classname} class. */"
398 echo "struct ${main_classname}_representation"
399 echo "{"
401 echo " struct ${main_superclassname}_representation base;"
403 echo " const void *vtable;"
405 echo "$fields" | sed -e "$sed_remove_empty_lines"
406 echo "};"
416 echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'
417 echo
419 echo "/* Virtual function table layout of superclass. */"
420 echo "#include \"${main_superclassname}.vt.h\""
421 echo
423 echo "/* Virtual function table layout of ${main_classname} class. */"
424 …echo "$main_methods" | sed -e "$sed_remove_empty_lines" -e 's/\([^A-Za-z_0-9]\)\([A-Za-z_0-9][A-Za…
448 source_header_file_base=`echo "$source_header_file" | sed -e 's,^.*/,,'`
463 echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'
464 echo
465 echo "#line 1 \"${source_header_file_base}\""
467 echo "#line "`expr 3 + ${main_class_decl_lineno} + 1`" \"$newfile_base\""
468 echo "struct ${main_repclassalias};"
469 echo "/* ${main_classname}_t is defined as a pointer to struct ${main_repclassalias}."
470 echo " In C++ mode, we use a smart pointer class."
471 echo " In C mode, we have no other choice than a typedef to the root class type. */"
472 echo "#if IS_CPLUSPLUS"
473 echo "struct ${main_classname}_t"
474 echo "{"
475 echo "private:"
476 echo " struct ${main_repclassalias} *_pointer;"
477 echo "public:"
478 echo " ${main_classname}_t () : _pointer (NULL) {}"
479 echo " ${main_classname}_t (struct ${main_repclassalias} *pointer) : _pointer (pointer) {}"
480 echo " struct ${main_repclassalias} * operator -> () { return _pointer; }"
481 echo " operator struct ${main_repclassalias} * () { return _pointer; }"
489 … echo " operator struct ${repclassalias} * () { return (struct ${repclassalias} *) _pointer; }"
493 echo " operator void * () { return _pointer; }"
495 echo " bool operator == (const void *p) { return _pointer == p; }"
496 echo " bool operator != (const void *p) { return _pointer != p; }"
504 …echo " operator ${classname}_t () { return (${classname}_t) (struct ${repclassalias} *) _pointer;…
506 …echo " explicit ${main_classname}_t (${classname}_t x) : _pointer ((struct ${main_repclassalias} …
509 echo "};"
510 echo "#else"
512 echo "typedef ${main_superclassname}_t ${main_classname}_t;"
514 echo "typedef struct ${main_repclassalias} * ${main_classname}_t;"
516 echo "#endif"
517 echo
518 echo "/* Functions that invoke the methods. */"
519 echo "#ifdef __cplusplus"
520 echo "extern \"C\" {"
521 echo "#endif"
522 …echo "$all_methods" | sed -e "$sed_remove_empty_lines" -e 's/\([^A-Za-z_0-9]\)\([A-Za-z_0-9][A-Za-…
523 echo "#ifdef __cplusplus"
524 echo "}"
525 echo "#endif"
526 echo
528 echo "/* Type representing an implementation of ${main_classname}_t. */"
529 echo "struct ${main_classname}_implementation"
530 echo "{"
531 echo " const typeinfo_t * const *superclasses;"
532 echo " size_t superclasses_length;"
533 echo " size_t instance_size;"
534 echo "#define THIS_ARG ${main_classname}_t first_arg"
535 echo "#include \"${main_classname}.vt.h\""
536 echo "#undef THIS_ARG"
537 echo "};"
538 echo
539 echo "/* Public portion of the object pointed to by a ${main_classname}_t. */"
540 echo "struct ${main_classname}_representation_header"
541 echo "{"
542 echo " const struct ${main_classname}_implementation *vtable;"
543 echo "};"
544 echo
545 echo "#if HAVE_INLINE"
546 echo
547 echo "/* Define the functions that invoke the methods as inline accesses to"
548 echo " the ${main_classname}_implementation."
549 echo " Use #define to avoid a warning because of extern vs. static. */"
550 echo
551 echo "$all_methods" | sed -e "$sed_remove_empty_lines" |
553 rettype=`echo "$method" | sed -e "$sed_extract_method_rettype"`
554 name=`echo "$method" | sed -e "$sed_extract_method_name"`
555 arglist=`echo "$method" | sed -e "$sed_extract_method_arglist"`
559 …args=`{ echo "$arglist" | tr ',' '\n' | sed -e "$sed_extract_method_args" | tr '\n' ','; echo; } |…
566 echo "# define ${main_classname}_${name} ${main_classname}_${name}_inline"
567 echo "static inline $rettype"
568 echo "${main_classname}_${name} ($arglist)"
569 echo "{"
570 echo " const struct ${main_classname}_implementation *vtable ="
571 …echo " ((struct ${main_classname}_representation_header *) (struct ${main_repclassalias} *) fir…
572 echo " ${return}vtable->${name} ($args);"
573 echo "}"
574 echo
576 echo "#endif"
577 echo
578 echo "extern${dllexport_for_variables} const typeinfo_t ${main_classname}_typeinfo;"
584 …echo "#define ${main_classname}_SUPERCLASSES &${main_classname}_typeinfo, ${superclasses_array_ini…
586 …echo "#define ${main_classname}_SUPERCLASSES_LENGTH (1 + ${main_superclassname}_SUPERCLASSES_LENGT…
588 echo "#define ${main_classname}_SUPERCLASSES_LENGTH (1 + 1)"
590 echo
591 …echo "extern${dllexport_for_variables} const struct ${main_classname}_implementation ${main_classn…
592 echo
593 echo "#line "`expr $main_class_end_lineno + 1`" \"${source_header_file_base}\""
600 source_impl_file_base=`echo "$source_impl_file" | sed -e 's,^.*/,,'`
606 echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'
607 echo
618 echo "#if !IS_CPLUSPLUS"
619 echo "#define ${main_classname}_representation any_${rootclassname}_representation"
620 echo "#endif"
621 echo "#line 1 \"${source_impl_file_base}\""
623 echo "#line "`expr 6 + ${impl_decl_lineno} + 1`" \"$newfile_base\""
624 echo "#include \"${main_classname}.priv.h\""
625 echo
626 echo "const typeinfo_t ${main_classname}_typeinfo = { \"${main_classname}\" };"
627 echo
628 echo "static const typeinfo_t * const ${main_classname}_superclasses[] ="
629 echo " { ${main_classname}_SUPERCLASSES };"
630 echo
632 echo "#define super ${main_superclassname}_vtable"
633 echo
635 echo "#line "`expr $impl_end_lineno + 1`" \"${source_impl_file_base}\""
637 echo
639 echo "#line "`expr $lineno + 2`" \"$newfile_base\""
641 …inherited_method_names=`echo "$inherited_methods" | sed -e "$sed_remove_empty_lines" | sed -e "$se…
642 echo "$all_methods" | sed -e "$sed_remove_empty_lines" |
644 rettype=`echo "$method" | sed -e "$sed_extract_method_rettype"`
645 name=`echo "$method" | sed -e "$sed_extract_method_name"`
646 arglist=`echo "$method" | sed -e "$sed_extract_method_arglist"`
650 …args=`{ echo "$arglist" | tr ',' '\n' | sed -e "$sed_extract_method_args" | tr '\n' ','; echo; } |…
669 echo "$rettype ${main_classname}__${name} ($arglist);"
670 echo "$rettype"
671 echo "${main_classname}__${name} ($arglist)"
672 echo "{"
674 echo " ${return}super.${name} ($args);"
676 echo " /* Abstract (unimplemented) method called. */"
677 echo " abort ();"
679 echo " #ifndef __GNUC__"
680 echo " ${return}${main_classname}__${name} ($args);"
681 echo " #endif"
683 echo "}"
684 echo
687 echo
688 echo "const struct ${main_classname}_implementation ${main_classname}_vtable ="
689 echo "{"
690 echo " ${main_classname}_superclasses,"
691 echo " sizeof (${main_classname}_superclasses) / sizeof (${main_classname}_superclasses[0]),"
692 echo " sizeof (struct ${main_classname}_representation),"
693 echo "$all_methods" | sed -e "$sed_remove_empty_lines" |
695 name=`echo "$method" | sed -e "$sed_extract_method_name"`
696 echo " ${main_classname}__${name},"
698 echo "};"
699 echo
700 echo "#if !HAVE_INLINE"
701 echo
702 echo "/* Define the functions that invoke the methods. */"
703 echo
704 echo "$all_methods" | sed -e "$sed_remove_empty_lines" |
706 rettype=`echo "$method" | sed -e "$sed_extract_method_rettype"`
707 name=`echo "$method" | sed -e "$sed_extract_method_name"`
708 arglist=`echo "$method" | sed -e "$sed_extract_method_arglist"`
712 …args=`{ echo "$arglist" | tr ',' '\n' | sed -e "$sed_extract_method_args" | tr '\n' ','; echo; } |…
719 echo "$rettype"
720 echo "${main_classname}_${name} ($arglist)"
721 echo "{"
722 echo " const struct ${main_classname}_implementation *vtable ="
723 …echo " ((struct ${main_classname}_representation_header *) (struct ${main_repclassalias} *) fir…
724 echo " ${return}vtable->${name} ($args);"
725 echo "}"
726 echo
728 echo "#endif"
737 destdir=`echo "$source_impl_file" | sed -e "$sed_butbase"`
746 new_source_header_file_base=`echo "$source_header_file_base" | sed -e 's,\.oo\.h$,.h,'`
762 new_source_impl_file_base=`echo "$source_impl_file_base" | sed -e 's,\.oo\.c$,.c,'`