Home
last modified time | relevance | path

Searched refs:cb_res (Results 1 – 17 of 17) sorted by relevance

/dports/games/openttd/openttd-12.1/src/
H A Dnewgrf_commons.cpp484 if (cb_res < 0x400) { in GetErrorMessageFromLocationCallbackResult()
487 switch (cb_res) { in GetErrorMessageFromLocationCallbackResult()
524 SetDParam(2, cb_res); in ErrorUnknownCallbackResult()
536 SetDParam(2, cb_res); in ErrorUnknownCallbackResult()
552 assert(cb_res != CALLBACK_FAILED); // We do not know what to return in ConvertBooleanCallback()
554 if (grffile->grf_version < 8) return cb_res != 0; in ConvertBooleanCallback()
556 if (cb_res > 1) ErrorUnknownCallbackResult(grffile->grfid, cbid, cb_res); in ConvertBooleanCallback()
557 return cb_res != 0; in ConvertBooleanCallback()
573 if (grffile->grf_version < 8) return GB(cb_res, 0, 8) != 0; in Convert8bitBooleanCallback()
575 if (cb_res > 1) ErrorUnknownCallbackResult(grffile->grfid, cbid, cb_res); in Convert8bitBooleanCallback()
[all …]
H A Dnewgrf_airport.cpp298 uint16 cb_res = object.ResolveCallback(); in GetAirportTextCallback() local
299 if (cb_res == CALLBACK_FAILED || cb_res == 0x400) return STR_UNDEFINED; in GetAirportTextCallback()
300 if (cb_res > 0x400) { in GetAirportTextCallback()
301 ErrorUnknownCallbackResult(as->grf_prop.grffile->grfid, callback, cb_res); in GetAirportTextCallback()
305 return GetGRFStringID(as->grf_prop.grffile->grfid, 0xD000 + cb_res); in GetAirportTextCallback()
H A Dnewgrf_commons.h300 CommandCost GetErrorMessageFromLocationCallbackResult(uint16 cb_res, const GRFFile *grffile, String…
302 void ErrorUnknownCallbackResult(uint32 grfid, uint16 cbid, uint16 cb_res);
303 bool ConvertBooleanCallback(const struct GRFFile *grffile, uint16 cbid, uint16 cb_res);
304 bool Convert8bitBooleanCallback(const struct GRFFile *grffile, uint16 cbid, uint16 cb_res);
H A Dvehicle_cmd.cpp266 uint16 cb_res = GetVehicleCallback(CBID_VEHICLE_REFIT_COST, param1, 0, engine_type, v); in GetRefitCostFactor() local
267 if (cb_res != CALLBACK_FAILED) { in GetRefitCostFactor()
268 *auto_refit_allowed = HasBit(cb_res, 14); in GetRefitCostFactor()
269 int factor = GB(cb_res, 0, 14); in GetRefitCostFactor()
H A Dnewgrf_station.cpp662 uint16 cb_res = object.ResolveCallback(); in PerformStationTileSlopeCheck() local
665 if (cb_res == CALLBACK_FAILED) return CommandCost(); in PerformStationTileSlopeCheck()
668 if (statspec->grf_prop.grffile->grf_version < 8) ToggleBit(cb_res, 10); in PerformStationTileSlopeCheck()
669 …return GetErrorMessageFromLocationCallbackResult(cb_res, statspec->grf_prop.grffile, STR_ERROR_LAN… in PerformStationTileSlopeCheck()
H A Dindustry_cmd.cpp1162 uint16 cb_res = CALLBACK_FAILED; in ProduceIndustryGoods() local
1164cb_res = GetIndustryCallback(CBID_INDUSTRY_SPECIAL_EFFECT, Random(), 0, i, i->type, i->location.ti… in ProduceIndustryGoods()
1168 if (cb_res != CALLBACK_FAILED) { in ProduceIndustryGoods()
1169 plant = ConvertBooleanCallback(indsp->grf_prop.grffile, CBID_INDUSTRY_SPECIAL_EFFECT, cb_res); in ProduceIndustryGoods()
1177 uint16 cb_res = CALLBACK_FAILED; in ProduceIndustryGoods() local
1179cb_res = GetIndustryCallback(CBID_INDUSTRY_SPECIAL_EFFECT, Random(), 1, i, i->type, i->location.ti… in ProduceIndustryGoods()
1183 if (cb_res != CALLBACK_FAILED) { in ProduceIndustryGoods()
1184 cut = ConvertBooleanCallback(indsp->grf_prop.grffile, CBID_INDUSTRY_SPECIAL_EFFECT, cb_res); in ProduceIndustryGoods()
H A Drail_gui.cpp82 …uint16 cb_res = GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, nullptr, INVALID_TIL… in IsStationAvailable() local
83 if (cb_res == CALLBACK_FAILED) return true; in IsStationAvailable()
85 return Convert8bitBooleanCallback(statspec->grf_prop.grffile, CBID_STATION_AVAILABILITY, cb_res); in IsStationAvailable()
H A Dstation_cmd.cpp1334 …uint16 cb_res = GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, nullptr, INVALID_TIL… in CmdBuildRailStation() local
1335 …if (cb_res != CALLBACK_FAILED && !Convert8bitBooleanCallback(statspec->grf_prop.grffile, CBID_STAT… in CmdBuildRailStation()
/dports/www/py-scrapy/Scrapy-2.5.1/scrapy/spiders/
H A Dcrawl.py114 cb_res = callback(response, **cb_kwargs) or ()
115 cb_res = self.process_results(response, cb_res)
116 for request_or_item in iterate_spider_output(cb_res):
/dports/devel/hs-darcs/darcs-2.16.4/harness/Darcs/Test/
H A DMisc.hs119 cb_res <- fmap (fromBool . tail) $ getElems cb_arr
120 return $ if ca_res == ca' && cb_res == cb' then []
123 ++" got "++(show (ca_res, cb_res))++"\n"])
/dports/net-im/libmesode/libmesode-0.10.1/src/
H A Dtls_openssl.c295 int cb_res; in verify_callback() local
300 cb_res = 0; in verify_callback()
302 cb_res = _certfail_handler(tlscert, errstr); in verify_callback()
307 _last_cb_res = cb_res; in verify_callback()
309 if (cb_res == 0) { in verify_callback()
314 return cb_res; in verify_callback()
/dports/multimedia/gpodder/gpodder-3.10.17/src/gpodder/
H A Dextensions.py83 cb_res = callback(*args, **kwargs)
84 if isinstance(result, list) and isinstance(cb_res, list):
85 result.extend(cb_res)
86 elif cb_res is not None:
87 result = cb_res
/dports/net/pecl-oauth2/oauth-2.0.7/
H A Dprovider.c753 long cb_res; in SOP_METHOD() local
758 cb_res = Z_LVAL_P(retval); in SOP_METHOD()
761 if (OAUTH_OK!=cb_res) { in SOP_METHOD()
762 soo_handle_error(NULL, cb_res, "Invalid consumer key", NULL, additional_info); in SOP_METHOD()
774 cb_res = Z_LVAL_P(retval); in SOP_METHOD()
777 if (OAUTH_OK!=cb_res) { in SOP_METHOD()
778 soo_handle_error(NULL, cb_res, "Invalid token", NULL, additional_info); in SOP_METHOD()
790 cb_res = Z_LVAL_P(retval); in SOP_METHOD()
793 if (OAUTH_OK!=cb_res) { in SOP_METHOD()
794 soo_handle_error(NULL, cb_res, "Invalid nonce/timestamp combination", NULL, additional_info); in SOP_METHOD()
/dports/databases/p5-RedisDB/RedisDB-2.53/t/
H A Dnetwork.t145 my $cb_res;
146 $redis->set( "baz", "bar", sub { $cb_res = $_[1] } );
149 ok $cb_res, "Callback has been invoked";
150 isa_ok $cb_res, "RedisDB::Error::DISCONNECTED", " with an error object";
/dports/mail/opensmtpd/opensmtpd-6.8.0p2/usr.sbin/smtpd/
H A Dresolver.c48 void (*cb_res)(void *, int, int, int, const void *, int); member
150 req->cb_res = cb; in resolver_res_query()
381 req->cb_res(req->arg, herrno, rcode, count, data, datalen); in resolver_dispatch_result()
/dports/editors/vim/vim-8.2.3745/src/testdir/
H A Dtest_popupwin.vim1705 let s:cb_res = 999
1713 call assert_equal(a:result, s:cb_res)
1719 let s:cb_res = a:res
1735 let s:cb_res = 999
1742 call assert_equal(a:result, s:cb_res)
1748 let s:cb_res = a:res
2474 let s:cb_res = a:res
2489 call assert_equal(1, s:cb_res)
/dports/archivers/arj/arj-3.10.22/
H A Denviron.c2712 ULONG cb_res; in exec_pgm() local
2718 USHORT cb_res; in exec_pgm() local
2793 while((qrc=DosReadQueue(queue, &qr, &cb_res, (PVOID FAR *)&res, 0, DCWW_WAIT, in exec_pgm()