100+ results for 'php defined'
Not the results you expected?
reportlib_test.php (https://bitbucket.org/kudutest/moodlegit.git) PHP · 197 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
17 /**
18 * Unit tests for grade/report/lib.php.
19 *
20 * @pacakge core_grade
21 * @category phpunit
22 * @author Andrew Davis
23 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
24 */
26 defined('MOODLE_INTERNAL') || die();
28 global $CFG;
TimeType.php (https://gitlab.com/freebird/WebApp) PHP · 250 lines
VaultTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 266 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
23 /**
24 * Class VaultTest
25 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26 */
27 class VaultTest extends \PHPUnit_Framework_TestCase
52 /**
53 * @expectedException \LogicException
54 * @expectedExceptionMessage Token metadata should be defined
55 */
56 public function testAuthorizeNoTokenMetadata()
LexerTest.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 246 lines
1 <?php
3 namespace PhpParser;
5 class LexerTest extends \PHPUnit_Framework_TestCase
6 {
7 /* To allow overwriting in parent class */
14 */
15 public function testError($code, $message) {
16 if (defined('HHVM_VERSION')) {
17 $this->markTestSkipped('HHVM does not throw warnings from token_get_all()');
18 }
27 }
29 $this->fail('Expected PhpParser\Error');
30 }
jobs.php (https://github.com/Paladin/joomla-platform.git) PHP · 372 lines
1 <?php
2 /**
3 * @package Joomla.Platform
8 */
10 defined('JPATH_PLATFORM') or die();
12 /**
228 * @param string $company_name Jobs with a matching company name.
229 * @param string $job_title Matches jobs with the same job title.
230 * @param string $country_code Matches members with a location in a specific country. Values are defined in by ISO 3166 standard.
231 * Country codes must be in all lower case.
232 * @param integer $postal_code Matches members centered around a Postal Code. Must be combined with the country-code parameter.
OS_main.h (https://github.com/kroolik/TrinityCore.git) C Header · 310 lines
44 # endif /* ! ACE_WMAIN */
46 # if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
47 # define ACE_TMAIN wmain
48 # else
121 ace_main_i
123 # elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x640) && defined (__RTP__)
125 # define main \
154 # elif !defined (ACE_HAS_WINCE)
156 # if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
158 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
dannys_temperatureRGB_setupFINISHEDMODULAR.pde (https://github.com/DannyGITHUB/Danny-Huynh-3292443.git) Processing · 232 lines
151 /*
152 * getVoltage() - returns the voltage on the analog input defined by
153 * pin
154 */
160 // Following code used was sourced from Action Script;
161 // http://www.actionscript.org/forums/showthread.php3?t=15155
162 // Code functions as a converter for changing a hue, saturation and brightness
address_v4.cpp (https://gitlab.com/cdeclare/intcrypt) C++ · 268 lines
11 // Disable autolinking for unit tests.
12 #if !defined(BOOST_ALL_NO_LIB)
13 #define BOOST_ALL_NO_LIB 1
14 #endif // !defined(BOOST_ALL_NO_LIB)
117 os << addr1;
119 #if !defined(BOOST_NO_STD_WSTREAMBUF)
120 std::wostringstream wos;
121 wos << addr1;
122 #endif // !defined(BOOST_NO_STD_WSTREAMBUF)
123 }
124 catch (std::exception&)
Configure.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 311 lines
1 <?php defined('SYSPATH') or die('No direct access allowed.');
2 /**
3 * @package Core/Libraries/Package
10 * Version of this module. Use any php version string
11 * see http://php.net/manual/en/function.version-compare.php
12 * @var mixed
13 */
65 /**
66 * This is a list of catagories constants as defined in Core_PackageManager
67 * @var string
68 */
simbio_form_maker.inc.php (https://github.com/awriel/s3st15_matoa.git) PHP · 261 lines
util.php (https://github.com/markn86/moodle.git) PHP · 189 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
25 namespace core_rating\external;
27 defined('MOODLE_INTERNAL') || die();
29 require_once($CFG->dirroot . '/rating/lib.php');
30 require_once($CFG->libdir . '/externallib.php');
32 use external_multiple_structure;
102 /**
103 * Returns rating information inside a data structure like the one defined by external_ratings_structure.
104 *
105 * @param stdClass $mod course module object
main.cpp (https://bitbucket.org/noahgoldman/data_structures.git) C++ · 310 lines
querying.cpp (https://github.com/eile/boost-svn.git) C++ · 304 lines
ExpressionTest_Negate.cs (https://github.com/t-ashula/mono.git) C# · 315 lines
82 [Test]
83 public void UserDefinedClass ()
84 {
85 var mi = typeof (OpClass).GetMethod ("op_UnaryNegation");
142 [Test]
143 public void UserDefinedNegate ()
144 {
145 var s = Expression.Parameter (typeof (Slot), "s");
157 [Test]
158 [Category ("NotWorkingInterpreter")]
159 public void UserDefinedNotNullableNegateNullable ()
160 {
161 var s = Expression.Parameter (typeof (Slot?), "s");
admin-config-config-tips-en.php (https://github.com/voidit/nycga2.git) PHP · 128 lines
1 <?php
3 global $tooltips;
88 $tooltips['policies']=
89 "The <b>Policy Documents Folder</b> can optionally contain <b>plain text files</b> (which can include HTML tags) describing forum policy.<br />
90 If used, two documents can be defined directly used by Simple:Press. These are:
91 <br /><br />
92 <b>User Registration Policy</b> document<br />
handle_workaround.hpp (https://github.com/arx/ArxWindows.git) C++ Header · 262 lines
12 //#define BOOST_USE_WINDOWS_H 1
14 #if defined( BOOST_USE_WINDOWS_H )
15 #include <Winternl.h>
16 #endif
37 } SYSTEM_HANDLE_INFORMATION_, *PSYSTEM_HANDLE_INFORMATION_;
39 #if defined( BOOST_USE_WINDOWS_H )
41 using UNICODE_STRING_ = ::UNICODE_STRING;
118 #if defined( BOOST_USE_WINDOWS_H )
120 extern "C"
class-ms-rule-url-model.php (https://gitlab.com/najomie/fit-hippie) PHP · 391 lines
1 <?php
2 /**
3 * Membership URL Group Rule class.
78 if ( $this->check_url_expression_match( $url, $accessible ) ) {
79 if ( $this->get_membership()->is_base() ) {
80 // For guests all defined URL groups are denied.
81 $has_access = false;
82 } else {
280 /**
281 * Serializes this rule in a single array.
282 * We don't use the PHP `serialize()` function to serialize the whole object
283 * because a lot of unrequired and duplicate data will be serialized
284 *
lookups.nim (https://github.com/comex/Nimrod.git) Nim · 244 lines
jquery.lazyload.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 210 lines
5 *
6 * Licensed under the MIT license:
7 * http://www.opensource.org/licenses/mit-license.php
8 *
9 * Project home:
56 if(options) {
57 /* Maintain BC for a couple of versions. */
58 if (undefined !== options.failurelimit) {
59 options.failure_limit = options.failurelimit;
60 delete options.failurelimit;
61 }
62 if (undefined !== options.effectspeed) {
63 options.effect_speed = options.effectspeed;
64 delete options.effectspeed;
speaker_profile_model.php (https://github.com/rickogden/joind.in.git) PHP · 282 lines
events_test.php (https://github.com/markn86/moodle.git) PHP · 375 lines
SaxRepresentation.java (https://bitbucket.org/haris_peco/debrief.git) Java · 241 lines
11 *
12 * You can obtain a copy of the LGPL 2.1 license at
13 * http://www.opensource.org/licenses/lgpl-2.1.php
14 *
15 * You can obtain a copy of the CDDL 1.0 license at
16 * http://www.opensource.org/licenses/cddl1.php
17 *
18 * You can obtain a copy of the EPL 1.0 license at
19 * http://www.opensource.org/licenses/eclipse-1.0.php
20 *
21 * See the Licenses for the specific language governing permissions and
proxy.php (https://bitbucket.org/asikart-extension/joomclouds-client.git) PHP · 284 lines
1 <?php
2 /**
3 * @package Windwalker.Framework
11 // no direct access
12 defined('_JEXEC') or die;
14 /**
105 {
106 jimport('joomla.filesystem.path');
107 if ($path = JPath::find(self::$includePaths[$prefix], strtolower($file) . '.php'))
108 {
109 require_once $path;
201 * @return mixed Function result or false on error.
202 *
203 * @see http://php.net/manual/en/function.call-user-func-array.php
204 */
205 protected static function call($function, $args)
PimpleTest.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 270 lines
1 <?php
3 /*
35 * @author Igor Wiedler <igor@wiedler.ch>
36 */
37 class PimpleTest extends \PHPUnit_Framework_TestCase
38 {
39 public function testWithString()
111 /**
112 * @expectedException InvalidArgumentException
113 * @expectedExceptionMessage Identifier "foo" is not defined.
114 */
115 public function testOffsetGetValidatesKeyIsPresent()
187 /**
188 * @expectedException InvalidArgumentException
189 * @expectedExceptionMessage Identifier "foo" is not defined.
190 */
191 public function testRawValidatesKeyIsPresent()
DynamicForwardingEntry.java (https://bitbucket.org/pau-minoves/opennaas.git) Java · 271 lines
11 /**
12 * This Class contains accessor and mutator methods for all properties defined in the CIM class DynamicForwardingEntry as well as methods comparable
13 * to the invokeMethods defined for this class. This Class implements the DynamicForwardingEntryBean Interface. The CIM class DynamicForwardingEntry
32 /**
33 * The following constants are defined for use with the ValueMap/Values qualified property systemCreationClassName.
34 */
35 private String systemCreationClassName;
64 /**
65 * The following constants are defined for use with the ValueMap/Values qualified property systemName.
66 */
67 private String systemName;
96 /**
97 * The following constants are defined for use with the ValueMap/Values qualified property serviceCreationClassName.
98 */
99 private String serviceCreationClassName;
backup_workshop_stepslib.php (https://github.com/tmuras/moodle-debian.git) PHP · 202 lines
evaluator_with_proper_defines.ss (https://github.com/GunioRobot/hobby-code.git) Scheme · 313 lines
class.ShowFleet1Page.php (https://github.com/jstar88/LibreTitan.git) PHP · 265 lines
1 <?php
3 /**
7 */
9 if(!defined('INSIDE')){ die(header ( 'location:../../' ));}
11 class ShowFleet1Page
60 if ( ( $_POST["ship$i"] > $CurrentPlanet[$resource[$i]]) OR (!ctype_digit( $_POST["ship$i"] )))
61 {
62 header ( 'location:game.php?page=fleet' );
63 }
64 else
81 if ( !isset($fleet['fleetlist']) )
82 {
83 header ( 'location:game.php?page=fleet' );
84 }
S3.php (https://github.com/esimionato/magneto-s3.git) PHP · 346 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Core
23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
172 /**
173 * Export files list in defined range
174 *
175 * @param int $offset
widget-hero-unit.php (https://gitlab.com/luyxtran264/myproject) PHP · 190 lines
88 <?php if (!(empty($button_2_url) && empty($button_2_text))) { ?>
89 <a href="<?php echo esc_url($button_2_url); ?>" title="<?php echo esc_attr($button_2_text); ?>" class="btn large color wow fadeInRight anchor"><?php echo esc_html($button_2_text); ?></a>
90 <?php } ?>
169 <label for="<?php echo esc_attr( $this->get_field_id( 'button_1_url' ) ); ?>"><?php esc_html_e('Button 1 url', 'transfers') ?></label>
170 <input type="text" placeholder="http://" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_1_url' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_1_url' ) ); ?>" value="<?php echo esc_attr( $instance['button_1_url'] ); ?>" />
171 </p>
179 <label for="<?php echo esc_attr( $this->get_field_id( 'button_2_url' ) ); ?>"><?php esc_html_e('Button 2 url', 'transfers') ?></label>
180 <input type="text" placeholder="http://" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_2_url' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_2_url' ) ); ?>" value="<?php echo esc_attr( $instance['button_2_url'] ); ?>" />
181 </p>
184 <label for="<?php echo esc_attr( $this->get_field_id( 'button_2_text' ) ); ?>"><?php esc_html_e('Button 2 text', 'transfers') ?></label>
185 <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_2_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_2_text' ) ); ?>" value="<?php echo esc_attr( $instance['button_2_text'] ); ?>" />
186 </p>
add_rvalue_reference.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a type trait add_rvalue_reference
that determines whether a given type is an rvalue reference. It checks if the type is not void and not a reference, then applies the rule of reference collapsing to determine the correct type. The implementation uses Boost’s type traits system to simplify the process.
This C++ header file provides a type trait add_rvalue_reference
that determines whether a given type is an rvalue reference. It checks if the type is not void and not a reference, then applies the rule of reference collapsing to determine the correct type. The implementation uses Boost’s type traits system to simplify the process.
auth_lang.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 158 lines
custom_block.php (https://github.com/xc/zetacomponents.git) PHP · 231 lines
ReflectionConstant.php (https://github.com/PetrP/Orm.git) PHP · 339 lines
document.inc.php (https://github.com/fmake/adv.git) PHP · 324 lines
1 <?php
2 /*
3 File: document.inc.php
7 Title: xajax HTML control class library
9 Please see <copyright.inc.php> for a detailed description, copyright
10 and license information.
11 */
13 /*
14 @package xajax
15 @version $Id: document.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
16 @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
17 @copyright Copyright (c) 2008-2009 by Joseph Woolley, Steffen Konerow, Jared White & J. Max Wilson
76 function clsDocType($sFormat=null, $sVersion=null, $sValidation=null, $sEncoding='UTF-8')
77 {
78 if (null === $sFormat && false == defined('XAJAX_HTML_CONTROL_DOCTYPE_FORMAT'))
79 trigger_error('You must specify a doctype format.', E_USER_ERROR);
80 if (null === $sVersion && false == defined('XAJAX_HTML_CONTROL_DOCTYPE_VERSION'))
invoker_lvalue_pass.cpp (https://bitbucket.org/liflg/library-boost.git) C++ · 342 lines
48 int save_count = count;
49 // function
50 #if defined BOOST_THREAD_PROVIDES_INVOKE
51 {
52 int i = 2;
63 // }
64 // function pointer
65 #if defined BOOST_THREAD_PROVIDES_INVOKE
66 {
67 void (*fp)(int) = f_void_1;
79 // save_count = count;
80 // }
81 #if defined BOOST_THREAD_PROVIDES_INVOKE
82 {
83 void (*fp)(int) = f_void_1;
Upload.php (https://gitlab.com/Ltaimao/wecenter) PHP · 251 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_Abstract
24 */
25 //require_once 'Zend/Validate/Abstract.php';
27 /**
54 */
55 protected $_messageTemplates = array(
56 self::INI_SIZE => "File '%value%' exceeds the defined ini size",
57 self::FORM_SIZE => "File '%value%' exceeds the defined form size",
60 self::NO_TMP_DIR => "No temporary directory was found for file '%value%'",
61 self::CANT_WRITE => "File '%value%' can't be written",
62 self::EXTENSION => "A PHP extension returned an error while uploading the file '%value%'",
63 self::ATTACK => "File '%value%' was illegally uploaded. This could be a possible attack",
64 self::FILE_NOT_FOUND => "File '%value%' was not found",
container_builder.php (https://github.com/AJenbo/ubuntudanmark.dk.git) PHP · 404 lines
115 * Constructor
116 *
117 * @param \phpbb\config_php_file $config_php_file
118 * @param string $phpbb_root_path Path to the phpbb includes directory.
119 * @param string $php_ext php file extension
120 */
121 function __construct(\phpbb\config_php_file $config_php_file, $phpbb_root_path, $php_ext)
122 {
123 $this->config_php_file = $config_php_file;
322 $this->config_php_file->get('dbport'),
323 defined('PHPBB_DB_NEW_LINK') && PHPBB_DB_NEW_LINK
324 );
325 }
400 protected function get_container_filename()
401 {
402 return $this->phpbb_root_path . 'cache/container_' . md5($this->phpbb_root_path) . '.' . $this->php_ext;
403 }
404 }
HeaderBag.php (https://gitlab.com/oytunistrator/92five) PHP · 350 lines
1 <?php
3 /*
173 /**
174 * Returns true if the HTTP header is defined.
175 *
176 * @param string $key The HTTP header
258 /**
259 * Returns true if the Cache-Control directive is defined.
260 *
261 * @param string $key The Cache-Control directive
273 * @param string $key The directive name
274 *
275 * @return mixed|null The directive value if defined, null otherwise
276 */
277 public function getCacheControlDirective($key)
class.DbMssql.php (https://github.com/palmic/2yaml.git) PHP · 237 lines
1 <?php
19 public function DbMssql(DbParametersMessenger $dbParametersMessenger, DbStateHandler $dbStateHandler) {
20 if (!in_array("mssql", get_loaded_extensions())) {
21 throw new DbControlException("Your PHP configuration does not support MSSQL extension. Check php.ini.");
22 }
23 $this->dbParametersMessenger = $dbParametersMessenger;
196 }
198 //setting default task database schema - if defined
199 # Caution: Using $this->query() may rewrite query that is waiting for execute
200 if (strlen($schema = $this->dbParametersMessenger->schema) > 0) {
Upload.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 251 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_Abstract
24 */
25 require_once 'Zend/Validate/Abstract.php';
27 /**
54 */
55 protected $_messageTemplates = array(
56 self::INI_SIZE => "File '%value%' exceeds the defined ini size",
57 self::FORM_SIZE => "File '%value%' exceeds the defined form size",
60 self::NO_TMP_DIR => "No temporary directory was found for file '%value%'",
61 self::CANT_WRITE => "File '%value%' can't be written",
62 self::EXTENSION => "A PHP extension returned an error while uploading the file '%value%'",
63 self::ATTACK => "File '%value%' was illegally uploaded. This could be a possible attack",
64 self::FILE_NOT_FOUND => "File '%value%' was not found",
SideEffectsSniff.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 229 lines
25 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
26 * @version Release: @package_version@
27 * @link http://pear.php.net/package/PHP_CodeSniffer
28 */
29 class PSR1_Sniffs_Files_SideEffectsSniff implements PHP_CodeSniffer_Sniff
82 * found.
83 *
84 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
85 * @param int $start The token to start searching from.
86 * @param int $end The token to search to.
90 * @return array
91 */
92 private function _searchForConflict(PHP_CodeSniffer_File $phpcsFile, $start, $end, $tokens)
93 {
94 $symbols = array(
Upload.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 251 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_Abstract
24 */
25 #require_once 'Zend/Validate/Abstract.php';
27 /**
54 */
55 protected $_messageTemplates = array(
56 self::INI_SIZE => "File '%value%' exceeds the defined ini size",
57 self::FORM_SIZE => "File '%value%' exceeds the defined form size",
60 self::NO_TMP_DIR => "No temporary directory was found for file '%value%'",
61 self::CANT_WRITE => "File '%value%' can't be written",
62 self::EXTENSION => "A PHP extension returned an error while uploading the file '%value%'",
63 self::ATTACK => "File '%value%' was illegally uploaded. This could be a possible attack",
64 self::FILE_NOT_FOUND => "File '%value%' was not found",
class.php (https://gitlab.com/alexprowars/bitrix) PHP · 239 lines
PropelCSVParser.php (https://gitlab.com/Isaki/le331.fr) PHP · 314 lines
1 <?php
3 /**
11 /**
12 * CSV parser. Converts data between associative array and CSV formats.
13 * CSV parsing code borrowed from php-csv-utils by Luke Visinoni
14 * http://code.google.com/p/php-csv-utils/
24 const QUOTE_MINIMAL = 3;
26 // these settings are predefined for Excel CSV format
28 public $delimiter = ',';
ContainerTest.php (https://github.com/rsky/symfony.git) PHP · 204 lines
57 {
58 $sc = new Container();
59 $this->assertEquals(array(), $sc->getParameterBag()->all(), '->getParameterBag() returns an empty array if no parameter has been defined');
60 }
82 } catch (\Exception $e) {
83 $this->assertInstanceOf('\InvalidArgumentException', $e, '->getParameter() thrown an \InvalidArgumentException if the key does not exist');
84 $this->assertEquals('The parameter "baba" must be defined.', $e->getMessage(), '->getParameter() thrown an \InvalidArgumentException if the key does not exist');
85 }
86 }
142 $sc->set('bar', $bar = new \stdClass());
143 $this->assertEquals(spl_object_hash($sc->get('bar')), spl_object_hash($bar), '->getServiceIds() prefers to return a service defined with a getXXXService() method than one defined with set()');
145 try {
log.php (https://github.com/dextercowley/joomla-cms.git) PHP · 313 lines
1 <?php
2 /**
3 * @package Joomla.Platform
8 */
10 defined('JPATH_PLATFORM') or die;
12 /**
15 * This class hooks into the global log configuration settings to allow for user configured
16 * logging events to be sent to where the user wishes them to be sent. On high load sites
17 * Syslog is probably the best (pure PHP function), then the text file based loggers (CSV, W3c
18 * or plain Formattedtext) and finally MySQL offers the most features (e.g. rapid searching)
19 * but will incur a performance hit due to INSERT being issued.
User_agent.php (https://github.com/GunioRobot/codeigniter-2-extended.git) PHP · 502 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
264 if (count($this->languages) == 0)
265 {
266 $this->languages = array('Undefined');
267 }
268 }
287 if (count($this->charsets) == 0)
288 {
289 $this->charsets = array('Undefined');
290 }
291 }
apb_dualtimer.c (https://gitlab.com/YaoQ/mbed-for-linknode) C · 393 lines
331 /*
332 * DualTimer_GetIRQn(): returns IRQn of a DualTimer
333 * timer: timer on which IRQn is defined - 0 if it is not defined
334 */
335 uint32_t DualTimer_GetIRQn(uint32_t timer)
346 * the interrupt.
347 * dualtimer: dualtimer that triggered the IRQ
348 * @return: a single timer - 0 if it is not defined
349 */
350 uint32_t DualTimer_GetIRQInfo(uint32_t timer)
Sharp.Migrations.Template.csproj (https://hg01.codeplex.com/sharpmigrations) MSBuild · 96 lines
shared_ptr_move_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the behavior of boost::shared_ptr
when moving ownership from one pointer to another, including when moving from a non-void type to void. It checks that instances are correctly incremented and decremented during these moves, and that pointers become null after being moved. The test passes if all expected conditions are met.
This C++ code tests the behavior of boost::shared_ptr
when moving ownership from one pointer to another, including when moving from a non-void type to void. It checks that instances are correctly incremented and decremented during these moves, and that pointers become null after being moved. The test passes if all expected conditions are met.
apdl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 7537 lines
bnx2i.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 772 lines
✨ Summary
This is a C++ header file that defines an interface for a network device driver, specifically for a Fibre Channel over Ethernet (FCoE) adapter. It provides functions and data structures for managing connections, commands, and queues related to FCoE communication. The code appears to be part of a Linux kernel module or a user-space application.
This is a C++ header file that defines an interface for a network device driver, specifically for a Fibre Channel over Ethernet (FCoE) adapter. It provides functions and data structures for managing connections, commands, and queues related to FCoE communication. The code appears to be part of a Linux kernel module or a user-space application.
serial_lh7a40x.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 683 lines
✨ Summary
This C code implements a Linux kernel module for a Sharp LH7A40X serial port driver. It registers multiple serial ports with the kernel, allowing them to be used by applications. The module provides basic functionality for serial communication, including setting baud rates and parity settings. It also initializes and exits the serial ports when the module is loaded or unloaded.
This C code implements a Linux kernel module for a Sharp LH7A40X serial port driver. It registers multiple serial ports with the kernel, allowing them to be used by applications. The module provides basic functionality for serial communication, including setting baud rates and parity settings. It also initializes and exits the serial ports when the module is loaded or unloaded.
gnome-x-checks.m4
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
m4 · 81 lines
✨ Summary
This M4 code checks for various X11-related dependencies, including GTK+, session management (SM), and XPM libraries. It sets environment variables and macros based on the presence of these dependencies, and defines additional macros such as GNOME_HAVE_SM
and XPM_LIBS
. The code also provides a way to check if certain features are available in GTK+.
This M4 code checks for various X11-related dependencies, including GTK+, session management (SM), and XPM libraries. It sets environment variables and macros based on the presence of these dependencies, and defines additional macros such as GNOME_HAVE_SM
and XPM_LIBS
. The code also provides a way to check if certain features are available in GTK+.
2 dnl
3 dnl Basic X11 related checks for X11. At the end, the following will be
4 dnl defined/changed:
5 dnl GTK_{CFLAGS,LIBS} From AM_PATH_GTK
6 dnl CPPFLAGS Will include $X_CFLAGS
11 dnl XPM_LIBS -lXpm if Xpm library is present, otherwise ""
12 dnl
13 dnl The following configure cache variables are defined (but not used):
14 dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}
15 dnl
mem_fn_eq_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code runs a series of tests on a class X
that uses the boost::mem_fn
function to create function objects from member functions. The tests verify that the created function objects behave as expected, and reports any errors encountered during testing.
This C++ code runs a series of tests on a class X
that uses the boost::mem_fn
function to create function objects from member functions. The tests verify that the created function objects behave as expected, and reports any errors encountered during testing.
1 #include <boost/config.hpp>
3 #if defined(BOOST_MSVC)
4 #pragma warning(disable: 4786) // identifier truncated in debug info
5 #pragma warning(disable: 4710) // function not inlined
20 #include <boost/mem_fn.hpp>
22 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
23 #pragma warning(push, 3)
24 #endif
26 #include <iostream>
28 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
29 #pragma warning(pop)
30 #endif
perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 595 lines
ftcache.h
(http://angel-engine.googlecode.com/svn/trunk/)
C++ Header · 1122 lines
✨ Summary
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
ttobjs.c
(http://angel-engine.googlecode.com/svn/trunk/)
C · 944 lines
✨ Summary
This C code is part of a FreeType library implementation for TrueType fonts. It provides functions and structures for initializing, finalizing, and managing font drivers, slots, and contexts. The code handles font scaling, transformation, and glyph loading, enabling the use of TrueType fonts in various applications.
This C code is part of a FreeType library implementation for TrueType fonts. It provides functions and structures for initializing, finalizing, and managing font drivers, slots, and contexts. The code handles font scaling, transformation, and glyph loading, enabling the use of TrueType fonts in various applications.
integral.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file configures and defines various Boost.MPL (Meta-Programming Library) settings based on compiler-specific features and versions. It checks for specific compiler flags, modes, and versions to enable or disable certain features, such as BCC integral constants and nested value arithmetic, ensuring compatibility with different compilers and environments.
This C++ header file configures and defines various Boost.MPL (Meta-Programming Library) settings based on compiler-specific features and versions. It checks for specific compiler flags, modes, and versions to enable or disable certain features, such as BCC integral constants and nested value arithmetic, ensuring compatibility with different compilers and environments.
curlrules.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 262 lines
74 /*
75 * Verify that some macros are actually defined.
76 */
136 /*
137 * Verify that the size previously defined and expected for long
138 * is the same as the one reported by sizeof() at compile time.
139 */
202 */
204 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
205 defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
206 defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \
207 defined(__ILEC400__)
plugin-intro.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 132 lines
common.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file is a deprecated version of boost/spirit/include/common.hpp
. It checks the Boost library version and provides a warning message if the user is using an older version, redirecting them to use the newer classic_common.hpp
instead. The file also defines a namespace alias for compatibility with older versions.
This C++ header file is a deprecated version of boost/spirit/include/common.hpp
. It checks the Boost library version and provides a warning message if the user is using an older version, redirecting them to use the newer classic_common.hpp
instead. The file also defines a namespace alias for compatibility with older versions.
15 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
16 # pragma message ("Warning: This header is deprecated. Please use: boost/spirit/include/classic_common.hpp")
17 #elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
18 # warning "This header is deprecated. Please use: boost/spirit/include/classic_common.hpp"
19 #endif
20 #endif
22 #if !defined(BOOST_SPIRIT_USE_OLD_NAMESPACE)
23 #define BOOST_SPIRIT_USE_OLD_NAMESPACE
24 #endif
xml2net.pl
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
Perl · 268 lines
✨ Summary
The Perl code parses a network diagram file and generates a structured representation of the network, including nodes, connections, and parameters. It extracts relevant information from the XML-like input data, such as node names, connection handles, and parameter values, and stores it in a structured format for further processing or output.
The Perl code parses a network diagram file and generates a structured representation of the network, including nodes, connections, and parameters. It extracts relevant information from the XML-like input data, such as node names, connection handles, and parameter values, and stores it in a structured format for further processing or output.
HTMLLinkElement.idl (https://bitbucket.org/ultra_iter/qt-vtl.git) IDL · 43 lines
lgpl-2.1.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 504 lines
183 (For example, a function in a library to compute square roots has
184 a purpose that is entirely well-defined independent of the
185 application. Therefore, Subsection 2d requires that any
186 application-supplied function or table used by this function must
255 Whether this is true is especially significant if the work can be
256 linked without the Library, or if the work is itself a library. The
257 threshold for this to be true is not precisely defined by law.
259 If such an object file uses only numerical parameters, data
tst_qdesktopservices.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 388 lines
105 // At the bare minimum check that they return false for invalid url's
106 QCOMPARE(QDesktopServices::openUrl(QUrl()), false);
107 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
108 // this test is only valid on windows on other systems it might mean open a new document in the application handling .file
109 QCOMPARE(QDesktopServices::openUrl(QUrl("file://invalid.file")), false);
171 QTest::newRow("BasicAndBody") << QUrl("mailto:test@nokia.com?body=Test email message body") << true;
173 // RFC examples, these are actually invalid because there is not host defined
174 // Check that user is notified about invalid URL in mail application
175 QTest::newRow("RFC2368 Example 1") << QUrl::fromEncoded("mailto:addr1%2C%20addr2") << true;
Export.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 26 lines
2 #define __EXPORT_COMMON__
4 #if defined(SHP)
5 #include <FBaseConfig.h>
6 #define EXPORT_DLL _EXPORT_
7 #elif defined(_WIN32)
8 #if defined(_EXPORT_DLL_)
9 #define EXPORT_DLL __declspec(dllexport)
10 #elif defined(IGNORE_EXPORT)
11 #define EXPORT_DLL
12 #else /* use a DLL library */
14 #endif
15 #else
16 #if defined(_SHARED_)
17 #define EXPORT_DLL __attribute__((visibility("default")))
18 #elif defined(IGNORE_EXPORT)
htmltblx.mod (https://bitbucket.org/nbargnesi/idea.git) Unknown · 238 lines
37 This module has been developed for use with the DocBook V4.4
38 "union table model" in which elements and attlists common to both
39 models are defined (as the union) in the CALS table module by
40 setting various parameter entities appropriately in this file.
226 <!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">
228 <!-- thead, tfoot, and tbody are defined in both table models,
229 so we set up parameter entities to define union models for them
230 -->
word_count_functor.flex (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
phonon.doxyfile (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 221 lines
172 INCLUDE_PATH =
173 INCLUDE_FILE_PATTERNS =
174 PREDEFINED =
175 EXPAND_AS_DEFINED =
212 "FIXME=\xrefitem fixme \"Fixme\" \"Fixme\"" \
213 "bc=\xrefitem bc \"Binary Compatible\" \"Binary Compatible\"" \
214 "artistic=<a href=\"http://www.opensource.org/licenses/artistic-license.php\">Artistic</a>" \
215 "bsd=<a href=\"http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5\">BSD</a>" \
216 "x11=<a href=\"http://www.xfree86.org/3.3.6/COPYRIGHT2.html#3\">X11</a>" \
octave.cxx
(https://swig.svn.sourceforge.net/svnroot/swig)
C++ · 1418 lines
✨ Summary
This C++ code is a part of the SWIG (Simplified Interface Generator) framework, which generates interface code for wrapping C/C++ libraries in multiple programming languages, including Octave. It defines a class OCTAVE
that inherits from Language
, and implements methods to generate Octave-specific code for creating a director method, handling runtime code, and defining external runtime filenames.
This C++ code is a part of the SWIG (Simplified Interface Generator) framework, which generates interface code for wrapping C/C++ libraries in multiple programming languages, including Octave. It defines a class OCTAVE
that inherits from Language
, and implements methods to generate Octave-specific code for creating a director method, handling runtime code, and defining external runtime filenames.
qengines.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 241 lines
BSHBinaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 228 lines
✨ Summary
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
q3listbox.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 4687 lines
XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines
BrowserOptionPane.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 419 lines
✨ Summary
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
PlatformCAAnimationMac.mm (https://bitbucket.org/ultra_iter/qt-vtl.git) Objective C++ · 563 lines
DefaultInputHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 486 lines
✨ Summary
This Java code is an input handler for a text editor, allowing users to bind keyboard shortcuts to actions such as copying, pasting, and editing. It uses a key binding system where multiple keys can be pressed together (e.g., Ctrl+C) to perform a single action. The code also handles special keys like backspace and numeric keypad keys.
This Java code is an input handler for a text editor, allowing users to bind keyboard shortcuts to actions such as copying, pasting, and editing. It uses a key binding system where multiple keys can be pressed together (e.g., Ctrl+C) to perform a single action. The code also handles special keys like backspace and numeric keypad keys.
SkUserConfig.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 161 lines
15 */
17 #ifndef SkUserConfig_DEFINED
18 #define SkUserConfig_DEFINED
47 /* Scalars (the fractional value type in skia) can be implemented either as
48 floats or 16.16 integers (fixed). Exactly one of these two symbols must be
49 defined.
50 */
51 //#define SK_SCALAR_IS_FLOAT
55 /* Somewhat independent of how SkScalar is implemented, Skia also wants to know
56 if it can use floats at all. Naturally, if SK_SCALAR_IS_FLOAT is defined,
57 SK_CAN_USE_FLOAT must be too; but if scalars are fixed, SK_CAN_USE_FLOAT
58 can go either way.
83 /* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger)
84 it will call SK_CRASH(). If this is not defined it, it is defined in
85 SkPostConfig.h to write to an illegal address
86 */
distinct_fwd.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
15 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
16 # pragma message ("Warning: This header is deprecated. Please use: boost/spirit/include/classic_distinct_fwd.hpp")
17 #elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
18 # warning "This header is deprecated. Please use: boost/spirit/include/classic_distinct_fwd.hpp"
19 #endif
20 #endif
22 #if !defined(BOOST_SPIRIT_USE_OLD_NAMESPACE)
23 #define BOOST_SPIRIT_USE_OLD_NAMESPACE
24 #endif
qdrawhelper_mmx.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 155 lines
tst_qtconcurrentmap.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 2445 lines
doc_src_platform-notes.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 80 lines
pshrec.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 176 lines
ttinterp.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 7828 lines
effectparameter_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 56 lines
facade-and-adaptor.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically the function_output_iterator
class. It provides detailed information about the class’s constructors, operators, and behavior, written in reStructuredText format. The output includes explanations of technical terms and concepts, making it suitable as a reference manual or API documentation.
This HTML code outputs a documentation page for a C++ library, specifically the function_output_iterator
class. It provides detailed information about the class’s constructors, operators, and behavior, written in reStructuredText format. The output includes explanations of technical terms and concepts, making it suitable as a reference manual or API documentation.
186 provides <tt class="docutils literal"><span class="pre">reverse_iterator</span></tt>, which adapts any Bidirectional Iterator
187 by inverting its direction of traversal. As with plain iterators,
188 iterator adaptors defined outside the Standard have become commonplace
189 in the literature:</p>
190 <ul class="simple">
240 <h2><a class="toc-backref" href="#id18">Iterator Concepts</a></h2>
241 <p>This proposal is formulated in terms of the new <tt class="docutils literal"><span class="pre">iterator</span> <span class="pre">concepts</span></tt>
242 as proposed in <a class="reference external" href="http://anubis.dkuug.dk/JTC1/SC22/WG21/docs/papers/2003/n1550.html">n1550</a>, since user-defined and especially adapted
243 iterators suffer from the well known categorization problems that are
244 inherent to the current iterator categories.</p>
259 work. This proposal implements the proposed resolution to issue
260 <a class="reference external" href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#179">179</a>, as most standard library implementations do nowadays. In other
261 words, if an iterator type A has an implicit or user defined
262 conversion to an iterator type B, the iterator types are interoperable
263 and the usual set of operators are available.</p>
SplashScreen.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 155 lines
✨ Summary
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
JSHTMLElement.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 556 lines
498 const String& where(ustringToString(exec->argument(0).toString(exec)));
499 if (exec->hadException())
500 return JSValue::encode(jsUndefined());
501 Element* element(toElement(exec->argument(1)));
502 if (exec->hadException())
503 return JSValue::encode(jsUndefined());
519 const String& where(ustringToString(exec->argument(0).toString(exec)));
520 if (exec->hadException())
521 return JSValue::encode(jsUndefined());
522 const String& html(ustringToString(exec->argument(1).toString(exec)));
523 if (exec->hadException())
matroxfb_base.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 734 lines
✨ Summary
This is a C++ header file that provides definitions and macros for interacting with a Matrox Millennium graphics card. It defines various registers, functions, and macros for reading and writing data to the card’s memory, as well as handling interrupts and synchronization. The code appears to be specific to the Matrox Millennium graphics card and is likely used in a Linux driver or firmware implementation.
This is a C++ header file that provides definitions and macros for interacting with a Matrox Millennium graphics card. It defines various registers, functions, and macros for reading and writing data to the card’s memory, as well as handling interrupts and synchronization. The code appears to be specific to the Matrox Millennium graphics card and is likely used in a Linux driver or firmware implementation.
49 #endif
51 #if defined(CONFIG_PPC_PMAC)
52 #include <asm/prom.h>
53 #include <asm/pci-bridge.h>
121 /* G-series and Mystique have (almost) same DAC */
122 #undef NEED_DAC1064
123 #if defined(CONFIG_FB_MATROX_MYSTIQUE) || defined(CONFIG_FB_MATROX_G)
124 #define NEED_DAC1064 1
125 #endif
151 static inline void mga_memcpy_toio(vaddr_t va, const void* src, int len) {
152 #if defined(__alpha__) || defined(__i386__) || defined(__x86_64__)
153 /*
154 * memcpy_toio works for us if:
SideKickPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 435 lines
✨ Summary
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
.cproject (https://bitbucket.org/Tsiannian/cocos2d-x.git) Unknown · 713 lines
24 <option id="com.qnx.qcc.option.compile.debug.1613457076" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
25 <option id="com.qnx.qcc.option.compiler.security.718574234" name="Enhanced Security (-fstack-protector-all)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
26 <option id="com.qnx.qcc.option.compiler.defines.508320324" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
27 <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
28 </option>
120 <option id="com.qnx.qcc.option.compiler.optlevel.666967113" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.2" valueType="enumerated"/>
121 <option id="com.qnx.qcc.option.compiler.security.828858287" name="Enhanced Security (-fstack-protector-all)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
122 <option id="com.qnx.qcc.option.compiler.defines.742199362" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
123 <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
124 </option>
216 <option id="com.qnx.qcc.option.compiler.profile2.338491679" name="Build for Profiling (Function Instrumentation) (-finstrument-functions)" superClass="com.qnx.qcc.option.compiler.profile2" value="true" valueType="boolean"/>
217 <option id="com.qnx.qcc.option.compiler.security.1365703198" name="Enhanced Security (-fstack-protector-all)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
218 <option id="com.qnx.qcc.option.compiler.defines.774819807" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
219 <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
220 </option>
traps.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 768 lines
✨ Summary
This C code defines a set of exception handlers for a Linux kernel, which are triggered when specific conditions occur during execution. The handlers catch and handle exceptions such as stack overflows, division by zero, and data corruption, among others. They print error messages, trigger system calls, and perform other necessary actions to prevent the program from crashing or causing further damage.
This C code defines a set of exception handlers for a Linux kernel, which are triggered when specific conditions occur during execution. The handlers catch and handle exceptions such as stack overflows, division by zero, and data corruption, among others. They print error messages, trigger system calls, and perform other necessary actions to prevent the program from crashing or causing further damage.
319 report_user_fault(long interruption_code, struct pt_regs *regs)
320 {
321 #if defined(CONFIG_SYSCTL)
322 if (!sysctl_userprocess_debug)
323 return;
324 #endif
325 #if defined(CONFIG_SYSCTL) || defined(CONFIG_PROCESS_DEBUG)
326 printk("User process fault: interruption code 0x%lX\n",
327 interruption_code);
devices.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 268 lines
✨ Summary
This C code initializes and configures various components of a SoC (System-on-Chip) for a specific architecture, likely ARM-based. It sets up resources for peripherals such as MMC/SD cards, watchdog timers, and timers, and registers platform devices to interact with the operating system. The code is part of an initcall function that runs during boot-up, configuring the hardware before the OS takes control.
This C code initializes and configures various components of a SoC (System-on-Chip) for a specific architecture, likely ARM-based. It sets up resources for peripherals such as MMC/SD cards, watchdog timers, and timers, and registers platform devices to interact with the operating system. The code is part of an initcall function that runs during boot-up, configuring the hardware before the OS takes control.
support_standard_wide.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a guard to prevent multiple inclusions of the same file. It checks if the _MSC_VER
macro is defined, which indicates that the code is being compiled with Microsoft Visual C++. If so, it uses the #pragma once
directive to ensure the file is only included once. The file then includes another header file from the Boost Spirit library.
This C++ header file defines a guard to prevent multiple inclusions of the same file. It checks if the _MSC_VER
macro is defined, which indicates that the code is being compiled with Microsoft Visual C++. If so, it uses the #pragma once
directive to ensure the file is only included once. The file then includes another header file from the Boost Spirit library.
tests.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 233 lines
✨ Summary
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
1 <?php
3 // do we have true global vars or just GETSET functions?
5 define(GETSET,1);
7 $_original_functions=get_defined_functions();
8 $_original_globals=1;
9 $_original_classes=get_declared_classes();
31 $extra=array();
32 $extrags=array();
33 $df=get_defined_functions();
34 $df=array_flip($df[internal]);
35 foreach($_original_functions[internal] as $func) unset($df[$func]);
141 if ($missing) $message[]=sprintf("Classes missing: %s",join(",",$missing));
142 if ($message) return check::fail(join("\n ",$message));
143 if ($extra) $message[]=sprintf("These extra classes are defined: %s",join(",",array_keys($extra)));
144 if ($message) return check::warn(join("\n ",$message));
145 return TRUE;
expected.log (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 340 lines
85 :::::::::::::::::::::::::::::::: pp_defined.i :::::::::::::::::::::::::::::::::::
86 pp_defined.i:6: Error: No arguments given to defined()
87 pp_defined.i:6: Error: Missing expression for #if.
105 :::::::::::::::::::::::::::::::: pp_macro_defined_unterminated.i :::::::::::::::::::::::::::::::::::
106 pp_macro_defined_unterminated.i:4: Error: Unterminated call to 'defined'
108 :::::::::::::::::::::::::::::::: pp_macro_expansion.i :::::::::::::::::::::::::::::::::::
142 pp_macro_redef.i:4: Error: Macro 'foo' redefined,
143 pp_macro_redef.i:3: Error: previous definition of 'foo'.
144 pp_macro_redef.i:7: Error: Macro 'foo' redefined,
145 pp_macro_redef.i:3: Error: previous definition of 'foo'.
218 :::::::::::::::::::::::::::::::: cpp_extend_undefined.i :::::::::::::::::::::::::::::::::::
219 cpp_extend_undefined.i:6: Warning 303: %extend defined for an undeclared class foo.
221 :::::::::::::::::::::::::::::::: cpp_inline_namespace.i :::::::::::::::::::::::::::::::::::
ring_identifier.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a struct ring_identifier
that represents a unique identifier for geometric rings, which can be source, multi-ring, or ring. It provides constructors, comparison operators (<
, ==), and an output stream operator (<<
) for debugging purposes. The struct has three integer members: source_index
, multi_index
, and ring_index
.
This C++ header file defines a struct ring_identifier
that represents a unique identifier for geometric rings, which can be source, multi-ring, or ring. It provides constructors, comparison operators (<
, ==), and an output stream operator (<<
) for debugging purposes. The struct has three integer members: source_index
, multi_index
, and ring_index
.
fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines
14 #include "vim.h"
16 #if defined(__TANDEM) || defined(__MINT__)
17 # include <limits.h> /* for SSIZE_MAX */
18 #endif
459 }
461 # if defined(MSDOS) || defined(MSWIN) || defined(OS2)
462 /*
463 * MS-Windows allows opening a device, but we will probably get stuck
556 if (read_stdin)
557 {
558 #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
559 /* Force binary I/O on stdin to avoid CR-LF -> LF conversion. */
560 setmode(0, O_BINARY);
InstallPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1155 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
argument.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header code defines a set of macros and namespaces for creating placeholders in Boost.Phoenix, a library for functional programming. It generates types and constants for common placeholder values, such as _1
, _2
, etc., which can be used to represent arguments in function templates. The macros are repeated using Boost.Preprocessor’s BOOST_PP_REPEAT
macro to generate the desired number of placeholders.
This C++ header code defines a set of macros and namespaces for creating placeholders in Boost.Phoenix, a library for functional programming. It generates types and constants for common placeholder values, such as _1
, _2
, etc., which can be used to represent arguments in function templates. The macros are repeated using Boost.Preprocessor’s BOOST_PP_REPEAT
macro to generate the desired number of placeholders.
24 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_TYPE, arg)
25 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_TYPE, _)
26 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
27 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_INSTANCE, arg)
28 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_INSTANCE, _)
34 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_TYPE, arg)
35 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_TYPE, _)
36 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
37 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_INSTANCE, arg)
38 BOOST_PP_REPEAT(BOOST_PHOENIX_ARG_LIMIT, BOOST_PHOENIX_ARGUMENT_N_INSTANCE, _)
any_if.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a custom implementation of the any_if
function for sequences, allowing for conditional advancement of iterators based on a predicate. It enables efficient processing of sequences with unused attributes, ensuring that only relevant components are processed by the provided function. The code leverages Boost Fusion and MPL to achieve this functionality.
This C++ header file provides a custom implementation of the any_if
function for sequences, allowing for conditional advancement of iterators based on a predicate. It enables efficient processing of sequences with unused attributes, ensuring that only relevant components are processed by the provided function. The code leverages Boost Fusion and MPL to achieve this functionality.
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #if !defined(BOOST_SPIRIT_ANY_IF_MARCH_30_2007_1220PM)
9 #define BOOST_SPIRIT_ANY_IF_MARCH_30_2007_1220PM
11 #if defined(_MSC_VER)
12 #pragma once
13 #endif
pair_type_by.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a metafunction pair_type_by
that returns the view type of a pair, given a tag and a relation. It uses Boost’s metadata access builder to achieve this. The function is symmetric, meaning it works with both sides of the bimap. It provides a way to obtain the view type of a pair in a generic and flexible manner.
This C++ header file defines a metafunction pair_type_by
that returns the view type of a pair, given a tag and a relation. It uses Boost’s metadata access builder to achieve this. The function is symmetric, meaning it works with both sides of the bimap. It provides a way to obtain the view type of a pair in a generic and flexible manner.
XmlToBinary.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 311 lines
✨ Summary
This Java code converts an XML file to a binary format using the XmlToBinary
class. It takes two command-line arguments: the input XML file and the output binary file. The conversion process is performed in the main
method, which creates an instance of XmlToBinary
and calls its convertXmlToBinary
method with the provided arguments.
This Java code converts an XML file to a binary format using the XmlToBinary
class. It takes two command-line arguments: the input XML file and the output binary file. The conversion process is performed in the main
method, which creates an instance of XmlToBinary
and calls its convertXmlToBinary
method with the provided arguments.
146 buffer.append("<tt>Object</tt> mixes in the <tt>Kernel</tt> module, making the built-in kernel\n" +
147 " functions globally accessible. Although the instance methods of <tt>Object</tt>\n" +
148 " are defined by the <tt>Kernel</tt> module, we have chosen to document them here\n" +
149 " for clarity.");
150 buffer.append("In the descriptions of Object's methods, the parameter <em>symbol</em> refers to\n" +
198 // " body: \"<tt>Object</tt> mixes in the <tt>Kernel</tt> module, making the built-in kernel\n" +
199 // " functions globally accessible. Although the instance methods of <tt>Object</tt>\n" +
200 // " are defined by the <tt>Kernel</tt> module, we have chosen to document them here\n" +
201 // " for clarity.\"\n" +
202 // " - !ruby/struct:SM::Flow::P \n" +
285 // " name: singleton_method_removed\n" +
286 // " - !ruby/object:RI::MethodDescription \n" +
287 // " name: singleton_method_undefined\n" +
288 // " - !ruby/object:RI::MethodDescription \n" +
289 // " name: singleton_methods\n" +
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
regex.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 122 lines
7 <!-- Currently implemented artifacts:
8 ***** Classes
9 [...] - user-defined character classes
10 \d - Numerical characters (eq. [0-9])
11 \D - Non-numerical characters (eq. [^0-9])
30 ***** Functions
31 [^...] - negate user-defined character classes
32 (...) - Backreference - effectively save the matched part for later use
33 (?:...) - Group - Don't save, just mark the section of the pattern as a group
80 <SPAN TYPE='FUNCTION' DELEGATE='MAIN'>
81 <BEGIN>[^</BEGIN> <!-- user-defined negative character class -->
82 <END>]</END>
83 </SPAN>
TextAreaPainter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1216 lines
✨ Summary
This Java code is part of a text editor’s painting mechanism, responsible for rendering various visual elements such as lines of text, caret positions, and other UI components. It uses graphics APIs to draw these elements on the screen, taking into account factors like font styles, colors, and layout. The code appears to be part of a larger class hierarchy, with multiple subclasses handling specific painting tasks.
This Java code is part of a text editor’s painting mechanism, responsible for rendering various visual elements such as lines of text, caret positions, and other UI components. It uses graphics APIs to draw these elements on the screen, taking into account factors like font styles, colors, and layout. The code appears to be part of a larger class hierarchy, with multiple subclasses handling specific painting tasks.
InfoViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1362 lines
✨ Summary
This Java code implements a plugin for the JEdit text editor, specifically an InfoViewer plugin that provides features such as bookmarking, history management, and URL editing. It creates a dockable window with various actions and menus, allowing users to navigate and interact with web pages within the editor. The plugin also handles keyboard shortcuts and mouse events to provide a seamless user experience.
This Java code implements a plugin for the JEdit text editor, specifically an InfoViewer plugin that provides features such as bookmarking, history management, and URL editing. It creates a dockable window with various actions and menus, allowing users to navigate and interact with web pages within the editor. The plugin also handles keyboard shortcuts and mouse events to provide a seamless user experience.
atomic_count.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
SM-2Arg.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
162 void on_exit(Event const&,FSM& ) {std::cout << "finishing: LightOff" << std::endl;}
163 };
164 // the initial state. Must be defined
165 typedef LightOn initial_state;
166 // transition actions
200 void on_exit(Event const&,FSM& ) {std::cout << "finishing: Third Song" << std::endl;}
201 };
202 // the initial state. Must be defined
203 typedef Song1 initial_state;
204 // transition actions
252 void on_exit(Event const&,FSM& ) {std::cout << "finishing: StopBlinking" << std::endl;}
253 };
254 // the initial state. Must be defined
255 typedef StartBlinking initial_state;
256 // transition actions
wrap.rb
(git://github.com/adamdoupe/find_ear_rails.git)
Ruby · 256 lines
✨ Summary
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
60 def self.unwrap(x)
61 if defined?((class << x;self;end)::DRuby_Box)
62 return x.val
63 else
87 meta = class << x; self; end
88 return x if defined?(meta::DRuby_Wrapped)
90 ##
141 fname = File.basename(file)
142 call_stack = Object.send(:caller,3).map {|x| " from "+x}.join "\n"
143 ctx.violation "#{fname}:#{line}: undefined method `#{mname}' for #{self.inspect}:#{self.class} (NoMethodError)\n#{call_stack}"
144 end
145 end
lcnalloc.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 146 lines
✨ Summary
This C header file provides functions for managing clusters on an NTFS volume, including allocating and deallocating clusters from the file system’s runlist data structure. It allows for freeing of clusters in a specific range, handling locking and error checking to ensure thread safety and proper attribute search context management.
This C header file provides functions for managing clusters on an NTFS volume, including allocating and deallocating clusters from the file system’s runlist data structure. It allows for freeing of clusters in a specific range, handling locking and error checking to ensure thread safety and proper attribute search context management.
constants.factor (git://github.com/abeaumont/factor.git) Unknown · 89 lines
CSSParser.cpp
(git://github.com/CyanogenMod/android_external_webkit.git)
C++ · 5431 lines
✨ Summary
This C++ code is part of a web browser’s CSS parser, responsible for parsing and validating CSS properties. It checks the validity of individual CSS properties, such as background
, border
, and outline
, by verifying their syntax, values, and relationships with other properties in shorthand declarations. The code returns true if the property is valid or false otherwise.
This C++ code is part of a web browser’s CSS parser, responsible for parsing and validating CSS properties. It checks the validity of individual CSS properties, such as background
, border
, and outline
, by verifying their syntax, values, and relationships with other properties in shorthand declarations. The code returns true if the property is valid or false otherwise.
629 switch (static_cast<CSSPropertyID>(propId)) {
630 /* The comment to the left defines all valid value of this properties as defined
631 * in CSS 2, Appendix F. Property index
632 */
634 /* All the CSS properties are not supported by the renderer at the moment.
635 * Note that all the CSS2 Aural properties are only checked, if CSS_AURAL is defined
636 * (see parseAuralValues). As we don't support them at all this seems reasonable.
637 */
795 case CSSPropertyBorderTopStyle: //// <border-style> | inherit
796 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | dashed |
797 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inset | outset
798 case CSSPropertyBorderLeftStyle:
igmp.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 244 lines
✨ Summary
This is a C header file that defines various data structures and functions for managing multicast (multicast) functionality on a network device. It provides an interface for joining, leaving, and manipulating multicast groups, as well as handling incoming multicast packets. The code appears to be part of the Linux kernel’s networking subsystem.
This is a C header file that defines various data structures and functions for managing multicast (multicast) functionality on a network device. It provides an interface for joining, leaving, and manipulating multicast groups, as well as handling incoming multicast packets. The code appears to be part of the Linux kernel’s networking subsystem.