sciprint.h File Reference

#include <stdarg.h>
#include "BOOL.h"

Include dependency graph for sciprint.h:

Go to the source code of this file.

Functions

void sciprint (char *fmt,...)
void scivprint (char *fmt, va_list args)
int sciprint2 (int iv, char *fmt,...)
void printf_scilab (char *buffer, BOOL withDiary)


Function Documentation

void printf_scilab ( char *  buffer,
BOOL  withDiary 
)

print a string

Parameters:
[in] buffer to disp
[in] TRUE or FALSE if we use diary

Definition at line 87 of file sciprint.c.

References ConsolePrintf(), diary_nnl(), getdiary(), getScilabMode(), SCILAB_STD, and TermPrintf_Windows().

Referenced by sciprint2(), and scivprint_nd().

00088 {
00089         if (buffer)
00090         {
00091                 if (getScilabMode() == SCILAB_STD)
00092                 {
00093                         ConsolePrintf(buffer);
00094                 }
00095                 else
00096                 {
00097                         #ifdef _MSC_VER
00098                         TermPrintf_Windows(buffer);
00099                         #else
00100                         printf("%s",buffer);
00101                         #endif
00102                 }
00103 
00104                 if ( (withDiary) && getdiary() ) 
00105                 {
00106                         int lstr = (int)strlen(buffer);
00107                         diary_nnl(buffer,&lstr);
00108                 }
00109         }
00110 }

Here is the call graph for this function:

Here is the caller graph for this function:

void sciprint ( char *  fmt,
  ... 
)

Print

Parameters:
fmt Format of the format string
... 

Definition at line 36 of file sciprint.c.

Referenced by addColVectorToReturnedList(), addMatrixToReturnedList(), addRowVectorToReturnedList(), addStringColVectorToReturnedList(), AllocAndSetUserLabels(), AllocAndSetUserLabelsFromMdl(), allocatePolyline(), AllocUserGrads(), AppendModules(), as2osc(), asciiMatrix(), banner(), basout(), c_intfun(), c_intsub(), c_intsum(), call_debug_scicos(), callf(), callGetProperty(), callSetProperty(), CaseLogflagN2L(), ccalc12(), ccalc6b(), ccalc8(), champg(), check_flag(), CheckAndUpdate_x_shift(), CheckAndUpdate_y_shift(), CheckAndUpdate_z_shift(), checkDataBounds(), checkformat(), CloneArc(), ClonePolyline(), CloneRectangle(), CloneText(), cloneUserData(), complexity(), ComputeC_format(), computeDefaultTicsLabels(), ComputeXIntervals(), ConstructArc(), ConstructAxes(), ConstructCompoundSeq(), ConstructFec(), ConstructGrayplot(), ConstructLabel(), ConstructLegend(), ConstructRectangle(), ConstructScrollH(), ConstructScrollV(), ConstructSegs(), ConstructStatusBar(), ConstructSubWin(), ConstructSurface(), ConstructText(), ConstructTitle(), contourI(), contourif(), convert(), ConvertFromPoint(), ConvertToPoint(), copyFormatedArray(), copyFormatedValue(), cossim(), cossimdaskr(), createAssignedList(), CreateCellVariable(), createReturnedList(), CreateStructVariable(), createTlistForTicks(), CreateUIControl(), crestrc(), DaemonOpenTCLsci(), destroyGraphicHierarchy(), DestroyJavaUiobject(), destroyReturnedList(), DestroyWaitBar(), DispCommands(), DispInternalFunctions(), displ(), display_info_clcg4(), DispVariables(), sciGraphics::FecLineDrawerJoGL::drawFec(), sciGraphics::FecFacetDrawerJoGL::drawFec(), sciGraphics::ConcreteDrawableFec::drawFec(), sciGraphics::ConcreteDrawableGrayplot::drawGrayplot(), sciGraphics::PolylineMarkDrawerJoGL::drawPolyline(), sciGraphics::PolylineLineDrawerJoGL::drawPolyline(), sciGraphics::PolylineInterpColorDrawerJoGL::drawPolyline(), sciGraphics::PolylineFillDrawerJoGL::drawPolyline(), sciGraphics::PolylineBarDrawerJoGL::drawPolyline(), sciGraphics::PolylineArrowDrawerJoGL::drawPolyline(), sciGraphics::SegsMarkDrawerJoGL::drawSegs(), sciGraphics::SegsLineDrawerJoGL::drawSegs(), sciGraphics::SegsArrowDrawerJoGL::drawSegs(), sciGraphics::ConcreteDrawableSegs::drawSegs(), sciGraphics::SurfaceMarkDrawerJoGL::drawSurface(), sciGraphics::SurfaceLineDrawerJoGL::drawSurface(), sciGraphics::SurfaceFacetDrawerJoGL::drawSurface(), sciGraphics::TextContentDrawerJoGL::drawTextContent(), echelle2dl(), edgetrig(), ellipse2d(), error_internal(), ExceptionMessage(), ext14ca(), ext14cc(), ext14ce(), ext14cI(), ext15ce(), ext16ce(), fromws_c(), gainblk_i16e(), gainblk_i32e(), gainblk_i8e(), gainblk_ui16e(), gainblk_ui32e(), gainblk_ui8e(), get_alignment_property(), get_arc_drawing_method_property(), get_arrow_size_factor_property(), get_arrow_size_property(), get_auto_clear_property(), get_auto_dimensionning_property(), get_auto_position_property(), get_auto_rotation_property(), get_auto_ticks_property(), get_axes_bounds_property(), get_axes_reverse_property(), get_axes_size_property(), get_axes_visible_property(), get_bar_layout_property(), get_bar_width_property(), get_callback_type_property(), get_cdata_mapping_property(), get_children_property(), get_closed_property(), get_color_flag_property(), get_color_mode_property(), get_colored_property(), get_cube_scaling_property(), get_data_bounds_property(), get_data_mapping_property(), get_data_property(), get_default_axes_property(), get_default_figure_property(), get_event_handler_enable_property(), get_event_handler_property(), get_figure_name_property(), get_figure_position_property(), get_figure_size_property(), get_figures_id_property(), get_filled_property(), get_font_color_property(), get_format_n_property(), get_fractional_font_property(), get_grid_property(), get_handle_visible_property(), get_hidden_axis_color_property(), get_immediate_drawing_property(), get_info_message_property(), get_interp_color_vector_property(), get_isoview_property(), get_labels_font_color_property(), get_labels_font_size_property(), get_labels_font_style_property(), get_legend_location_property(), get_links_property(), get_log_flags_property(), get_margins_property(), get_optionals(), get_pixmap_property(), get_polyline_style_property(), get_position_property(), get_rotation_angles_property(), get_rotation_style_property(), get_segs_color_property(), get_sub_tics_property(), get_surface_color_property(), get_surface_mode_property(), get_text_box_mode_property(), get_text_box_property(), get_text_property(), get_tics_color_property(), get_tics_direction_property(), get_tics_labels_property(), get_tics_segment_property(), get_tight_limits_property(), get_title_property(), get_triangles_property(), get_view_property(), get_viewport_property(), get_x_label_property(), get_x_location_property(), get_x_shift_property(), get_x_ticks_property(), get_xtics_coord_property(), get_y_label_property(), get_y_location_property(), get_y_shift_property(), get_y_ticks_property(), get_ytics_coord_property(), get_z_bounds_property(), get_z_label_property(), get_z_shift_property(), get_z_ticks_property(), get_zoom_box_property(), get_zoom_state_property(), getChampDataBounds(), GetCharWithEventsLoop(), getdDataBoundsFromStack(), getenvc(), getInitialRectangle(), GetMatlabVariable(), sciGraphics::TextContentDrawerJoGL::getPixelBoundingBox(), GetUicontrolBackgroundColor(), GetUicontrolFontAngle(), GetUicontrolFontName(), GetUicontrolFontSize(), GetUicontrolFontUnits(), GetUicontrolFontWeight(), GetUicontrolHorizontalAlignment(), GetUicontrolListboxTop(), GetUicontrolMax(), GetUicontrolMin(), GetUicontrolPosition(), GetUicontrolRelief(), GetUicontrolSliderStep(), GetUicontrolString(), GetUicontrolStyle(), GetUicontrolUnits(), GetUicontrolValue(), GetUicontrolVerticalAlignment(), GetUimenuLabel(), GetUiobjectCallback(), GetUiobjectEnable(), GetUiobjectForegroundColor(), GetUiobjectTag(), GetUiobjectVisible(), getZoomedObject(), getZoomRect(), graduate1(), gw_tclsci(), InitializeCore(), intcdgemm(), intcscicos(), intdgesvd(), intdlassq(), intdsyev(), interactiveRotation(), interrupt(), intex15c(), intgetscicosvarsc(), intlsq_splin(), Ishm(), Jacobians(), LinearScaling2Colormap(), linesmore(), loadwave(), look(), matfile_manager(), matmul_i16e(), matmul_i32e(), matmul_i8e(), matmul_ui16e(), matmul_ui32e(), matmul_ui8e(), mclose(), mexprintf(), mexPrintf(), mget(), mgeti(), mgetnc(), mgetstr1(), mopen(), moveObj(), mput(), mputi(), mputnc(), mputstr(), mseek(), msg_1(), msg_10(), msg_100(), msg_101(), msg_102(), msg_103(), msg_104(), msg_105(), msg_106(), msg_107(), msg_108(), msg_109(), msg_11(), msg_110(), msg_111(), msg_112(), msg_113(), msg_114(), msg_115(), msg_12(), msg_13(), msg_14(), msg_15(), msg_16(), msg_17(), msg_18(), msg_19(), msg_2(), msg_20(), msg_21(), msg_22(), msg_23(), msg_24(), msg_25(), msg_26(), msg_27(), msg_28(), msg_29(), msg_3(), msg_30(), msg_31(), msg_32(), msg_33(), msg_34(), msg_35(), msg_36(), msg_37(), msg_38(), msg_39(), msg_4(), msg_40(), msg_41(), msg_42(), msg_43(), msg_44(), msg_45(), msg_46(), msg_47(), msg_48(), msg_49(), msg_5(), msg_50(), msg_51(), msg_52(), msg_53(), msg_54(), msg_55(), msg_56(), msg_57(), msg_58(), msg_59(), msg_6(), msg_60(), msg_61(), msg_62(), msg_63(), msg_64(), msg_65(), msg_66(), msg_67(), msg_68(), msg_69(), msg_7(), msg_70(), msg_71(), msg_72(), msg_73(), msg_74(), msg_75(), msg_76(), msg_77(), msg_78(), msg_79(), msg_8(), msg_80(), msg_81(), msg_82(), msg_83(), msg_84(), msg_85(), msg_86(), msg_87(), msg_88(), msg_89(), msg_9(), msg_90(), msg_91(), msg_92(), msg_93(), msg_94(), msg_95(), msg_96(), msg_97(), msg_98(), msg_99(), msg_default(), msgs(), mtell(), multifrontal_supernodal_front_factor(), Nsetscale2d(), Objplot3d(), plot2dn(), PrintOuput(), printSetGetErrorMessage(), rawread(), rawwrite(), readau(), readc(), ReadModulesFile(), rect2d(), rhs_opt_print_names(), savewave(), sci_champ_G(), sci_clc(), sci_consolebox(), sci_createdir(), sci_demo(), Sci_dlopen(), Sci_dlsym(), sci_fec(), sci_get_absolute_file_path(), sci_grayplot(), sci_is_handle_valid(), sci_iswaitingforinput(), sci_matfile_close(), sci_matfile_varreadnext(), sci_matmul(), sci_maxfiles(), sci_plot2d(), sci_plot3d(), sci_Rand(), sci_rotate_axes(), sci_rubberbox(), sci_setdefaultlanguage(), sci_setlanguage(), sci_show_window(), sci_sigint_addinter(), sci_TCL_EvalFile(), sci_tohome(), sci_toprint(), sci_umf_lufact(), sci_unzoom(), sci_warning(), sci_winsid(), sci_xget(), sci_xgetmouse(), sci_xset(), sci_zoom_rect(), sciAddCallback(), sciAxesVerticesIndices(), scichdir(), sciCloneObj(), sciConstructConsole(), sciConstructFrame(), sciConstructScreen(), sciConstructWindow(), sciConstructWindowFrame(), scicos(), sciDelCallback(), sciDelGraphicObj(), sciDelHandle(), sciDelSonFromItsParent(), sciExecCallback(), sciGet2dViewCoordFromPixel(), sciGet2dViewCoordinate(), sciGet2dViewPixelCoordinates(), sciGetAABoundingBox(), sciGetCallback(), sciGetCallbackLen(), sciGetCallbackMouseEvent(), scigetcwd(), sciGetDisplayedBounds(), sciGetIsFigureIconified(), sciGetLegendPlace(), sciGetLegendPos(), sciGetPixelCoordinate(), sciGetPoint(), sciGetTitlePlace(), sciGetTitlePos(), sciGetViewingArea(), sciGetxLocation(), sciGetyLocation(), scigmem(), sciInitEventHandler(), sciInitFontContext(), sciInitFontSize(), sciInitGraphicMode(), sciInitIsBoxed(), sciInitIsEventHandlerEnable(), sciInitLegendPlace(), sciInitLegendPos(), sciInitLineStyle(), sciInitLineWidth(), sciInitMarkSize(), sciInitMarkSizeUnit(), sciInitMarkStyle(), sciInteractiveZoom(), scilabLink(), scimem(), scimem64(), sciprint_full(), scipvmstart(), sciSetCallbackMouseEvent(), sciSetDefaultColorMap(), sciSetDefaultValues(), sciSetInterpVector(), sciSetName(), sciSetPoint(), sciSetSelectedSubWin(), sciSetTitlePlace(), sciSetTitlePos(), scoDrawScopeAmplitudeTimeStyle(), scoInitOfWindow(), scoReallocLongDraw(), scoRefreshDataBoundsX(), scoScopeError(), set3ddata(), set_alignment_property(), set_arc_drawing_method_property(), set_arrow_size_factor_property(), set_arrow_size_property(), set_auto_clear_property(), set_auto_dimensionning_property(), set_auto_position_property(), set_auto_resize_property(), set_auto_rotation_property(), set_auto_scale_property(), set_auto_ticks_property(), set_axes_bounds_property(), set_axes_reverse_property(), set_axes_size_property(), set_axes_visible_property(), set_background_property(), set_bar_layout_property(), set_bar_width_property(), set_box_property(), set_callback_property(), set_callback_type_property(), set_callbackmevent_property(), set_cdata_mapping_property(), set_children_property(), set_clip_box_property(), set_clip_state_property(), set_closed_property(), set_color_flag_property(), set_color_map_property(), set_color_mode_property(), set_colored_property(), set_cube_scaling_property(), set_current_axes_property(), set_current_entity_property(), set_current_figure_property(), set_data_bounds_property(), set_data_mapping_property(), set_data_property(), set_default_values_property(), set_dimension_property(), set_event_handler_enable_property(), set_event_handler_property(), set_figure_id_property(), set_figure_name_property(), set_figure_size_property(), set_figure_style_property(), set_fill_mode_property(), set_filled_property(), set_font_angle_property(), set_font_color_property(), set_font_foreground_property(), set_font_name_property(), set_font_size_property(), set_font_style_property(), set_foreground_property(), set_format_n_property(), set_fractional_font_property(), set_grid_property(), set_handle_visible_property(), set_hidden_axis_color_property(), set_hidden_color_property(), set_immediate_drawing_property(), set_info_message_property(), set_interp_color_mode_property(), set_interp_color_vector_property(), set_isoview_property(), set_labels_font_color_property(), set_labels_font_size_property(), set_labels_font_style_property(), set_legend_location_property(), set_line_mode_property(), set_line_style_property(), set_links_property(), set_log_flags_property(), set_margins_property(), set_mark_background_property(), set_mark_foreground_property(), set_mark_mode_property(), set_mark_size_property(), set_mark_size_unit_property(), set_mark_style_property(), set_old_style_property(), set_parent_property(), set_pixel_drawing_mode_property(), set_pixmap_property(), set_polyline_style_property(), set_position_property(), set_rotation_angles_property(), set_rotation_style_property(), set_scale_win(), set_screen_position_property(), set_seed_clcg4(), set_segs_color_property(), set_state_clcg2(), set_state_fsultra(), set_state_fsultra_simple(), set_state_kiss(), set_state_mt(), set_state_mt_simple(), set_state_urand(), set_sub_tics_property(), set_surface_color_property(), set_surface_mode_property(), set_text_box_mode_property(), set_text_box_property(), set_text_property(), set_thickness_property(), set_tics_color_property(), set_tics_direction_property(), set_tics_labels_property(), set_tics_segment_property(), set_tics_style_property(), set_tight_limits_property(), set_title_property(), set_triangles_property(), set_user_data_property(), set_view_property(), set_viewport_property(), set_visible_property(), set_x_label_property(), set_x_location_property(), set_x_shift_property(), set_x_ticks_property(), set_xtics_coord_property(), set_y_label_property(), set_y_location_property(), set_y_shift_property(), set_y_ticks_property(), set_ytics_coord_property(), set_z_bounds_property(), set_z_label_property(), set_z_shift_property(), set_z_ticks_property(), set_zoom_box_property(), set_zoom_state_property(), setchampdata(), setgrayplotdata(), setMenuParent(), setprlev(), SetUicontrolBackgroundColor(), SetUicontrolFontAngle(), SetUicontrolFontName(), SetUicontrolFontSize(), SetUicontrolFontUnits(), SetUicontrolFontWeight(), SetUicontrolHorizontalAlignment(), SetUicontrolListboxTop(), SetUicontrolMax(), SetUicontrolMin(), SetUicontrolParent(), SetUicontrolPosition(), SetUicontrolRelief(), SetUicontrolSliderStep(), SetUicontrolString(), SetUicontrolUnits(), SetUicontrolValue(), SetUicontrolVerticalAlignment(), SetUimenuLabel(), SetUiobjectCallback(), SetUiobjectEnable(), SetUiobjectForegroundColor(), SetUiobjectTag(), SetUiobjectVisible(), show_scales(), ShowDynLinks(), ShowScales(), slider(), sp(), stackinfo(), Store3DPixelValues(), StoreCommandWithFlag(), summation_i16e(), summation_i32e(), summation_i8e(), summation_ui16e(), summation_ui32e(), summation_ui8e(), SWAP(), taucs_ccs_create(), taucs_ccs_etree(), taucs_ccs_genmmd(), taucs_ccs_symbolic_elimination(), taucs_supernodal_solve_llt(), TCL_EvalScilabCmd(), time_delay(), tows_c(), trans3d(), userlk(), variable_delay(), VerifyModule(), wavread(), wavstartread(), wavstartwrite(), wavstopwrite(), wavwritehdr(), writeau(), writec(), XClearScreenConsole(), xgray(), xgray1(), and Xorgetchar().

00037 {
00038         va_list ap;
00039 
00040         va_start(ap,fmt);
00041         scivprint(fmt,ap);
00042         va_end (ap);
00043 }

int sciprint2 ( int  iv,
char *  fmt,
  ... 
)

Print works as sciprint but with an added first argument which is ignored (used in do_printf)

See also:
sciprint
Parameters:
iv 
fmt Format of the format string
... 
Returns:
the number of characters printed

Definition at line 70 of file sciprint.c.

References count, MAXPRINTF, printf_scilab(), and TRUE.

Referenced by set_xxprintf().

00071 {
00072         va_list ap;
00073         int count = 0;
00074         char s_buf[MAXPRINTF];
00075 
00076         va_start(ap,fmt);
00077         count= vsnprintf(s_buf,MAXPRINTF-1, fmt, ap );
00078         va_end (ap);
00079 
00080         if (count == -1) s_buf[MAXPRINTF-1]='\0';
00081 
00082         printf_scilab(s_buf,TRUE);
00083 
00084         return count;
00085 }

Here is the call graph for this function:

Here is the caller graph for this function:

void scivprint ( char *  fmt,
va_list  args 
)

Definition at line 45 of file sciprint.c.

References count, diary_nnl(), getdiary(), MAXPRINTF, and scivprint_nd().

Referenced by sciprint().

00046 {
00047         va_list savedargs;
00048         va_copy(savedargs, args);
00049         
00050         scivprint_nd(fmt,args);
00051 
00052         if (getdiary()) 
00053         {
00054                 int count = 0;
00055                 char s_buf[MAXPRINTF];
00056                 integer lstr = 0;
00057 
00058                 count= vsnprintf(s_buf,MAXPRINTF-1, fmt, savedargs );
00059 
00060                 if (count == -1) s_buf[MAXPRINTF-1]='\0';
00061 
00062                 lstr = (integer)strlen(s_buf);
00063                 diary_nnl(s_buf,&lstr);
00064         }
00065         
00066         va_end(savedargs);
00067 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Tue Sep 9 18:12:13 2008 for Scilab [trunk] by  doxygen 1.5.5