100+ results for 'php define'
Not the results you expected?
reportlib_test.php (https://bitbucket.org/kudutest1/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;
Maildir.php (https://github.com/kervin/kyzstudio.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
25 * @see Zend_Mail_Storage_Folder
26 */
27 #require_once 'Zend/Mail/Storage/Folder.php';
29 /**
30 * @see Zend_Mail_Storage_Folder_Interface
31 */
32 #require_once 'Zend/Mail/Storage/Folder/Interface.php';
34 /**
language.php (https://github.com/zakgrant/forkcms.git) PHP · 417 lines
RectangularDetectorTest.h (https://github.com/wdzhou/mantid.git) C Header · 247 lines
address_v4.cpp (https://bitbucket.org/kbw/boost_svn.git) 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)
16 // Test that header file is self-contained.
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&)
Abstract.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 362 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_Catalog
23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
43 * Attribute default values
44 *
45 * This array contain default values for attributes which was redefine
46 * value for store
47 *
Abstract.php (https://github.com/rgranadino/magento-mirror.git) PHP · 362 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_Catalog
23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
43 * Attribute default values
44 *
45 * This array contain default values for attributes which was redefine
46 * value for store
47 *
TimeType.php (https://gitlab.com/freebird/WebApp) PHP · 250 lines
Abstract.php (https://bitbucket.org/tschrock52/ethodeshare.git) PHP · 362 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_Catalog
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
43 * Attribute default values
44 *
45 * This array contain default values for attributes which was redefine
46 * value for store
47 *
LexerTest.php (https://gitlab.com/MineYourMind/BoNeMEAL) 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 }
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()
CustomGroup.php (https://github.com/michaelmcandrew/vaw.git) PHP · 248 lines
1 <?php
3 /*
34 *
35 * @copyright CiviCRM LLC (c) 2004-2011
36 * @version $Id: CustomGroup.php 32998 2011-03-14 22:00:35Z kurund $
37 */
40 * Files required for this package
41 */
42 require_once 'api/v2/utils.php';
44 /**
89 $error = _civicrm_check_required_fields($params, 'CRM_Core_DAO_CustomGroup');
91 require_once 'CRM/Utils/String.php';
92 if (! isset( $params['title'] ) ||
93 ! trim($params['title'] ) ) {
MigrationTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 271 lines
1 <?php
3 /**
200 /**
201 * Defines the TestMigration class.
202 */
203 class TestMigration extends Migration {
263 /**
264 * Defines the RequirementsAwareSourceInterface.
265 */
266 interface RequirementsAwareSourceInterface extends MigrateSourceInterface, RequirementsInterface {}
268 /**
269 * Defines the RequirementsAwareDestinationInterface.
270 */
271 interface RequirementsAwareDestinationInterface extends MigrateDestinationInterface, RequirementsInterface {}
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/Warlord123/mangos.git) C Header · 310 lines
26 # endif /* ACE_LACKS_PRAGMA_ONCE */
28 # if !defined (ACE_DOESNT_DEFINE_MAIN)
30 # if defined (ACE_HAS_RTEMS)
44 # endif /* ! ACE_WMAIN */
46 # if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
47 # define ACE_TMAIN wmain
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
LPCencode.c (https://github.com/rhuitl/uClinux.git) C · 231 lines
Abstract.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 362 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_Catalog
23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
43 * Attribute default values
44 *
45 * This array contain default values for attributes which was redefine
46 * value for store
47 *
simbio_form_maker.inc.php (https://github.com/awriel/s3st15_matoa.git) PHP · 261 lines
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 */
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
ArrayStorage.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 348 lines
main.cpp (https://bitbucket.org/noahgoldman/data_structures.git) C++ · 310 lines
mavlink_msg_log_request_end.h (https://gitlab.com/fsgdez/apm_planner) C Header · 233 lines
1 // MESSAGE LOG_REQUEST_END PACKING
3 #define MAVLINK_MSG_ID_LOG_REQUEST_END 122
5 typedef struct __mavlink_log_request_end_t
9 } mavlink_log_request_end_t;
11 #define MAVLINK_MSG_ID_LOG_REQUEST_END_LEN 2
12 #define MAVLINK_MSG_ID_122_LEN 2
14 #define MAVLINK_MSG_ID_LOG_REQUEST_END_CRC 203
15 #define MAVLINK_MSG_ID_122_CRC 203
19 #define MAVLINK_MESSAGE_INFO_LOG_REQUEST_END { \
20 "LOG_REQUEST_END", \
21 2, \
mavlink_msg_ahrs.h (https://github.com/pchickey/purple-ardupilot-mega.git) C Header · 276 lines
base.hpp (https://github.com/arx/ArxWindows.git) C++ Header · 227 lines
handle_workaround.hpp (https://github.com/arx/ArxWindows.git) C++ Header · 262 lines
6 #ifndef BOOST_PROCESS_DETAIL_WINDOWS_HANDLE_WORKAROUND_HPP_
7 #define BOOST_PROCESS_DETAIL_WINDOWS_HANDLE_WORKAROUND_HPP_
9 #include <boost/winapi/basic_types.hpp>
10 #include <boost/winapi/dll.hpp>
11 #include <boost/winapi/access_rights.hpp>
12 //#define BOOST_USE_WINDOWS_H 1
14 #if defined( BOOST_USE_WINDOWS_H )
37 } SYSTEM_HANDLE_INFORMATION_, *PSYSTEM_HANDLE_INFORMATION_;
39 #if defined( BOOST_USE_WINDOWS_H )
41 using UNICODE_STRING_ = ::UNICODE_STRING;
querying.cpp (https://github.com/eile/boost-svn.git) C++ · 304 lines
18 #include BOOST_HASH_SET_HEADER
19 #include BOOST_HASH_MAP_HEADER
20 #define BOOST_PHOENIX_HAS_HASH
21 #define BOOST_PHOENIX_HASH_NAMESPACE BOOST_STD_EXTENSION_NAMESPACE
22 #elif defined(BOOST_DINKUMWARE_STDLIB)
23 #include <hash_set>
24 #include <hash_map>
25 #define BOOST_PHOENIX_HAS_HASH
26 #define BOOST_PHOENIX_HASH_NAMESPACE stdext
CustomGroup.php (https://github.com/timstephenson/NatureBridge.git) PHP · 248 lines
1 <?php
3 /*
34 *
35 * @copyright CiviCRM LLC (c) 2004-2011
36 * @version $Id: CustomGroup.php 33007 2011-03-14 22:52:10Z kurund $
37 */
40 * Files required for this package
41 */
42 require_once 'api/v2/utils.php';
44 /**
89 $error = _civicrm_check_required_fields($params, 'CRM_Core_DAO_CustomGroup');
91 require_once 'CRM/Utils/String.php';
92 if (! isset( $params['title'] ) ||
93 ! trim($params['title'] ) ) {
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");
chart.php (https://github.com/Proudio-Interactive/phpUnderControl.git) PHP · 296 lines
1 <?php
2 /**
3 * File containing the abstract ezcGraphChart class
15 * @property ezcGraphDriver $driver
16 * Output driver used for chart
17 * @property ezcGraphPalette $palette
18 * Palette used for colorization of chart
19 * @property-read mixed $renderedFile
70 public function __construct( array $options = array() )
71 {
72 $this->palette = new ezcGraphPaletteTango();
73 $this->data = new ezcGraphChartDataContainer( $this );
88 $this->elements['legend']->position = ezcGraph::LEFT;
90 // Define standard renderer and driver
91 $this->properties['driver'] = new ezcGraphSvgDriver();
92 $this->properties['renderer'] = new ezcGraphRenderer2d();
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 />
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
1 <?php
2 /*
3 * Speaker profile model
79 /**
80 * Get the details from the speaker's profile based on what the token defines
81 * $token string Token name
82 */
177 * Used to set up a token and the field access that goes along with it
178 * $uid integer User ID
179 * $name string Token name (user defined)
180 * $fields array List of access fields
181 */
AbstractModel.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 377 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
18 * Attribute default values
19 *
20 * This array contain default values for attributes which was redefine
21 * value for store
22 *
314 * @param string $attributeCode
315 * @return bool
316 * @SuppressWarnings(PHPMD.BooleanGetMethodName)
317 */
318 public function getExistsStoreValueFlag($attributeCode)
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
47 it: TTabIter
48 s: PSym
49 # check if all symbols have been used and defined:
50 if (tab.tos > len(tab.stack)): InternalError("CloseScope")
51 s = InitTabIter(it, tab.stack[tab.tos - 1])
62 proc AddSym(t: var TStrTable, n: PSym) =
63 if StrTableIncl(t, n): liMessage(n.info, errAttemptToRedefine, n.name.s)
65 proc addDecl(c: PContext, sym: PSym) =
66 if SymTabAddUnique(c.tab, sym) == Failure:
67 liMessage(sym.info, errAttemptToRedefine, sym.Name.s)
69 proc addDeclAt(c: PContext, sym: PSym, at: Natural) =
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
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()
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)
flash.c (https://github.com/hikob/openlab.git) C · 385 lines
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;
birthdayparty.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 87 lines
JSSVGAnimateTransformElement.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 157 lines
36 /* Hash table */
37 #if ENABLE(JIT)
38 #define THUNK_GENERATOR(generator) , generator
39 #else
40 #define THUNK_GENERATOR(generator)
51 /* Hash table for constructor */
52 #if ENABLE(JIT)
53 #define THUNK_GENERATOR(generator) , generator
54 #else
55 #define THUNK_GENERATOR(generator)
99 /* Hash table for prototype */
100 #if ENABLE(JIT)
101 #define THUNK_GENERATOR(generator) , generator
102 #else
103 #define THUNK_GENERATOR(generator)
test_negative_binomial.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code defines a set of macros to simplify the usage of Boost’s negative binomial distribution and its related functions, such as uniform_int
and uniform_01
. The macros provide default values for parameters like n
and p
, and define distributions for these parameters. This allows for concise and readable code when working with the negative binomial distribution in Boost.
This C++ code defines a set of macros to simplify the usage of Boost’s negative binomial distribution and its related functions, such as uniform_int
and uniform_01
. The macros provide default values for parameters like n
and p
, and define distributions for these parameters. This allows for concise and readable code when working with the negative binomial distribution in Boost.
15 #include <boost/math/distributions/negative_binomial.hpp>
17 #define BOOST_RANDOM_DISTRIBUTION boost::random::negative_binomial_distribution<>
18 #define BOOST_RANDOM_DISTRIBUTION_NAME negative_binomial
19 #define BOOST_MATH_DISTRIBUTION boost::math::negative_binomial
20 #define BOOST_RANDOM_ARG1_TYPE int
21 #define BOOST_RANDOM_ARG1_NAME n
22 #define BOOST_RANDOM_ARG1_DEFAULT 100000
23 #define BOOST_RANDOM_ARG1_DISTRIBUTION(n) boost::uniform_int<>(0, n)
24 #define BOOST_RANDOM_ARG2_TYPE double
25 #define BOOST_RANDOM_ARG2_NAME p
26 #define BOOST_RANDOM_ARG2_DEFAULT 1000.0
Sharp.Migrations.Template.csproj (https://hg01.codeplex.com/sharpmigrations) MSBuild · 96 lines
18 <UpgradeBackupLocation />
19 <TargetFrameworkProfile />
20 <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
21 <RestorePackages>true</RestorePackages>
22 </PropertyGroup>
26 <Optimize>false</Optimize>
27 <OutputPath>bin\Debug\</OutputPath>
28 <DefineConstants>DEBUG;TRACE</DefineConstants>
29 <ErrorReport>prompt</ErrorReport>
30 <WarningLevel>4</WarningLevel>
34 <Optimize>true</Optimize>
35 <OutputPath>bin\Release\</OutputPath>
36 <DefineConstants>TRACE</DefineConstants>
37 <ErrorReport>prompt</ErrorReport>
38 <WarningLevel>4</WarningLevel>
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.
31 #if defined(CONFIG_SERIAL_LH7A40X_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
32 #define SUPPORT_SYSRQ
47 #include <mach/hardware.h>
49 #define DEV_MAJOR 204
50 #define DEV_MINOR 16
51 #define DEV_NR 3
53 #define ISR_LOOP_LIMIT 256
55 #define UR(p,o) _UR ((p)->membase, o)
56 #define _UR(b,o) (*((volatile unsigned int*)(((unsigned char*) b) + (o))))
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
siginfo.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 10 lines
uverbs.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 199 lines
✨ Summary
This is a C header file that defines an interface for the InfiniBandverbs (IBV) library, which provides a set of APIs for interacting with InfiniBand devices and networks. It declares various data structures, functions, and macros for managing device connections, memory management, event handling, and other IB-related operations.
This is a C header file that defines an interface for the InfiniBandverbs (IBV) library, which provides a set of APIs for interacting with InfiniBand devices and networks. It declares various data structures, functions, and macros for managing device connections, memory management, event handling, and other IB-related operations.
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.
14 #ifndef _BNX2I_H_
15 #define _BNX2I_H_
17 #include <linux/module.h>
41 #include "57xx_iscsi_constants.h"
43 #define BNX2_ISCSI_DRIVER_NAME "bnx2i"
45 #define BNX2I_MAX_ADAPTERS 8
47 #define ISCSI_MAX_CONNS_PER_HBA 128
48 #define ISCSI_MAX_SESS_PER_HBA ISCSI_MAX_CONNS_PER_HBA
49 #define ISCSI_MAX_CMDS_PER_SESS 128
51 /* Total active commands across all connections supported by devices */
stata.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2980 lines
135 <!-- Highlight variable references and declarations (macros): -->
136 <!--commands that define only one macrovariables per line:-->
137 <SEQ_REGEXP TYPE="LITERAL4" AT_WORD_START="TRUE" HASH_CHAR="loc">loca?l?((\s+\w+)|$)</SEQ_REGEXP>
138 <SEQ_REGEXP TYPE="LITERAL4" AT_WORD_START="TRUE" HASH_CHAR="gl">glo?b?a?l?((\s+\w+)|$)</SEQ_REGEXP>
144 <MARK_FOLLOWING TYPE="LITERAL4" MATCH_TYPE="KEYWORD2">forvalues </MARK_FOLLOWING>
145 <MARK_FOLLOWING TYPE="LITERAL4" MATCH_TYPE="KEYWORD2">forvalues </MARK_FOLLOWING>
146 <!--commands that define one or more macrovariables per line:-->
147 <SEQ_REGEXP TYPE="LITERAL4" AT_WHITESPACE_END="TRUE" HASH_CHAR="tempvar" >tempvar((\s+\w+)+|$)</SEQ_REGEXP>
148 <SEQ_REGEXP TYPE="LITERAL4" AT_WHITESPACE_END="TRUE" HASH_CHAR="tempname">tempname((\s+\w+)+|$)</SEQ_REGEXP>
373 <KEYWORD2>continue</KEYWORD2>
374 <KEYWORD2>creturn</KEYWORD2>
375 <KEYWORD2>define</KEYWORD2>
376 <!--<KEYWORD2>delimit</KEYWORD2>-->
377 <KEYWORD2>discard</KEYWORD2>
Decoder.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 4 lines
example-cs.csproj
(https://swig.svn.sourceforge.net/svnroot/swig)
MSBuild scripts · 105 lines
✨ Summary
This is a Visual Studio project file (.csproj) that defines a C# console application named “runme”. It specifies the project’s settings, such as output type, configuration, and build actions for various files. The project references several other files, including code-behind files and a shape-related class.
This is a Visual Studio project file (.csproj) that defines a C# console application named “runme”. It specifies the project’s settings, such as output type, configuration, and build actions for various files. The project references several other files, including code-behind files and a shape-related class.
29 CheckForOverflowUnderflow = "false"
30 ConfigurationOverrideFile = ""
31 DefineConstants = "DEBUG;TRACE"
32 DocumentationFile = ""
33 DebugSymbols = "true"
49 CheckForOverflowUnderflow = "false"
50 ConfigurationOverrideFile = ""
51 DefineConstants = "TRACE"
52 DocumentationFile = ""
53 DebugSymbols = "false"
person.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 83 lines
hardware.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 28 lines
✨ Summary
This C header file defines common hardware settings for DaVinci family processors. It includes a system module base address and a control register offset, indicating how to access specific registers on these chips. The code is licensed under the GNU General Public License version 2, allowing users to modify and distribute it freely.
This C header file defines common hardware settings for DaVinci family processors. It includes a system module base address and a control register offset, indicating how to access specific registers on these chips. The code is licensed under the GNU General Public License version 2, allowing users to modify and distribute it freely.
10 */
11 #ifndef __ASM_ARCH_HARDWARE_H
12 #define __ASM_ARCH_HARDWARE_H
14 /*
15 * Before you add anything to ths file:
16 *
17 * This header is for defines common to ALL DaVinci family chips.
18 * Anything that is chip specific should go in <chipname>.h,
19 * and the chip/board init code should then explicitly include
20 * <chipname>.h
21 */
22 #define DAVINCI_SYSTEM_MODULE_BASE 0x01C40000
24 /* System control register offsets */
IDBBackingStore.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 114 lines
qplatformwindowformat_qpa.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 234 lines
HTMLLinkElement.idl (https://bitbucket.org/ultra_iter/qt-vtl.git) IDL · 43 lines
shared_global_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 77 lines
53 #ifndef SHARED_GLOBAL_H
54 #define SHARED_GLOBAL_H
56 #include <QtCore/qglobal.h>
58 #ifdef QT_DESIGNER_STATIC
59 #define QDESIGNER_SHARED_EXTERN
60 #define QDESIGNER_SHARED_IMPORT
61 #else
62 #define QDESIGNER_SHARED_EXTERN Q_DECL_EXPORT
63 #define QDESIGNER_SHARED_IMPORT Q_DECL_IMPORT
66 #ifndef QT_NO_SHARED_EXPORT
67 # ifdef QDESIGNER_SHARED_LIBRARY
68 # define QDESIGNER_SHARED_EXPORT QDESIGNER_SHARED_EXTERN
69 # else
70 # define QDESIGNER_SHARED_EXPORT QDESIGNER_SHARED_IMPORT
q3textedit_plugin.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 77 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>" \
RotatingBuffer.h
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ Header · 141 lines
✨ Summary
This C++ header file defines a RotatingBuffer
class, which is a buffer that keeps track of the last N lines (frames) it has processed. It provides indexing operators to access elements in the buffer, as well as methods to print and throw exceptions when accessing non-existent elements or attempting to copy the object.
This C++ header file defines a RotatingBuffer
class, which is a buffer that keeps track of the last N lines (frames) it has processed. It provides indexing operators to access elements in the buffer, as well as methods to print and throw exceptions when accessing non-existent elements or attempting to copy the object.
InlineBox.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 397 lines
SQLTransaction.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 137 lines
GeneratedImage.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 76 lines
Deque.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 688 lines
sync_access_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
tst_qdesktopservices.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 388 lines
46 #include <qdesktopservices.h>
48 //#define RUN_MANUAL_TESTS
49 //TESTED_CLASS=
50 //TESTED_FILES=
64 // These test are manual ones, you need to check from device that
65 // correct system application is started with correct content
66 // When you want to run these test, uncomment //#define RUN_MANUAL_TESTS
67 void openHttpUrl_data();
68 void openHttpUrl();
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);
PlatformCAAnimationMac.mm (https://bitbucket.org/ultra_iter/qt-vtl.git) Objective C++ · 563 lines
kcomedilib_main.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 561 lines
✨ Summary
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
adlib.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 130 lines
✨ Summary
This C code implements an AdLib FM sound card driver for Linux. It registers a custom ISA driver with the kernel, which is used to manage the sound card’s hardware and software components. The driver provides functions for probing, removing, and managing the sound card, as well as handling device initialization and cleanup.
This C code implements an AdLib FM sound card driver for Linux. It registers a custom ISA driver with the kernel, which is used to manage the sound card’s hardware and software components. The driver provides functions for probing, removing, and managing the sound card, as well as handling device initialization and cleanup.
audio.h
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C Header · 25 lines
✨ Summary
This C header file defines three inline functions for audio processing: bark
, dB
, and undB
. The bark
function calculates a bark scale value from a frequency, while dB
converts a sound pressure level to decibels. The undB
function reverses this conversion, returning the original sound pressure level from a decibel value. These functions are likely used in speech processing or audio analysis applications.
This C header file defines three inline functions for audio processing: bark
, dB
, and undB
. The bark
function calculates a bark scale value from a frequency, while dB
converts a sound pressure level to decibels. The undB
function reverses this conversion, returning the original sound pressure level from a decibel value. These functions are likely used in speech processing or audio analysis applications.
Export.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 26 lines
1 #ifndef __EXPORT_COMMON__
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 */
13 #define EXPORT_DLL __declspec(dllimport)
14 #endif
15 #else
qdrawhelper_mmx.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 155 lines
acosh.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
WorkerRunLoop.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 97 lines
DOMParser.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 42 lines
pvrusb2-sysfs.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 47 lines
✨ Summary
This is a C header file that defines an interface for interacting with system files (sysfs) on Linux systems, specifically for a USB device driver. It provides functions to create and destroy sysfs classes and instances, allowing users to manage and interact with the sysfs hierarchy related to the USB device.
This is a C header file that defines an interface for interacting with system files (sysfs) on Linux systems, specifically for a USB device driver. It provides functions to create and destroy sysfs classes and instances, allowing users to manage and interact with the sysfs hierarchy related to the USB device.
FETile.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 52 lines
res_SetROP.xbm (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 7 lines
DragController.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 130 lines
perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 595 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>
WebGLFramebuffer.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 99 lines
WorkerObjectProxy.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 60 lines
XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines
adapt_assoc_struct_named.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a macro for adapting structs to work with Boost.Fusion, a library for working with sequences and containers. It allows users to define a struct with named attributes and adapt it to be used as a view in a sequence, providing a convenient way to access its elements by name.
This C++ header file provides a macro for adapting structs to work with Boost.Fusion, a library for working with sequences and containers. It allows users to define a struct with named attributes and adapt it to be used as a view in a sequence, providing a convenient way to access its elements by name.
8 #ifndef BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP
9 #define BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP
11 #include <boost/fusion/adapted/struct/adapt_assoc_struct.hpp>
12 #include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
14 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_0(X, Y, Z) \
15 (X, obj.Y, Z) BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_1
16 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_1(X, Y, Z) \
17 (X, obj.Y, Z) BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_0
18 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_0_END
19 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_FILLER_1_END
21 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_NS( \
22 WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
23 \
xfs_ag.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C Header · 254 lines
✨ Summary
This C header file defines a set of data structures and constants for the XFS (extensible filesystem) implementation. It provides definitions for various components, such as allocation groups, inode radix trees, and file system blocks, which are used to manage the filesystem’s metadata and data storage. The code is part of the Linux kernel’s XFS module.
This C header file defines a set of data structures and constants for the XFS (extensible filesystem) implementation. It provides definitions for various components, such as allocation groups, inode radix trees, and file system blocks, which are used to manage the filesystem’s metadata and data storage. The code is part of the Linux kernel’s XFS module.
17 */
18 #ifndef __XFS_AG_H__
19 #define __XFS_AG_H__
21 /*
29 struct xfs_trans;
31 #define XFS_AGF_MAGIC 0x58414746 /* 'XAGF' */
32 #define XFS_AGI_MAGIC 0x58414749 /* 'XAGI' */
33 #define XFS_AGF_VERSION 1
34 #define XFS_AGI_VERSION 1
36 #define XFS_AGF_GOOD_VERSION(v) ((v) == XFS_AGF_VERSION)
37 #define XFS_AGI_GOOD_VERSION(v) ((v) == XFS_AGI_VERSION)
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.
28 #include <mach/time.h>
30 #define DAVINCI_I2C_BASE 0x01C21000
31 #define DAVINCI_MMCSD0_BASE 0x01E10000
32 #define DM355_MMCSD0_BASE 0x01E11000
33 #define DM355_MMCSD1_BASE 0x01E00000
61 }
63 #if defined(CONFIG_MMC_DAVINCI) || defined(CONFIG_MMC_DAVINCI_MODULE)
65 static u64 mmcsd0_dma_mask = DMA_BIT_MASK(32);
v4l2-dev.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 148 lines
✨ Summary
This C header file provides a set of functions and structures for managing video devices, including registration, unregistration, and access to driver private data. It defines a common interface for drivers to interact with video devices, allowing them to register and unregister devices, handle ioctl requests, and access device-specific data.
This C header file provides a set of functions and structures for managing video devices, including registration, unregistration, and access to driver private data. It defines a common interface for drivers to interact with video devices, allowing them to register and unregister devices, handle ioctl requests, and access device-specific data.
qengines.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 241 lines
qscreen_qws.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 392 lines
painting.pri (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 277 lines
181 embedded {
182 contains(QT_CONFIG,qtopia) {
183 DEFINES += QTOPIA_PRINTENGINE
184 HEADERS += painting/qprintengine_qws_p.h
185 SOURCES += painting/qprintengine_qws.cpp
211 x11|embedded|qpa {
212 contains(QT_CONFIG,qtopia) {
213 DEFINES += QT_NO_CUPS QT_NO_LPR
214 } else {
215 SOURCES += painting/qcups.cpp
217 }
218 } else {
219 DEFINES += QT_NO_CUPS QT_NO_LPR
220 }
nodeGen.cpp
(git://github.com/ticking/self.git)
C++ · 469 lines
✨ Summary
This C++ code is part of a compiler implementation, specifically responsible for generating branch instructions (if-else statements) in machine code. It creates nodes and merges them to represent conditional branches, allowing the compiler to decide which path to take based on the program’s logic. The generated code is optimized for performance and minimizes unnecessary operations.
This C++ code is part of a compiler implementation, specifically responsible for generating branch instructions (if-else statements) in machine code. It creates nodes and merges them to represent conditional branches, allowing the compiler to decide which path to take based on the program’s logic. The generated code is optimized for performance and minimizes unnecessary operations.
mqsc.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 231 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.
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.
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.
8 =============================================================================*/
9 #ifndef BOOST_SPIRIT_DEPRECATED_INCLUDE_COMMON
10 #define BOOST_SPIRIT_DEPRECATED_INCLUDE_COMMON
12 #include <boost/version.hpp>
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
sembuf.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 23 lines
✨ Summary
This C header file defines a structure for semaphore data on an alpha architecture system. It includes fields for permissions, last operation time, last change time, and number of semaphores in an array, along with two unused 64-bit values for padding. The structure is designed to be compatible between kernel and user space, requiring extra padding due to size differences.
This C header file defines a structure for semaphore data on an alpha architecture system. It includes fields for permissions, last operation time, last change time, and number of semaphores in an array, along with two unused 64-bit values for padding. The structure is designed to be compatible between kernel and user space, requiring extra padding due to size differences.
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>
Mode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines
18 #endif
20 #if defined(HAVE_UTIME) && defined(HAVE_UTIME_H)
21 # include <utime.h> /* for struct utimbuf */
22 #endif
42 #define USE_MCH_ACCESS
44 #if defined(sun) && defined(S_ISCHR)
45 # define OPEN_CHR_FILES
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);
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.
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.
RenderRubyText.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 56 lines
qdrawhelper_sse2.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 544 lines
466 const __m128i c128 = _mm_set1_epi16(c);
467 #if defined(Q_CC_MSVC)
468 # pragma warning(disable: 4309) // truncation of constant value
469 #endif
522 // pre-VS 2008 doesn't have cast intrinsics, whereas 2008 and later requires it
523 #if defined(Q_CC_MSVC) && _MSC_VER < 1500
524 static inline Int32x4 v_greaterOrEqual(Float32x4 a, Float32x4 b)
525 {
journal.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2456 lines
✨ Summary
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
cfe_api.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 123 lines
✨ Summary
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
26 */
27 #ifndef CFE_API_H
28 #define CFE_API_H
30 #include <linux/types.h>
40 /* Seal indicating CFE's presence, passed to user program. */
41 #define CFE_EPTSEAL 0x43464531
43 #define CFE_MI_RESERVED 0 /* memory is reserved, do not use */
44 #define CFE_MI_AVAILABLE 1 /* memory is available */
46 #define CFE_FLG_WARMSTART 0x00000001
47 #define CFE_FLG_FULL_ARENA 0x00000001
48 #define CFE_FLG_ENV_PERMANENT 0x00000001
tracked_objects_visitor.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a visitor class tracked_objects_visitor
that collects tracked objects from a bound function in a signal-slot system. It recursively visits references, pointers, and signals, adding tracked objects to a list if they are trackable. The visitor is used by the Boost.Signals2 library to manage tracked objects.
This C++ header file defines a visitor class tracked_objects_visitor
that collects tracked objects from a bound function in a signal-slot system. It recursively visits references, pointers, and signals, adding tracked objects to a list if they are trackable. The visitor is used by the Boost.Signals2 library to manage tracked objects.
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
195 |
196 // json only allows base 10 numbers, no octal or hex or binary, at least, not as a number.
197 // Unicode values are allowed in char and string. Need to define numbers ahead of characters
198 // since numbers can also match as characters.
199 <NUMBER: (["-"])? ((["0"]) | (["1"-"9"] (["0"-"9"])*)) ("." (["0"-"9"])+)? (["e","E"] (["+","-"])? (["0"-"9"])+ )?>
proc.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 168 lines
✨ Summary
This C code implements a procfs interface for displaying information about cryptographic algorithms used in Linux. It provides a command-line interface to view details such as algorithm names, drivers, priorities, and flags. The code also handles initialization and cleanup of the procfs interface, including registration and deregistration of sysctl tables and removal of the “crypto” proc entry when exiting.
This C code implements a procfs interface for displaying information about cryptographic algorithms used in Linux. It provides a command-line interface to view details such as algorithm names, drivers, priorities, and flags. The code also handles initialization and cleanup of the procfs interface, including registration and deregistration of sysctl tables and removal of the “crypto” proc entry when exiting.
hts_strtab.h
(git://github.com/xbmc/xbmc.git)
C Header · 62 lines
✨ Summary
This C header file provides a simple string-to-value and value-to-string mapping system for use with TVHeadend, a digital television software. It defines two macros, str2val
and val2str
, which take a string or value as input and return the corresponding mapped value or string from an array of struct strtab
. The array is initialized with strings and values in the header file itself.
This C header file provides a simple string-to-value and value-to-string mapping system for use with TVHeadend, a digital television software. It defines two macros, str2val
and val2str
, which take a string or value as input and return the corresponding mapped value or string from an array of struct strtab
. The array is initialized with strings and values in the header file itself.
20 #ifndef STRTAB_H_
21 #define STRTAB_H_
23 #include <strings.h>
42 }
44 #define str2val(str, tab) str2val0(str, tab, sizeof(tab) / sizeof(tab[0]))
46 static const char * val2str0(int val, struct strtab tab[], int l)
57 }
59 #define val2str(val, tab) val2str0(val, tab, sizeof(tab) / sizeof(tab[0]))
61 #endif /* STRTAB_H_ */
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.
7 */
8 #ifndef __MATROXFB_H__
9 #define __MATROXFB_H__
11 /* general, but fairly heavy, debugging */
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
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:
serial_sci.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 32 lines
✨ Summary
This C header file defines a platform-specific interface for SuperH SCI(F) serial ports, used by certain Linux platforms such as sh/sh64/h8300. It provides a common structure and constants for managing SCI(F) ports, including memory mapping, interrupt handling, and clock configuration. The file is designed to be compatible with the Linux serial core subsystem.
This C header file defines a platform-specific interface for SuperH SCI(F) serial ports, used by certain Linux platforms such as sh/sh64/h8300. It provides a common structure and constants for managing SCI(F) ports, including memory mapping, interrupt handling, and clock configuration. The file is designed to be compatible with the Linux serial core subsystem.
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.
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.
16 #ifndef _LINUX_IGMP_H
17 #define _LINUX_IGMP_H
19 #include <linux/types.h>
38 /* V3 group record types [grec_type] */
39 #define IGMPV3_MODE_IS_INCLUDE 1
40 #define IGMPV3_MODE_IS_EXCLUDE 2
41 #define IGMPV3_CHANGE_TO_INCLUDE 3
42 #define IGMPV3_CHANGE_TO_EXCLUDE 4
43 #define IGMPV3_ALLOW_NEW_SOURCES 5
44 #define IGMPV3_BLOCK_OLD_SOURCES 6