• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/dcerpc-61/dcerpc/idl_compiler/

Lines Matching refs:fid

216     FILE *fid,
225 fprintf(fid, " = NULL");
228 fprintf(fid, " = ndr_false");
232 fprintf(fid, " = 0.0");
240 fprintf(fid, " = 0");
243 fprintf(fid, " = 0ULL");
246 fprintf(fid, " = 0LL");
251 fprintf(fid, " = {}");
254 fprintf(fid, " /* no initializer for kind %d */", type->kind);
266 FILE *fid,
327 fprintf(fid,"IDL_ee_context_t %s;\n", BE_get_name(pp->name));
333 fprintf(fid,"IDL_ee_context_t %s;\n", BE_get_name(pp->name));
338 CSPELL_typed_name(fid,
344 CSPELL_zero_initializer(fid,
362 CSPELL_typed_name(fid, &array_elt_ptr_type_node,
364 CSPELL_zero_initializer(fid, &array_elt_ptr_type_node);
368 CSPELL_typed_name(fid, pp->type, pp->name, NULL, false, true,
370 CSPELL_zero_initializer(fid, pp->type);
372 fprintf(fid, ";\n");
383 FILE *fid,
397 fprintf( fid, "%s_to_local(&%s,&%s);\n",
403 fprintf (fid, "\n/* manager call */\n");
404 fprintf( fid, "IDL_manager_entered = ndr_true;\n" );
405 fprintf( fid, "RPC_SS_THREADS_DISABLE_ASYNC(IDL_async_cancel_state);\n");
408 fprintf( fid, "RPC_SS_THREADS_DISABLE_GENERAL(IDL_general_cancel_state);\n" );
410 fprintf( fid, "RPC_SS_THREADS_ENABLE_GENERAL(IDL_general_cancel_state);\n" );
415 fprintf(fid, "IDL_function_result.local = ");
417 fprintf(fid, "IDL_function_result = ");
420 fprintf(fid, "(*((%s_v%ld_%ld_epv_t *)IDL_mgr_epv)->",
423 spell_name(fid, p_operation->name);
425 fprintf(fid,")(");
441 fprintf (fid, ",\n ");
447 fprintf( fid, "%c%s",
457 spell_name(fid, binding_handle_name);
465 fprintf(fid, "&%s", BE_get_name(binding_handle_name));
488 DDBE_spell_manager_param_cast( fid, pp->type );
489 fprintf(fid, "*(rpc_void_p_t *)");
497 DDBE_spell_manager_param_cast( fid, pp->type );
498 fprintf( fid, "%c", ((deref) ? '*' : ' ') );
500 CSPELL_ptr_cast_exp( fid, pp->type );
502 fprintf( fid, "(IDL_param_vec[%d])", param_index );
512 CSPELL_cast_exp(fid, pp->type);
515 fprintf( fid, "%c%s.local",
530 fprintf(fid, "&");
532 spell_name(fid, pp->name);
538 fprintf(fid, ");\n");
539 fprintf( fid,
541 fprintf( fid, "RPC_SS_THREADS_RESTORE_ASYNC(IDL_async_cancel_state);\n");
545 fprintf( fid, "%s_free_local(&%s);\n",
560 FILE *fid,
569 fprintf(fid,
574 spell_name(fid, p_operation->result->type->name);
575 fprintf(fid, "_rundown, ");
578 fprintf(fid, "(void (*)())NULL, ");
579 fprintf(fid, "idl_false, &IDL_ms.IDL_status);\n");
580 CSPELL_test_status(fid);
587 fprintf(fid, "rpc_ss_ee_ctx_to_wire(%s.local, &%s.wire, %s,",
595 spell_name(fid, pp->type->type_structure.pointer
597 fprintf(fid, "_rundown, ");
600 fprintf(fid, "(void (*)())NULL, ");
601 fprintf(fid, "%s, &IDL_ms.IDL_status);\n",
603 CSPELL_test_status(fid);
615 FILE *fid,
640 fprintf (fid, "\nstatic void op%d_ssr", p_operation->op_number);
642 fprintf (fid, "\n");
644 fprintf (fid, "(\n");
645 fprintf (fid, " handle_t %s,\n", handle_info.assoc_name);
646 fprintf (fid, " rpc_call_handle_t IDL_call_h,\n");
647 fprintf (fid, " rpc_iovector_elt_p_t IDL_elt_p,\n");
648 fprintf (fid, " ndr_format_p_t IDL_drep_p,\n");
649 fprintf (fid, " __IDL_UNUSED__ rpc_transfer_syntax_p_t IDL_transfer_syntax_p,\n");
650 fprintf (fid, " rpc_mgr_epv_t IDL_mgr_epv,\n");
651 fprintf (fid, " error_status_t *IDL_status_p\n)\n");
653 fprintf (fid, "{\n");
654 fprintf(fid, "IDL_ms_t IDL_ms;\n");
655 fprintf(fid, "volatile ndr_boolean IDL_manager_entered = ndr_false;\n");
656 fprintf(fid,
658 fprintf(fid,
660 fprintf(fid, "idl_byte IDL_stack_packet[IDL_STACK_PACKET_SIZE];\n");
665 fprintf(fid, "long IDL_current_pipe = 0;\n");
668 DDBE_spell_param_vec_def( fid, p_operation, BE_server_side,
670 DDBE_spell_stack_surrogates( fid,
675 BE_cs_analyze_and_spell_vars(fid, p_operation, BE_server_side, &cs_info);
681 fprintf(fid, "rpc_ss_thread_support_ptrs_t IDL_support_ptrs;\n");
691 fprintf(fid, "IDL_ee_context_t IDL_function_result;\n");
695 CSPELL_typed_name(fid, p_operation->result->type,
698 fprintf(fid, ";\n");
704 fprintf( fid, "%s %s;\n",
711 fprintf(fid, "rpc_client_handle_t IDL_client_id=NULL;\n");
717 fprintf(fid, "RPC_SS_INIT_SERVER\n");
718 fprintf(fid, "rpc_ss_init_marsh_state(IDL_type_vec, &IDL_ms);\n");
723 fprintf(fid, "IDL_ms.IDL_mem_handle.alloc = midl_user_allocate;\n");
724 fprintf(fid, "IDL_ms.IDL_mem_handle.free = midl_user_free;\n");
727 fprintf(fid,
729 fprintf(fid, "IDL_ms.IDL_stack_packet_addr = IDL_stack_packet;\n");
730 fprintf(fid, "DCETHREAD_TRY\n");
731 fprintf(fid, "IDL_ms.IDL_offset_vec = IDL_offset_vec;\n");
732 fprintf(fid, "IDL_ms.IDL_rtn_vec = IDL_rtn_vec;\n");
733 fprintf(fid, "IDL_ms.IDL_call_h = (volatile rpc_call_handle_t)IDL_call_h;\n");
734 fprintf(fid, "IDL_ms.IDL_drep = *IDL_drep_p;\n");
736 fprintf(fid, "IDL_ms.IDL_elt_p = IDL_elt_p;\n");
737 DDBE_spell_param_vec_init( fid, p_operation, BE_server_side,
739 fprintf(fid, "IDL_ms.IDL_param_vec = IDL_param_vec;\n");
740 fprintf(fid, "IDL_ms.IDL_side = IDL_server_side_k;\n");
741 fprintf(fid, "IDL_ms.IDL_language = ");
742 fprintf(fid, "IDL_lang_c_k");
743 fprintf(fid, ";\n");
746 BE_spell_cs_state(fid, "IDL_ms.", BE_server_side, &cs_info);
748 fprintf(fid, "IDL_ms.IDL_h=%s;\n", handle_info.assoc_name);
753 fprintf(fid,
763 fprintf(fid,
766 CSPELL_test_status(fid);
776 fprintf( fid,
780 fprintf(fid,
784 fprintf(fid,
795 DDBE_init_server_pipes( fid, p_operation, &first_pipe );
796 fprintf( fid, "IDL_current_pipe=(%ld);\n", first_pipe );
800 DDBE_spell_marsh_or_unmar( fid, p_operation, "rpc_ss_ndr_unmar_interp",
804 BE_spell_cs_tag_rtn_call(fid, "IDL_ms.", p_operation, BE_server_side,
807 CSPELL_manager_call(fid, p_interface, p_operation,
810 DDBE_convert_out_contexts(fid, p_operation, binding_handle_name);
814 fprintf( fid, "if (IDL_current_pipe != %d)\n", BE_FINISHED_WITH_PIPES );
815 fprintf( fid, "{\n" );
816 fprintf( fid, "DCETHREAD_RAISE(rpc_x_ss_pipe_discipline_error);\n" );
817 fprintf( fid, "}\n" );
821 fprintf(fid, "{\n");
822 DDBE_spell_marsh_or_unmar( fid, p_operation, "rpc_ss_ndr_marsh_interp",
824 fprintf(fid, "if (IDL_ms.IDL_iovec.num_elt != 0)\n");
825 fprintf(fid,
827 fprintf(fid,
829 fprintf(fid, "\n}");
831 fprintf(fid, "\nIDL_closedown: __IDL_UNUSED_LABEL__;\n");
832 fprintf(fid, "DCETHREAD_CATCH_ALL(THIS_CATCH)\n");
834 fprintf(fid, "if ( IDL_manager_entered )\n{\n");
835 fprintf(fid,
837 fprintf(fid, "RPC_SS_THREADS_RESTORE_ASYNC(IDL_async_cancel_state);\n");
838 fprintf(fid, "}\n");
845 fprintf(fid, "rpc_ss_ndr_clean_up(&IDL_ms);\n");
846 fprintf(fid,
848 fprintf(fid, "if ( ! IDL_manager_entered )\n{\n");
851 fprintf(fid, "IDL_ms.IDL_status = rpc_s_manager_not_entered;\n");
853 fprintf(fid, "}\n");
856 fprintf(fid, "else\n");
858 fprintf(fid,"{\n");
859 fprintf(fid,"rpc_ss_send_server_exception_2(IDL_call_h,THIS_CATCH,%d,%s,&IDL_ms);\n",
863 fprintf(fid, "IDL_ms.IDL_status = error_status_ok;\n}\n");
864 fprintf(fid, "}\n");
865 fprintf(fid, "DCETHREAD_ENDTRY\n");
870 fprintf(fid,
879 fprintf( fid, "rpc_ss_destroy_support_ptrs();\n" );
881 fprintf(fid, "if (IDL_ms.IDL_mem_handle.memory)\n{\n");
882 fprintf(fid, " rpc_ss_mem_free(&IDL_ms.IDL_mem_handle);\n}\n");
883 fprintf(fid, "if (IDL_ms.IDL_status != error_status_ok)\n{\n");
884 fprintf(fid, "if (IDL_ms.IDL_status == rpc_s_call_cancelled)\n{\n");
885 fprintf(fid, "rpc_ss_send_server_exception(");
886 fprintf(fid, "IDL_call_h,&RPC_SS_THREADS_X_CANCELLED);\n");
887 fprintf(fid, "IDL_ms.IDL_status = error_status_ok;\n");
888 fprintf(fid, "}\nelse\n{\n");
891 fprintf(fid, "if (IDL_manager_entered)\n");
893 fprintf(fid, "{\nrpc_ss_send_server_exception(");
894 fprintf(fid, "IDL_call_h,&rpc_x_ss_remote_comm_failure);\n");
895 fprintf(fid, "IDL_ms.IDL_status = error_status_ok;\n");
896 fprintf(fid, "}\n}\n}\n");
901 fprintf(fid, "*IDL_status_p = IDL_ms.IDL_status;\n");
903 fprintf(fid, "}\n");
913 FILE *fid, /* Handle for emitted C text */
932 CSPELL_suppress_stub_warnings(fid);
937 CSPELL_mts_includes(fid, header_name);
942 DDBE_spell_offset_vec( fid, dd_vip, cmd_opt, cmd_val );
943 DDBE_spell_rtn_vec( fid, dd_vip, cmd_opt, cmd_val, FALSE );
944 DDBE_spell_type_vec( fid, dd_vip, cmd_opt, cmd_val );
947 DDBE_user_exceptions(fid, p_interface,
954 CSPELL_manager_epv(fid, p_interface);
967 CSPELL_server_stub_routine(fid, language, p_interface, p_operation,
976 fprintf (fid, "\nstatic rpc_v2_server_stub_proc_t IDL_epva[] = \n{\n");
984 fprintf(fid, ",\n");
988 fprintf(fid, "NULL");
992 fid, " (rpc_v2_server_stub_proc_t)op%d_ssr",
996 fprintf (fid, "\n};\n");
1001 CSPELL_interface_def(fid, p_interface, BE_server_stub_k, cmd_opt[opt_mepv]);
1006 CSPELL_restore_stub_warnings(fid);