示例#1
0
文件: cc.cpp 项目: inspirer/history
Compiler::Compiler()
{
	current = &global;
	func = NULL;
	set_backend( get_bytecode_be() );

	for( int i = 0; i < t_basiccnt; i++ )
		basic[i] = NULL;
}
static void unicapgtk_video_display_set_property( GObject *object, 
						  guint property_id, 
						  const GValue *value, 
						  GParamSpec *pspec )
{
   UnicapgtkVideoDisplay *ugtk = UNICAPGTK_VIDEO_DISPLAY( object );

   switch( property_id )
   {
      case PROP_SCALE_TO_FIT:
	 unicapgtk_video_display_set_scale_to_fit( ugtk,
						   g_value_get_boolean( value ) );
	 break;

      case PROP_BACKEND:
      {
	 const gchar *str = g_value_get_string( value );
	 backend_type_t t = BACKEND_UNDECIDED;

	 if( !strcmp( str, "gtk" ) )
	 {
	    t = BACKEND_GTK;
	 }
	 else if( !strcmp( str, "xv" ) )
	 {
	    t = BACKEND_XV;
	 }
	 ugtk->requested_backend = t;
         set_backend( ugtk );
      }
      break;

      case PROP_FOURCC:
      {
	 ugtk->backend_fourcc = g_value_get_uint( value );
         set_backend( ugtk );
      }
      break;

      default:
	 G_OBJECT_WARN_INVALID_PROPERTY_ID( object, property_id, pspec );
	 break;
   }
}
示例#3
0
nsclient::logging::impl::nsclient_logger::nsclient_logger() {
	set_backend(DEFAULT_BACKEND);
}