PageRenderTime 40ms queryTime 78ms sortTime 461ms getByIdsTime 184ms findMatchingLines 56ms

100+ results results for 'gets' (40 ms)

Not the results you expected?
CarSettingsDlg.cpp https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C++ | 373 lines
                    
128{
                    
129	if( ! ::IsWindow( GetSafeHwnd() ) )
                    
130	{
                    
137{
                    
138	if( ::IsWindow( GetSafeHwnd() ) )
                    
139		OnCancel();
                    
143{
                    
144	if( ::IsWindow( GetSafeHwnd() ) )
                    
145	{
                    
309	{
                    
310		if( pScrollBar->GetSafeHwnd() == m_gearSliderArray[i].GetSafeHwnd() )
                    
311		{
                    
                
GameRulesStandardScoring.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 391 lines
                    
165	{
                    
166		CryWarning(VALIDATOR_MODULE_GAME, VALIDATOR_COMMENT, "Scoring not setup for %s in gamemode %s", s_gamerulesScoreType[pointsType], gEnv->pConsole->GetCVar("sv_gamerules")->GetString());
                    
167	}
                    
184		// No scoring at game end
                    
185		IGameRulesStateModule *pStateModule = pGameRules->GetStateModule();
                    
186		if (pStateModule != NULL && pStateModule->GetGameState() == IGameRulesStateModule::EGRS_PostGame)
                    
251	// No scoring at game end
                    
252	IGameRulesStateModule *pStateModule = pGameRules->GetStateModule();
                    
253	if (pStateModule != NULL && pStateModule->GetGameState() == IGameRulesStateModule::EGRS_PostGame)
                    
353
                    
354				CStatsRecordingMgr* pRecordingMgr = g_pGame->GetStatsRecorder();
                    
355				if (pRecordingMgr)
                    
                
tray_accessibility.cc https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C++ | 355 lines
                    
67      : TrayItemMore(owner, true) {
                    
68    ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
                    
69    SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_ACCESSIBILITY_DARK).
                    
93    views::Label* label = new views::Label(
                    
94        l10n_util::GetStringUTF16(
                    
95            IDS_ASH_STATUS_TRAY_SPOKEN_FEEDBACK_ENABLED_BUBBLE));
                    
132  CreateScrollableList();
                    
133  ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
                    
134
                    
182
                    
183  ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
                    
184
                    
                
SkFontHost_fontconfig.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 354 lines
                    
137    // for something so we need a way to tell if the match which it has found is
                    
138    // "good enough" for us. Otherwise, we can return NULL which gets piped up
                    
139    // and lets WebKit know to try the next CSS family name. However, fontconfig
                    
161    FcChar8* post_config_family;
                    
162    FcPatternGetString(pattern, FC_FAMILY, 0, &post_config_family);
                    
163
                    
171    FcChar8* post_match_family;
                    
172    FcPatternGetString(match, FC_FAMILY, 0, &post_match_family);
                    
173    const bool family_names_match =
                    
240        FcChar8* family;
                    
241        if (FcPatternGetString(face_match, FC_FAMILY, 0, &family)) {
                    
242            FcPatternDestroy(face_match);
                    
272    FcChar8* filename;
                    
273    if (FcPatternGetString(match, FC_FILE, 0, &filename) != FcResultMatch) {
                    
274        FcPatternDestroy(match);
                    
                
socket.cpp https://bitbucket.org/ewfiseli/elib.git | C++ | 365 lines
                    
344            ::socklen_t len = sizeof(::sockaddr_in);
                    
345            int ret = ::getsockname(
                    
346                s.raw_socket()
                    
                
mdp_lcdc.c https://bitbucket.org/Lloir/lge-kernel-jb.git | C | 432 lines
                    
203
                    
204/* called in irq context with mdp lock held, when mdp gets the
                    
205 * MDP_LCDC_FRAME_START interrupt */
                    
                
CMarker.cpp https://github.com/dpgraham/multitheftauto.git | C++ | 379 lines
                    
156        BitStream.pBitStream->Write ( vecPosition.fZ );
                    
157        BitStream.pBitStream->Write ( GetSyncTimeContext () );
                    
158        BroadcastOnlyVisible ( CLuaPacket ( SET_ELEMENT_POSITION, *BitStream.pBitStream ) );
                    
                
switch.c https://github.com/gby/linux.git | C | 449 lines
                    
136	/*
                    
137	 * If we pended a virtual abort, preserve it until it gets
                    
138	 * cleared. See D1.14.3 (Virtual Interrupts) for details, but
                    
                
ProcessCpuTracker.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 355 lines
                    
185            // This code is trying to avoid issues with idle time going backwards,
                    
186            // but currently it gets into situations where it triggers most of the time. :(
                    
187            if (false || (usertime >= cpuTimeInfo.mBaseUserTime && systemtime >= cpuTimeInfo.mBaseSystemTime
                    
                
pcf50633-charger.c https://github.com/mstsirkin/linux.git | C | 492 lines
                    
79	 * using the correct amount of current even when the USB current limit
                    
80	 * gets reset to the wrong thing
                    
81	 */
                    
244 * This attribute allows to change MBC charging limit on the fly
                    
245 * independently of usb current limit. It also gets set automatically every
                    
246 * time usb current limit is changed.
                    
                
gf100.c https://bitbucket.org/alfredchen/linux-gc.git | C | 480 lines
                    
297
                    
298	/* select the method which gets closest to target freq */
                    
299	if (abs((int)freq - clk0) <= abs((int)freq - clk1)) {
                    
                
itkImageRegistrationMethodTest_15.cxx https://github.com/paniwani/ITK.git | C++ | 408 lines
                    
187    {
                    
188    center[j] = 0.5 *  (double)region.GetSize()[j];
                    
189    }
                    
                
evport.c https://gitlab.com/envieidoc/tomato | C | 473 lines
                    
45 * evport_add and evport_del update this data structure. evport_dispatch uses it
                    
46 * to determine where to callback when an event occurs (which it gets from
                    
47 * port_getn).
                    
                
plugin_loader.c https://bitbucket.org/mdavid/cherokee-webserver-svnclone.git | C | 558 lines
                    
306
                    
307		ret = fgets (temp, 127, file);
                    
308		if (ret == NULL)
                    
                
NBNetBuilder.cpp https://bitbucket.org/sieben/ensiie.git | C++ | 311 lines
                    
66    if (oc.isSet("keep-edges.input-file")) {
                    
67        std::ifstream strm(oc.getString("keep-edges.input-file").c_str());
                    
68        if (!strm.good()) {
                    
68        if (!strm.good()) {
                    
69            throw ProcessError("Could not load names of edges too keep from '" + oc.getString("keep-edges.input-file") + "'.");
                    
70        }
                    
99    if (oc.exists("junctions.join-exclude") && oc.isSet("junctions.join-exclude")) {
                    
100        myNodeCont.addJoinExclusion(oc.getStringVector("junctions.join-exclude"));
                    
101    }
                    
192    if (oc.isSet("tls.set")) {
                    
193        std::vector<std::string> tlControlledNodes = oc.getStringVector("tls.set");
                    
194        for (std::vector<std::string>::const_iterator i=tlControlledNodes.begin(); i!=tlControlledNodes.end(); ++i) {
                    
                
boss_forgemaster_garfrost.cpp https://github.com/Teiby1/lastDivision-Repo.git | C++ | 337 lines
                    
91            {
                    
92                if (!instance || static_cast<InstanceMap*>(me->GetMap())->GetScriptId() != sObjectMgr->GetScriptId(PoSScriptName))
                    
93                    me->IsAIEnabled = false;
                    
172                    if (Aura *aura = target->GetAura(SPELL_PERMAFROST_HELPER))
                    
173                        _permafrostStack = std::max<uint32>(_permafrostStack, aura->GetStackAmount());
                    
174                }
                    
277                                    prevented = true;
                    
278                                    target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, true);
                    
279                                    PreventHitDefaultEffect(EFFECT_0);
                    
294                {
                    
295                    target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, false);
                    
296                    if (prevented)
                    
309
                    
310        SpellScript* GetSpellScript() const
                    
311        {
                    
                
NatTypeDetectionServer.cpp https://gitlab.com/computerphilly/openblox | C++ | 438 lines
                    
47	DataStructures::List<RakNetSocket2* > sockets;
                    
48	rakPeerInterface->GetSockets(sockets);
                    
49	char str[64];
                    
                
ScriptedFollowerAI.cpp https://github.com/skypeak/VoragineCore.git | C++ | 407 lines
                    
149            {
                    
150                if (Player* pMember = pRef->getSource())
                    
151                {
                    
234                    {
                    
235                        Player* pMember = pRef->getSource();
                    
236
                    
341                {
                    
342                    Player* pMember = pRef->getSource();
                    
343
                    
                
boss_forgemaster_garfrost.cpp https://github.com/Lavik/TrinityCore.git | C++ | 337 lines
                    
91            {
                    
92                if (!instance || static_cast<InstanceMap*>(me->GetMap())->GetScriptId() != sObjectMgr->GetScriptId(PoSScriptName))
                    
93                    me->IsAIEnabled = false;
                    
172                    if (Aura* aura = target->GetAura(SPELL_PERMAFROST_HELPER))
                    
173                        _permafrostStack = std::max<uint32>(_permafrostStack, aura->GetStackAmount());
                    
174                }
                    
277                                    prevented = true;
                    
278                                    target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, true);
                    
279                                    PreventHitDefaultEffect(EFFECT_0);
                    
294                {
                    
295                    target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, false);
                    
296                    if (prevented)
                    
309
                    
310        SpellScript* GetSpellScript() const
                    
311        {
                    
                
winDumpExts.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 503 lines
                    
104 *----------------------------------------------------------------------
                    
105 * GetSZStorageClass --
                    
106 *
                    
111PSTR
                    
112GetSZStorageClass(BYTE storageClass)
                    
113{
                    
124 *----------------------------------------------------------------------
                    
125 * GetSectionName --
                    
126 *
                    
134void
                    
135GetSectionName(WORD section, PSTR buffer, unsigned cbBuffer)
                    
136{
                    
185
                    
186	GetSectionName(pSymbolTable->SectionNumber, sectionName,
                    
187		       sizeof(sectionName));
                    
                
scl_memmgr.cc https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C++ | 410 lines
                    
63        void * getaddr( void ) const;
                    
64        size_t getsize( void ) const;
                    
65        std::string getsrcfile( void ) const;
                    
65        std::string getsrcfile( void ) const;
                    
66        unsigned int getsrcline( void ) const;
                    
67};
                    
187            irecord ++ ) {
                    
188        scl_memmgr_error error( irecord->getsrcfile(), irecord->getsrcline() );
                    
189        ierror = errors.find( error );
                    
203        // todo: generate error for memory leak
                    
204        printf( "scl_memmgr warning: Possible memory leak in %s line %d\n", ierror->getsrcfile().c_str(), ierror->getsrcline() );
                    
205    }
                    
259            // Update stats
                    
260            _allocated -= record->getsize();
                    
261            _deallocated_total += record->getsize();
                    
                
ex8.c https://bitbucket.org/BarryFSmith/petsc.git | C | 293 lines
                    
196
                    
197     - Use PCASMGetSubKSP() to extract the array of KSP contexts for
                    
198       the local blocks.
                    
228
                    
229       Note: KSPSetUp() MUST be called before PCASMGetSubKSP().
                    
230    */
                    
235    */
                    
236    ierr = PCASMGetSubKSP(pc,&nlocal,&first,&subksp);CHKERRQ(ierr);
                    
237
                    
                
bucomm.c https://github.com/CTSRD-CHERI/binutils.git | C | 562 lines
                    
116   bfd_get_error () == bfd_error_file_ambiguously_recognized, print
                    
117   the possible matching targets.  */
                    
118
                    
127
                    
128/* List the supported targets.  */
                    
129
                    
130void
                    
131list_supported_targets (const char *name, FILE *f)
                    
132{
                    
136  if (name == NULL)
                    
137    fprintf (f, _("Supported targets:"));
                    
138  else
                    
138  else
                    
139    fprintf (f, _("%s: supported targets:"), name);
                    
140
                    
                
vtkImageDataGeometryFilter.cxx https://github.com/b3c/VTK-5.8.git | C++ | 483 lines
                    
76  outCD = output->GetCellData();
                    
77  pointScalars=pd->GetScalars();
                    
78//  this->PointData.CopyNormalsOff();
                    
                
HexagonPeephole.cpp https://gitlab.com/Birhetia/platform_external_llvm | C++ | 338 lines
                    
114bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) {
                    
115  QII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo());
                    
116  QRI = MF.getSubtarget<HexagonSubtarget>().getRegisterInfo();
                    
211        // Make sure we are copying the lower 32 bits.
                    
212        if (Src.getSubReg() != Hexagon::subreg_loreg)
                    
213          continue;
                    
                
GeometryShaderGen.cpp https://gitlab.com/Hexexpeck/dolphin-emulator | C++ | 337 lines
                    
48  ShaderCode out;
                    
49  // Non-uid template parameters will write to the dummy data (=> gets optimized out)
                    
50
                    
                
frame.cpp https://bitbucket.org/erwincoumans/dynamicaopencl.git | C++ | 412 lines
                    
23#if wxUSE_LIBHILDON
                    
24    #include <hildon-widgets/hildon-window.h>
                    
25#endif // wxUSE_LIBHILDON
                    
125        wxMenuItem* item = (wxMenuItem*) menu->GetMenuItems().Item(i)->GetData();
                    
126        if (item->GetSubMenu())
                    
127        {
                    
127        {
                    
128            wxAddAccelerators(accelEntries, item->GetSubMenu());
                    
129        }
                    
                
android_media_MediaScanner.cpp https://github.com/doixanh/android_frameworks_base.git | C++ | 347 lines
                    
165    
                    
166    const char *pathStr = env->GetStringUTFChars(path, NULL);
                    
167    if (pathStr == NULL) {  // Out of memory
                    
170    }
                    
171    const char *extensionsStr = env->GetStringUTFChars(extensions, NULL);
                    
172    if (extensionsStr == NULL) {  // Out of memory
                    
193    
                    
194    const char *pathStr = env->GetStringUTFChars(path, NULL);
                    
195    if (pathStr == NULL) {  // Out of memory
                    
198    }
                    
199    const char *mimeTypeStr = (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL);
                    
200    if (mimeType && mimeTypeStr == NULL) {  // Out of memory
                    
222    }
                    
223    const char *localeStr = env->GetStringUTFChars(locale, NULL);
                    
224    if (localeStr == NULL) {  // Out of memory
                    
                
Test-hexRef8.C https://gitlab.com/johnvarv/OpenFOAM-3.0.x | C | 420 lines
                    
112
                    
113    // 2. linear profile gets preserved
                    
114    volScalarField ccX
                    
240                // Unrefine
                    
241                labelList allSplitPoints(meshCutter.getSplitPoints());
                    
242
                    
                
qgl_qpa.cpp https://bitbucket.org/kasimling/qt.git | C++ | 412 lines
                    
208        d->workaroundsCached = true;
                    
209        const char *renderer = reinterpret_cast<const char *>(glGetString(GL_RENDERER));
                    
210        if (renderer && strstr(renderer, "Mali")) {
                    
326  Free up any allocated colormaps. This fn is only called for
                    
327  top-level widgets.
                    
328*/
                    
                
cl_term.c https://gitlab.com/storedmirrors/minix | C | 483 lines
                    
106	for (tkp = c_tklist; tkp->name != NULL; ++tkp) {
                    
107		if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1)
                    
108			continue;
                    
122	for (tkp = m1_tklist; tkp->name != NULL; ++tkp) {
                    
123		if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1)
                    
124			continue;
                    
141	for (tkp = m2_tklist; tkp->name != NULL; ++tkp) {
                    
142		if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1)
                    
143			continue;
                    
239			(int)STRTOL(from+1,NULL,10));
                    
240	if ((p = tigetstr(name)) == NULL ||
                    
241	    p == (char *)-1 || strlen(p) == 0)
                    
                
xattr_acl.c https://bitbucket.org/accelecon/linux-at91.git | C | 531 lines
                    
303	/*
                    
304	 * Ensure that the inode gets dirtied if we're only using
                    
305	 * the mode bits and an old ACL didn't exist. We don't need
                    
                
Http.cpp https://bitbucket.org/delroth/dolphin-llvm-dsp.git | C++ | 432 lines
                    
198////////////////////////////////////////////////////////////
                    
199Http::Response::Status Http::Response::GetStatus() const
                    
200{
                    
                
DBInit.cpp https://gitlab.com/vectorci/rippled | C++ | 329 lines
                    
177    // Table of PublicKeys user has asked to trust.
                    
178    // Fetches are made to the CAS.  This gets the ripple.txt so even validators
                    
179    // without a web server can publish a ripple.txt.
                    
                
mainwindow.cpp https://gitlab.com/jeanim/libqxt | C++ | 445 lines
                    
140        QxtMailAttachment att = msg->attachment(words[1]);
                    
141        QString filename = QFileDialog::getSaveFileName(this, "Save attachment", QString("./") + words[1]);
                    
142        if (!filename.isEmpty())
                    
                
util.c https://bitbucket.org/palday/fieldtrip.git | C | 414 lines
                    
375#ifdef COMPILER_LCC
                    
376VOID STDCALL GetSystemTimeAsFileTime(LPFILETIME);
                    
377#endif
                    
386    if (tv) {
                    
387        GetSystemTimeAsFileTime(&ft);
                    
388        li.LowPart  = ft.dwLowDateTime;
                    
                
bmp.c https://bitbucket.org/felixlong/android-rdp.git | C | 389 lines
                    
118	{
                    
119		if(!fgets(temps, 255, fs)) _throw("Read error");
                    
120		if(strlen(temps)==0 || temps[0]=='\n') continue;
                    
                
RegisterScavenging.cpp https://github.com/lygstate/llvm-mirror.git | C++ | 396 lines
                    
39
                    
40  for (const unsigned *SubRegs = TRI->getSubRegisters(Reg);
                    
41       unsigned SubReg = *SubRegs; ++SubRegs)
                    
112  BV.set(Reg);
                    
113  for (const unsigned *R = TRI->getSubRegisters(Reg); *R; R++)
                    
114    BV.set(*R);
                    
201        bool SubUsed = false;
                    
202        for (const unsigned *SubRegs = TRI->getSubRegisters(Reg);
                    
203             unsigned SubReg = *SubRegs; ++SubRegs)
                    
                
instmgr.cc https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C++ | 413 lines
                    
347SDAI_Application_instance *
                    
348InstMgr::GetSTEPentity( int index ) {
                    
349    MgrNode * mn = ( MgrNode * )( *master )[index];
                    
386SDAI_Application_instance *
                    
387InstMgr::GetSTEPentity( const char * entityKeyword, int starting_index ) {
                    
388    MgrNode * node;
                    
405void *
                    
406InstMgr::GetSEE( int index ) {
                    
407    MgrNode * mn = ( MgrNode * )( *master )[index];
                    
                
stub_dev.c https://github.com/andikleen/linux-misc.git | C | 523 lines
                    
37/*
                    
38 * usbip_sockfd gets a socket descriptor of an established TCP connection that
                    
39 * is used to transfer usbip requests by kernel threads. -1 is a magic number
                    
                
textentrycmn.cpp https://gitlab.com/Hexexpeck/dolphin-emulator | C++ | 472 lines
                    
141        //
                    
142        // Notice that we can't use GetValue() nor wxCommandEvent::GetString()
                    
143        // which uses it internally because this would just forward back to us
                    
257    long from, to;
                    
258    GetSelection(&from, &to);
                    
259
                    
265    long from, to;
                    
266    GetSelection(& from, & to);
                    
267    if (from != -1 && to != -1)
                    
270
                    
271wxString wxTextEntryBase::GetStringSelection() const
                    
272{
                    
273    long from, to;
                    
274    GetSelection(&from, &to);
                    
275
                    
                
Console.cpp https://github.com/chrishaukap/GameDev.git | C++ | 509 lines
                    
149
                    
150bool Console::GetSpecialInputDown( int key )
                    
151{
                    
                
msp432_startup_ewarm.c https://gitlab.com/21mece13/FreeRTOS | C | 300 lines
                    
225//
                    
226// This is the code that gets called when the processor first starts execution
                    
227// following a reset event.  Only the absolutely necessary set is performed,
                    
249//
                    
250// This is the code that gets called when the processor receives a NMI.  This
                    
251// simply enters an infinite loop, preserving the system state for examination
                    
267//
                    
268// This is the code that gets called when the processor receives a fault
                    
269// interrupt.  This simply enters an infinite loop, preserving the system state
                    
285//
                    
286// This is the code that gets called when the processor receives an unexpected
                    
287// interrupt.  This simply enters an infinite loop, preserving the system state
                    
                
itkMemoryUsageObserver.cxx https://github.com/luisibanez/ITK.git | C++ | 437 lines
                    
281  m_ParseSmaps.ReadFile();
                    
282  return m_ParseSmaps.GetHeapUsage() + m_ParseSmaps.GetStackUsage();
                    
283}
                    
298  m_ParseVMMmap.ReadFile();
                    
299  return m_ParseVMMmap.GetHeapUsage() + m_ParseVMMmap.GetStackUsage();
                    
300}
                    
357      }
                    
358    if ( fgets(remaining, 256, fp) != NULL )
                    
359      {
                    
                
TargetAttributesSema.cpp https://gitlab.com/wustl-pctg-pub/clang-cilk | C++ | 353 lines
                    
88        << Attr.getName() << AANT_ArgumentIntegerConstant
                    
89        << NumParamsExpr->getSourceRange();
                    
90      return;
                    
95      S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds)
                    
96        << "interrupt" << (int)NumParams.getSExtValue()
                    
97        << NumParamsExpr->getSourceRange();
                    
                
neo1973_wm8753.c https://bitbucket.org/SamThomas/linux.git | C | 472 lines
                    
196
                    
197static const struct snd_soc_dapm_widget neo1973_wm8753_dapm_widgets[] = {
                    
198	SND_SOC_DAPM_LINE("GSM Line Out", NULL),
                    
278
                    
279static const struct snd_soc_dapm_widget neo1973_gta02_wm8753_dapm_widgets[] = {
                    
280	SND_SOC_DAPM_SPK("Handset Spk", NULL),
                    
288
                    
289	ret = snd_soc_dapm_new_controls(dapm, neo1973_gta02_wm8753_dapm_widgets,
                    
290			ARRAY_SIZE(neo1973_gta02_wm8753_dapm_widgets));
                    
323
                    
324	/* Add neo1973 specific widgets */
                    
325	ret = snd_soc_dapm_new_controls(dapm, neo1973_wm8753_dapm_widgets,
                    
325	ret = snd_soc_dapm_new_controls(dapm, neo1973_wm8753_dapm_widgets,
                    
326			ARRAY_SIZE(neo1973_wm8753_dapm_widgets));
                    
327	if (ret)
                    
                
file.c https://bitbucket.org/freebsd/freebsd-base.git | C | 619 lines
                    
117/*
                    
118 * XXXDCL As the API for accessing file statistics undoubtedly gets expanded,
                    
119 * it might be good to provide a mechanism that allows for the results
                    
141 * rename is done. If all goes well then the backup can be deleted,
                    
142 * otherwise it gets renamed back.
                    
143 */
                    
                
ofxUDPManager.cpp https://github.com/brolin/openFrameworks.git | C++ | 500 lines
                    
346
                    
347	int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_MAX_MSG_SIZE, (char*)&sizeBuffer, &size);
                    
348	if(ret==-1) ofxNetworkCheckError();
                    
364
                    
365	int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_RCVBUF, (char*)&sizeBuffer, &size);
                    
366	if(ret==-1) ofxNetworkCheckError();
                    
383//--------------------------------------------------------------------------------
                    
384int	ofxUDPManager::GetSendBufferSize()
                    
385{
                    
395
                    
396	int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_SNDBUF, (char*)&sizeBuffer, &size);
                    
397	if(ret==-1) ofxNetworkCheckError();
                    
459
                    
460	if (getsockopt(m_hSocket, IPPROTO_IP, IP_MULTICAST_TTL, (char FAR *) &nTTL, &nSize) == SOCKET_ERROR)
                    
461	{
                    
                
scan.c https://gitlab.com/kush/linux | C | 469 lines
                    
146	if (first_run) {
                    
147		/* Firmware gets crazy if scan request is sent
                    
148		 * when STA is joined but not yet associated.
                    
                
TextBreakIteratorGtk.cpp https://bitbucket.org/zenoalbisser/webkit.git | C++ | 388 lines
                    
41    int getLength() { return m_length; }
                    
42    glong getSize() { return m_size; }
                    
43    void setIndex(int index);
                    
215    iterator->m_logAttrs = g_new0(PangoLogAttr, charLength + 1);
                    
216    pango_get_log_attrs(iterator->m_charIterator.getText(), iterator->m_charIterator.getSize(),
                    
217                        -1, 0, iterator->m_logAttrs, charLength + 1);
                    
                
juce_ScrollBar.cpp https://bitbucket.org/tallen92/physical-modelling-synth.git | C++ | 416 lines
                    
177{
                    
178    double start = visibleRange.getStart(); // (need to use a temp variable for VC7 compatibility)
                    
179    listeners.call (&ScrollBar::Listener::scrollBarMoved, this, start);
                    
198    if (totalRange.getLength() > visibleRange.getLength())
                    
199        newThumbStart += roundToInt (((visibleRange.getStart() - totalRange.getStart()) * (thumbAreaSize - newThumbSize))
                    
200                                         / (totalRange.getLength() - visibleRange.getLength()));
                    
266{
                    
267    setComponentEffect (getLookAndFeel().getScrollbarEffect());
                    
268
                    
290
                    
291        buttonSize = jmin (lf.getScrollbarButtonSize (*this), length / 2);
                    
292    }
                    
331    dragStartMousePos = lastMousePos;
                    
332    dragStartRange = visibleRange.getStart();
                    
333
                    
                
gl2.cpp https://gitlab.com/amardeep434/du_frameworks_native | C++ | 291 lines
                    
207/*
                    
208 * glGetString() and glGetStringi() are special because we expose some
                    
209 * extensions in the wrapper. Also, wrapping glGetXXX() is required because
                    
214extern "C" {
                    
215    const GLubyte * __glGetString(GLenum name);
                    
216    const GLubyte * __glGetStringi(GLenum name, GLuint index);
                    
222
                    
223const GLubyte * glGetString(GLenum name) {
                    
224    const GLubyte * ret = egl_get_string_for_current_context(name);
                    
226        gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl;
                    
227        if(_c) ret = _c->glGetString(name);
                    
228    }
                    
231
                    
232const GLubyte * glGetStringi(GLenum name, GLuint index) {
                    
233    const GLubyte * ret = egl_get_string_for_current_context(name, index);
                    
                
dragrace.c https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C | 377 lines
                    
38{
                    
39	timer_pulse(cpu_getscanlinetime(0), 0, dragrace_frame_callback);
                    
40}
                    
166{
                    
167	return (cpu_getscanline() ^ 0xf0) | 0x0f;
                    
168}
                    
                
FAT_FileHandle.cpp https://bitbucket.org/pmfsampaio/netmf-lpc.git | C++ | 454 lines
                    
90        {
                    
91            sector = m_logicDisk->SectorCache.GetSector( m_sectIndex, (type == Helper_Write) ? TRUE : FALSE );
                    
92
                    
                
mfx_dispatcher_log.cpp https://gitlab.com/Ornim/obs-old | C++ | 449 lines
                    
345
                    
346IMsgHandler *ETWHandlerFactory::GetSink(const wchar_t* sguid)
                    
347{
                    
385                                        this,
                    
386                                        pSink = ETWHandlerFactory::get().GetSink(m_sguid));
                    
387        //need to call only once here all next calls will be done inside dispatcherlog
                    
408        DispatchLog::get().AttachSink( DL_SINK_IMsgHandler
                    
409                                      , ETWHandlerFactory::get().GetSink(sguid));
                    
410    }
                    
                
HeightMapModel.cpp https://github.com/abcfantasy/ANDgine.git | C++ | 316 lines
                    
274
                    
275// Gets the interpolated height at the coordinates given
                    
276float HeightMapModel::getHeight( float x, float z ) {
                    
                
cs_instance.cpp https://gitlab.com/Eternal-WoW/TrinityCore-1 | C++ | 329 lines
                    
74    {
                    
75        Player* player = handler->getSelectedPlayer();
                    
76        if (!player)
                    
76        if (!player)
                    
77            player = handler->GetSession()->GetPlayer();
                    
78
                    
117
                    
118        Player* player = handler->getSelectedPlayer();
                    
119        if (!player)
                    
119        if (!player)
                    
120            player = handler->GetSession()->GetPlayer();
                    
121
                    
171    {
                    
172        Player* player = handler->GetSession()->GetPlayer();
                    
173        Map* map = player->GetMap();
                    
                
var_tree.cpp https://gitlab.com/evilbinary/vlc | C++ | 472 lines
                    
123    {
                    
124        Iterator it = ++(getSelf());
                    
125        if( it != p_parent->m_children.end() )
                    
137    {
                    
138        Iterator it = getSelf();
                    
139        if( it != p_parent->m_children.begin() )
                    
156        {
                    
157            Iterator it = ++(p_parent->getSelf());
                    
158            if( it != p_grandparent->m_children.end() )
                    
176        {
                    
177            Iterator it = p_parent->getSelf();
                    
178            if( it != p_grandparent->m_children.begin() )
                    
281        /* Yes, get its parent's it */
                    
282        it = p_parent->getSelf();
                    
283    }
                    
                
KX_TrackToActuator.cpp https://bitbucket.org/brita/blender-gl_debug.git | C++ | 491 lines
                    
78				// this is needed to revert the effect of the parent inverse node (TBC)
                    
79				m_parentlocalmat = m_parentobj->GetSGNode()->GetLocalOrientation();
                    
80				// use registration mechanism rather than AddRef, it creates zombie objects
                    
394			MT_Point3 localpos;
                    
395			localpos = curobj->GetSGNode()->GetLocalPosition();
                    
396			// Get the inverse of the parent matrix
                    
                
ex17.c https://bitbucket.org/karpeev/petsc.git | C | 306 lines
                    
114    SNES snes;
                    
115    ierr = TSGetSNES(ts,&snes);CHKERRQ(ierr);
                    
116    ierr = SNESSetJacobian(snes,J,J,SNESComputeJacobianDefaultColor,0);CHKERRQ(ierr);
                    
118    SNES snes;
                    
119    ierr = TSGetSNES(ts,&snes);CHKERRQ(ierr);
                    
120    ierr = SNESSetJacobian(snes,J,J,SNESComputeJacobianDefault,&user);CHKERRQ(ierr);
                    
                
GUIPythonWindowXML.cpp https://github.com/xbmc/xbmc-rbp.git | C++ | 457 lines
                    
152    {
                    
153      int iControl=message.GetSenderId();
                    
154      // Handle Sort/View internally. Scripters shouldn't use ID 2, 3 or 4.
                    
254{
                    
255  return m_viewControl.GetSelectedItem();
                    
256}
                    
447  // allocate a bunch of strings
                    
448  return g_localizeStrings.LoadBlock(m_scriptPath, pathToLanguageFile, g_guiSettings.GetString("locale.language"));
                    
449}
                    
                
image.cpp https://gitlab.com/jesusalva/TMW-BR_NecHercules | C++ | 500 lines
                    
409
                    
410Image* Image::SDLgetScaledImage(const int width, const int height) const
                    
411{
                    
439
                    
440Image *Image::getSubImage(const int x, const int y,
                    
441                          const int width, const int height)
                    
487        sz += CAST_S32(mAlphaCache.size()) *
                    
488            memoryManager.getSurfaceSize(mSDLSurface);
                    
489    }
                    
                
tab.cpp https://gitlab.com/jesusalva/TMW-BR_NecHercules | C++ | 480 lines
                    
65
                    
66#include "gui/widgets/tabs/tab.h"
                    
67
                    
72
                    
73#include "gui/widgets/label.h"
                    
74#include "gui/widgets/tabbedarea.h"
                    
                
SOCK_Connector.cpp https://gitlab.com/mohsencs/SunWellCore | C++ | 350 lines
                    
124              // error state. The error code is then retrieved with
                    
125              // getsockopt(). Good sockets however will return from
                    
126              // the select() with ETIME - in this case return
                    
                
gui.c https://bitbucket.org/akristmann/custom_build.git | C | 492 lines
                    
45
                    
46GtkWidget *AttrWidgets[MAXIMUM_WIDGET_COUNT];
                    
47GtkWidget *AttrLabels[MAXIMUM_WIDGET_COUNT];
                    
47GtkWidget *AttrLabels[MAXIMUM_WIDGET_COUNT];
                    
48int attr_widgets_modified[MAXIMUM_WIDGET_COUNT];
                    
49int widgetcounter;		//number of attributes counted dynamically, might be removed in the future 
                    
304    if (file != NULL) {
                    
305	while (fgets(line, sizeof line, file) != NULL) {
                    
306	    pch = strtok(line, ",");
                    
                
AutofillPopupMenuClient.cpp https://gitlab.com/f3822/qtwebengine-chromium | C++ | 348 lines
                    
62
                    
63unsigned AutofillPopupMenuClient::getSuggestionsCount() const
                    
64{
                    
67
                    
68WebString AutofillPopupMenuClient::getSuggestion(unsigned listIndex) const
                    
69{
                    
151{
                    
152    return getSuggestion(listIndex);
                    
153}
                    
221{
                    
222    m_textField->setValue(getSuggestion(listIndex));
                    
223}
                    
325    // Try to preserve selection if possible.
                    
326    if (getSelectedIndex() >= static_cast<int>(names.size()))
                    
327        setSelectedIndex(-1);
                    
                
arthurwidgets.cpp https://gitlab.com/f3822/qtbase | C++ | 377 lines
                    
50
                    
51#include "arthurwidgets.h"
                    
52#include <QApplication>
                    
                
MultiPoly.cpp https://github.com/fodrek/heekscad.git | C++ | 407 lines
                    
79
                    
80	//This gets the hashtable working
                    
81	bcurves.sort();
                    
                
itkCenteredTransformInitializerTest.cxx https://github.com/arnaudgelas/ITK.git | C++ | 392 lines
                    
50  const typename FixedImageType::RegionType & fixedRegion = fixedImage->GetLargestPossibleRegion();
                    
51  const typename FixedImageType::SizeType &   fixedSize   = fixedRegion.GetSize();
                    
52  const typename FixedImageType::IndexType &  fixedIndex  = fixedRegion.GetIndex();
                    
62  const typename MovingImageType::RegionType & movingRegion = movingImage->GetLargestPossibleRegion();
                    
63  const typename MovingImageType::SizeType &   movingSize   = movingRegion.GetSize();
                    
64  const typename MovingImageType::IndexType &  movingIndex  = movingRegion.GetIndex();
                    
189  const RegionType & region = image->GetLargestPossibleRegion();
                    
190  const SizeType &   size   = region.GetSize();
                    
191  const IndexType &  index  = region.GetIndex();
                    
                
AssetClass.cpp https://github.com/goofoo/Helium.git | C++ | 330 lines
                    
71
                    
72tstring AssetClass::GetShortName() const
                    
73{
                    
124                    {
                    
125                        if ( (int)arraySerializer->GetSize() < 1 )
                    
126                        {
                    
129
                    
130                        for ( size_t index = 0; index < arraySerializer->GetSize(); ++index )
                    
131                        {
                    
147                    {
                    
148                        if ( (int)mapSerializer->GetSize() < 1 )
                    
149                        {
                    
175                    {
                    
176                        if ( (int)setSerializer->GetSize() < 1 )
                    
177                        {
                    
                
llfloaterexportregion.cpp https://github.com/electronbeam/Momentum.git | C++ | 429 lines
                    
63				bool is_root = true;
                    
64				LLViewerObject* parentp = objectp->getSubParent();
                    
65				if(parentp)
                    
151			gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
                    
152			gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID());
                    
153			gMessageSystem->nextBlockFast(_PREHASH_ObjectData);
                    
165					gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
                    
166					gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID());
                    
167				}
                    
175			gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
                    
176			gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID());
                    
177			gMessageSystem->nextBlockFast(_PREHASH_ObjectData);
                    
346		LLFilePicker& file_picker = LLFilePicker::instance();
                    
347		if(file_picker.getSaveFile( LLFilePicker::FFSAVE_XML, LLDir::getScrubbedFileName(default_filename + ".xml")))
                    
348		{
                    
                
pet_hunter.cpp https://gitlab.com/Xiledria/eluna | C++ | 359 lines
                    
90                if (!me->GetVictim() && me->IsSummon())
                    
91                    if (Unit* Owner = me->ToTempSummon()->GetSummoner())
                    
92                        if (Owner->getAttackerForHelper())
                    
170            {
                    
171                if (!sSpellMgr->GetSpellInfo(SPELL_PET_SWOOP) ||
                    
172                    !sSpellMgr->GetSpellInfo(SPELL_PET_CHARGE))
                    
217            {
                    
218                if (!sSpellMgr->GetSpellInfo(SPELL_PET_GUARD_DOG_HAPPINESS))
                    
219                    return false;
                    
226                // filter by spellIcon instead
                    
227                SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
                    
228                if (!spellInfo || spellInfo->SpellIconID != PET_ICON_ID_GROWL)
                    
240
                    
241                float addThreat = CalculatePct(static_cast<float>(eventInfo.GetSpellInfo()->Effects[EFFECT_0].CalcValue(caster)), aurEff->GetAmount());
                    
242                eventInfo.GetProcTarget()->AddThreat(caster, addThreat);
                    
                
async.c https://github.com/perj/wine.git | C | 359 lines
                    
167    async_reselect( async );
                    
168    release_object( async );  /* so that it gets destroyed when the async is done */
                    
169}
                    
                
dir_access_unix.cpp https://gitlab.com/godotengine/godot | C++ | 514 lines
                    
256			char string[1024];
                    
257			while (fgets(string, 1024, fd)) {
                    
258				// Parse only file:// links
                    
                
iidathdl.c https://github.com/akdh/Ingres.git | C | 436 lines
                    
114**	    Added changes to use lodata->db_datatype set by COPY, and
                    
115**	    ensure that null indicator variable gets set correctly.
                    
116**	25-jun-1993 	(kathryn)
                    
                
vdraw.cxx https://github.com/jonasfj/libreoffice-writer.git | C++ | 378 lines
                    
87    //if ( bXorVis )
                    
88    //	pImp->GetDrawView()->ShowShownXor( pImp->GetShell()->GetOut() );
                    
89//}
                    
105    {
                    
106        SET_CURR_SHELL( GetShell() );
                    
107        if ( pSh->ISA(SwFEShell) )
                    
108            ((SwFEShell*)pSh)->HideChainMarker();	//Kann sich geaendert haben
                    
109        //bResetXorVisibility = GetDrawView()->IsShownXorVisible( GetShell()->GetOut());
                    
110        //GetDrawView()->HideShownXor( GetShell()->GetOut() );
                    
119    {
                    
120        SET_CURR_SHELL( GetShell() );
                    
121        //if ( bResetXorVisibility )
                    
192        if( GetShell()->GetWin() &&
                    
193            Application::GetSettings().GetStyleSettings().GetHighContrastMode() &&
                    
194            (!GetShell()->IsPreView()||SW_MOD()->GetAccessibilityOptions().GetIsForPagePreviews()))
                    
                
GUIWindowPVRRecordings.cpp https://gitlab.com/freesoftware/xbmc | C++ | 409 lines
                    
104  {
                    
105    const std::shared_ptr<CFileItem> pItem = m_vecItems->Get(m_viewControl.GetSelectedItem());
                    
106    if (!pItem || pItem->IsParentFolder())
                    
208    case GUI_MSG_CLICKED:
                    
209      if (message.GetSenderId() == m_viewControl.GetCurrentControl())
                    
210      {
                    
210      {
                    
211        int iItem = m_viewControl.GetSelectedItem();
                    
212        if (iItem >= 0 && iItem < m_vecItems->Size())
                    
289      {
                    
290        const std::shared_ptr<CSettings> settings = CServiceBroker::GetSettingsComponent()->GetSettings();
                    
291        settings->ToggleBool(CSettings::SETTING_PVRRECORD_GROUPRECORDINGS);
                    
307        CMediaSettings::GetInstance().CycleWatchedMode("recordings");
                    
308        CServiceBroker::GetSettingsComponent()->GetSettings()->Save();
                    
309        OnFilterItems(GetProperty("filter").asString());
                    
                
vtkBoxWidget2.cxx https://github.com/aashish24/VTK-old.git | C++ | 332 lines
                    
33{
                    
34  this->WidgetState = vtkBoxWidget2::Start;
                    
35  this->ManagesCursor = 1;
                    
108    {
                    
109    self->WidgetState = vtkBoxWidget2::Start;
                    
110    return;
                    
153  // We are definitely selected
                    
154  self->WidgetState = vtkBoxWidget2::Active;
                    
155  self->GrabFocus(self->EventCallbackCommand);
                    
186    {
                    
187    self->WidgetState = vtkBoxWidget2::Start;
                    
188    return;
                    
203  // We are definitely selected
                    
204  self->WidgetState = vtkBoxWidget2::Active;
                    
205  self->GrabFocus(self->EventCallbackCommand);
                    
                
sensor.cc https://github.com/chromium/chromium.git | C++ | 371 lines
                    
63    const double max_allowed_frequency =
                    
64        device::GetSensorMaxAllowedFrequency(type_);
                    
65    if (frequency_ > max_allowed_frequency) {
                    
177  auto* provider = SensorProviderProxy::From(window);
                    
178  sensor_proxy_ = provider->GetSensorProxy(type_);
                    
179
                    
                
ChatHandler.cpp https://github.com/freghar/mangos-svn-backup.git | C++ | 381 lines
                    
166            // send whispers from player to GM only if GM accept its (not show online state GM in other case)
                    
167            if(!player || GetSecurity() == 0 && player->GetSession()->GetSecurity() > 0 && !player->isAcceptWhispers())
                    
168            {
                    
173            }
                    
174            if (!sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION) && GetSecurity() == 0 && player->GetSession()->GetSecurity() == 0 )
                    
175            {
                    
187            sChatHandler.FillMessageData(&data, this, type, lang, NULL, 0, msg.c_str() );
                    
188            player->GetSession()->SendPacket(&data);
                    
189
                    
375    Player *player = objmgr.GetPlayer(iguid);
                    
376    if(!player || !player->GetSession())
                    
377        return;
                    
379    sChatHandler.FillMessageData(&data, this, CHAT_MSG_IGNORED, LANG_UNIVERSAL, NULL, GetPlayer()->GetGUID(), GetPlayer()->GetName());
                    
380    player->GetSession()->SendPacket(&data);
                    
381}
                    
                
AddonInstanceHandler.cpp https://gitlab.com/h.udo/xbmc | C++ | 374 lines
                    
125
                    
126std::shared_ptr<CSetting> IAddonInstanceHandler::GetSetting(const std::string& setting)
                    
127{
                    
134
                    
135  auto value = m_addon->GetSettings()->GetSetting(setting);
                    
136  if (value == nullptr)
                    
164
                    
165  auto setting = instance->GetSetting(id);
                    
166  if (setting == nullptr)
                    
179
                    
180  auto setting = instance->GetSetting(id);
                    
181  if (setting == nullptr)
                    
202
                    
203  auto setting = instance->GetSetting(id);
                    
204  if (setting == nullptr)
                    
                
ctrl_text.cpp https://github.com/mstorsjo/vlc.git | C++ | 402 lines
                    
282    // automatically start or stop the timer accordingly
                    
283    const std::string &rState = m_fsm.getState();
                    
284    if( rState == "moving" || rState == "outMoving" )
                    
                
native_stack_sampler_win.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 332 lines
                    
74
                    
75// Gets the unique build ID for a module. Windows build IDs are created by a
                    
76// concatenation of a GUID and AGE fields found in the headers of a module. The
                    
195
                    
196  // Gets the index for the Module corresponding to |module_handle| in
                    
197  // |modules|, adding it if it's not already present. Returns
                    
                
GlyphPageTreeNodeTest.cpp https://gitlab.com/jonnialva90/iridium-browser | C++ | 253 lines
                    
212        GlyphPageTreeNode* node2 = node1->getNormalChild(dataBtoD.get(), kPageNumber);
                    
213        SystemFallbackGlyphPageTreeNode* node3 = node2->getSystemFallbackChild(kPageNumber);
                    
214
                    
234    GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(defaultData.get(), kPageNumber);
                    
235    SystemFallbackGlyphPageTreeNode* node2 = node1->getSystemFallbackChild(kPageNumber);
                    
236
                    
                
Graphics.cpp https://gitlab.com/Teo-Mirror/AtomicGameEngine | C++ | 453 lines
                    
372    {
                    
373        SDL_Surface* surface = windowIcon_->GetSDLSurface();
                    
374        if (surface)
                    
422{
                    
423    return SDL_GetWindowDisplayIndex((SDL_Window*) this->GetSDLWindow());
                    
424}
                    
                
boss_netherspite.cpp https://github.com/xiaofeng2009/TC2.git | C++ | 343 lines
                    
73        {
                    
74            if(SpellEntry *spell = (SpellEntry*)GetSpellStore()->LookupEntry(PlayerBuff[i]))
                    
75                spell->AttributesEx |= SPELL_ATTR_EX_NEGATIVE;
                    
90    uint64 BeamerGUID[3]; // guid's of auxiliary beaming portals
                    
91    uint64 BeamTarget[3]; // guid's of portals' current targets
                    
92
                    
174                    {
                    
175                        Player* p = i->getSource();
                    
176                        if(p && p->isAlive() // alive
                    
                
v4l.c https://github.com/jeez/iqr.git | C | 465 lines
                    
143
                    
144int V4LGetSource(int fd, int source, V4LChannel *v4lchannel)
                    
145{
                    
153
                    
154} // end V4LGetSource
                    
155
                    
                
Camera.cpp https://github.com/zakki/openhsp.git | C++ | 445 lines
                    
58    if (properties->exists("type"))
                    
59        typeStr = properties->getString("type");
                    
60    Camera::Type type;
                    
                
X86Subtarget.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 436 lines
                    
9//
                    
10// This file implements the X86 specific subclass of TargetSubtargetInfo.
                    
11//
                    
39ClassifyBlockAddressReference() const {
                    
40  if (isPICStyleGOT())    // 32-bit ELF targets.
                    
41    return X86II::MO_GOTOFF;
                    
90
                    
91  if (isPICStyleGOT()) {   // 32-bit ELF targets.
                    
92    // Extra load is needed for all externally visible.
                    
165
                    
166/// getSpecialAddressLatency - For targets where it is beneficial to
                    
167/// backschedule instructions that compute addresses, return a value
                    
169/// should be attempted.
                    
170unsigned X86Subtarget::getSpecialAddressLatency() const {
                    
171  // For x86 out-of-order targets, back-schedule address computations so
                    
                
utrans.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 495 lines
                    
73     */
                    
74    static UClassID U_EXPORT2 getStaticClassID();
                    
75
                    
                
filevideocapturer.cc https://gitlab.com/f3822/qtwebengine-chromium | C++ | 377 lines
                    
55bool VideoRecorder::RecordFrame(const CapturedFrame& frame) {
                    
56  if (talk_base::SS_CLOSED == video_file_.GetState()) {
                    
57    LOG(LS_ERROR) << "File not opened yet";
                    
226
                    
227  if (talk_base::SS_CLOSED == video_file_.GetState()) {
                    
228    LOG(LS_ERROR) << "File not opened yet";
                    
267
                    
268  fourccs->push_back(GetSupportedFormats()->at(0).fourcc);
                    
269  return true;
                    
317  // 2. Read the next frame.
                    
318  if (talk_base::SS_CLOSED == video_file_.GetState()) {
                    
319    LOG(LS_ERROR) << "File not opened yet";
                    
                
modes.c https://gitlab.com/theinspire.eu/inspireSRV | C | 473 lines
                    
17/*To shut up some weird compilers. I don't know what this thing wants from me.*/
                    
18pid_t getsid(pid_t);
                    
19
                    
141	pid_t CurPID;
                    
142	const pid_t OurPID = getpid(), OurSID = getsid(0);
                    
143
                    
169			
                    
170			if (getsid(CurPID) == OurSID)
                    
171			{ /*It's in our session ID, so don't touch it.*/
                    
                
test.cpp https://github.com/goofoo/Helium.git | C++ | 440 lines
                    
18// For all others, include the necessary headers (this file is usually all you
                    
19// need because it includes almost all "standard" wxWidgets headers
                    
20#ifndef WX_PRECOMP
                    
105
                    
106    // Any class wishing to process wxWidgets events must use this macro
                    
107    DECLARE_EVENT_TABLE()
                    
143// ----------------------------------------------------------------------------
                    
144// event tables and other macros for wxWidgets
                    
145// ----------------------------------------------------------------------------
                    
186
                    
187    SetVendorName(wxT("wxWidgets"));
                    
188    SetAppName(wxT("wxHtmlTest"));
                    
                
DisableMgr.cpp https://github.com/Titan-Project/TrilliumEMU.git | C++ | 361 lines
                    
82        uint8 flags = fields[2].GetUInt8();
                    
83        std::string params_0 = fields[3].GetString();
                    
84        std::string params_1 = fields[4].GetString();
                    
91            case DISABLE_TYPE_SPELL:
                    
92                if (!(sSpellMgr->GetSpellInfo(entry) || flags & SPELL_DISABLE_DEPRECATED_SPELL))
                    
93                {
                    
                
xilinxfb.c https://github.com/gby/linux.git | C | 508 lines
                    
69 * The hardware only handles a single mode: 640x480 24 bit true
                    
70 * color. Each pixel gets a word (32 bits) of memory.  Within each word,
                    
71 * the 8 most significant bits are ignored, the next 8 bits are the red
                    
                
LoadingBarReader.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 376 lines
                    
147        
                    
148        const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, P_TextureData);
                    
149        int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, P_ResourceType);
                    
288                }
                    
289                else if (SpriteFrameCache::getInstance()->getSpriteFrameByName(imageFileName))
                    
290                {
                    
304                std::string plist = imageFileNameDic->plistFile()->c_str();
                    
305                SpriteFrame* spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName(imageFileName);
                    
306                if (spriteFrame)
                    
                
sysinfo.c https://gitlab.com/dj-tech/reactos | C | 477 lines
                    
24WINAPI
                    
25GetSystemInfoInternal(IN PSYSTEM_BASIC_INFORMATION BasicInfo,
                    
26                      IN PSYSTEM_PROCESSOR_INFORMATION ProcInfo,
                    
93WINAPI
                    
94GetSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
                    
95{
                    
111    
                    
112    GetSystemInfoInternal(&BasicInfo, &ProcInfo, lpSystemInfo);
                    
113}
                    
130WINAPI
                    
131GetSystemRegistryQuota(OUT PDWORD pdwQuotaAllowed,
                    
132                       OUT PDWORD pdwQuotaUsed)
                    
177    
                    
178    GetSystemInfoInternal(&BasicInfo, &ProcInfo, lpSystemInfo);
                    
179}
                    
                
vtkSeedWidget.cxx https://github.com/aashish24/VTK-old.git | C++ | 413 lines
                    
139    this->RequestCursorShape( VTK_CURSOR_DEFAULT );
                    
140    this->WidgetState = vtkSeedWidget::Start;
                    
141    }
                    
152  // Need to distinguish between placing handles and manipulating handles
                    
153  if ( self->WidgetState == vtkSeedWidget::MovingSeed )
                    
154    {
                    
181
                    
182    self->WidgetState = vtkSeedWidget::PlacingSeeds;
                    
183    double e[3]; e[2]=0.0;
                    
214  // Do something only if we are in the middle of placing the seeds
                    
215  if ( self->WidgetState == vtkSeedWidget::PlacingSeeds )
                    
216    {
                    
411
                    
412  os << indent << "WidgetState: " << this->WidgetState << endl;
                    
413}
                    
                
mtype.cpp https://github.com/tomka/copo.git | C++ | 477 lines
                    
149ULONG
                    
150CMediaType::GetSampleSize() const {
                    
151    if (IsFixedSize()) {
                    
                
lm95241.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 477 lines
                    
89
                    
90/* Client data (each client gets its own) */
                    
91struct lm95241_data {
                    
                
dlmast.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 474 lines
                    
54
                    
55/* Should be called as an ast gets queued to see if the new
                    
56 * lock level will obsolete a pending bast.
                    
197 		 * place when the lock is downconverted - otherwise we risk
                    
198 		 * racing gets and puts which could result in old lvb data
                    
199 		 * being propagated. We leave the put flag set and clear it
                    
                
 

Source

Language