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 //

16

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 */

25

26 defined('MOODLE_INTERNAL') || die();

27

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 */

22

25 * @see Zend_Mail_Storage_Folder

26 */

27 #require_once 'Zend/Mail/Storage/Folder.php';

28

29 /**

30 * @see Zend_Mail_Storage_Folder_Interface

31 */

32 #require_once 'Zend/Mail/Storage/Folder/Interface.php';

33

34 /**

language.php (https://github.com/zakgrant/forkcms.git) PHP · 417 lines

1 <?php

2

3 /**

85 }

86

87 // redefine

88 $key = (string) $key;

89 $module = (string) $module;

164 }

165

166 // redefine

167 $key = (string) $key;

168 $module = (string) $module;

231 }

232

233 // redefine

234 $key = (string) $key;

235 $module = (string) $module;

RectangularDetectorTest.h (https://github.com/wdzhou/mantid.git) C Header · 247 lines

1 #ifndef RECTANGULAR_DETECTOR_TEST_H

2 #define RECTANGULAR_DETECTOR_TEST_H

3

4 #include <cxxtest/TestSuite.h>

address_v4.cpp (https://bitbucket.org/kbw/boost_svn.git) C++ · 268 lines

10

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)

15

16 // Test that header file is self-contained.

117 os << addr1;

118

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 */

26

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 */

26

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

1 <?php

2

3 /*

146

147 // we need to force the browser to display the seconds by

148 // adding the HTML attribute step if not already defined.

149 // Otherwise the browser will not display and so not send the seconds

150 // therefore the value will always be considered as invalid.

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 */

26

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

2

3 namespace PhpParser;

4

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 }

28

29 $this->fail('Expected PhpParser\Error');

30 }

31

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

2

3 /*

34 *

35 * @copyright CiviCRM LLC (c) 2004-2011

36 * @version $Id: CustomGroup.php 32998 2011-03-14 22:00:35Z kurund $

37 */

38

40 * Files required for this package

41 */

42 require_once 'api/v2/utils.php';

43

44 /**

89 $error = _civicrm_check_required_fields($params, 'CRM_Core_DAO_CustomGroup');

90

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

2

3 /**

199

200 /**

201 * Defines the TestMigration class.

202 */

203 class TestMigration extends Migration {

262

263 /**

264 * Defines the RequirementsAwareSourceInterface.

265 */

266 interface RequirementsAwareSourceInterface extends MigrateSourceInterface, RequirementsInterface {}

267

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 */

9

10 defined('JPATH_PLATFORM') or die();

11

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 */

27

28 # if !defined (ACE_DOESNT_DEFINE_MAIN)

29

30 # if defined (ACE_HAS_RTEMS)

44 # endif /* ! ACE_WMAIN */

45

46 # if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)

47 # define ACE_TMAIN wmain

121 ace_main_i

122

123 # elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x640) && defined (__RTP__)

124

125 # define main \

154 # elif !defined (ACE_HAS_WINCE)

155

156 # if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)

157

158 ACE_BEGIN_VERSIONED_NAMESPACE_DECL

dannys_temperatureRGB_setupFINISHEDMODULAR.pde (https://github.com/DannyGITHUB/Danny-Huynh-3292443.git) Processing · 232 lines

150

151 /*

152 * getVoltage() - returns the voltage on the analog input defined by

153 * pin

154 */

159

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

163

LPCencode.c (https://github.com/rhuitl/uClinux.git) C · 231 lines

14 #include <string.h>

15

16 #include "iLBC_define.h"

17 #include "helpfun.h"

18 #include "lsf.h"

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 */

26

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

1 <?php

2 /**

3 * simbio_form_maker

23

24 // be sure that this file not accessed directly

25 if (!defined('INDEX_AUTH')) {

26 die("can not access this file directly");

27 } elseif (INDEX_AUTH != 1) {

29 }

30

31 require 'simbio_form_element.inc.php';

32

33 /**

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 */

64

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;

26

27 defined('MOODLE_INTERNAL') || die();

28

29 require_once($CFG->dirroot . '/rating/lib.php');

30 require_once($CFG->libdir . '/externallib.php');

31

32 use external_multiple_structure;

101

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

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

16 * Array session storage

17 *

18 * Defines an ArrayObject interface for accessing session storage, with options

19 * for setting metadata, locking, and marking as isImmutable.

20 */

main.cpp (https://bitbucket.org/noahgoldman/data_structures.git) C++ · 310 lines

170 itr++;

171 std::string tmp = *itr;

172 // note that the return value of erase with a random iterator is undefined

173 my_list.erase(itr);

174 std::cout << "erased: " << tmp << std::endl;

mavlink_msg_log_request_end.h (https://gitlab.com/fsgdez/apm_planner) C Header · 233 lines

1 // MESSAGE LOG_REQUEST_END PACKING

2

3 #define MAVLINK_MSG_ID_LOG_REQUEST_END 122

4

5 typedef struct __mavlink_log_request_end_t

9 } mavlink_log_request_end_t;

10

11 #define MAVLINK_MSG_ID_LOG_REQUEST_END_LEN 2

12 #define MAVLINK_MSG_ID_122_LEN 2

13

14 #define MAVLINK_MSG_ID_LOG_REQUEST_END_CRC 203

15 #define MAVLINK_MSG_ID_122_CRC 203

17

18

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

1 // MESSAGE AHRS PACKING

2

3 #define MAVLINK_MSG_ID_AHRS 163

4

5 typedef struct __mavlink_ahrs_t

14 } mavlink_ahrs_t;

15

16 #define MAVLINK_MSG_ID_AHRS_LEN 28

17 #define MAVLINK_MSG_ID_163_LEN 28

19

20

21 #define MAVLINK_MESSAGE_INFO_AHRS { \

22 "AHRS", \

23 7, \

base.hpp (https://github.com/arx/ArxWindows.git) C++ Header · 227 lines

30

31 #ifndef BOOST_OUTCOME_POLICY_BASE_HPP

32 #define BOOST_OUTCOME_POLICY_BASE_HPP

33

34 #include "../detail/value_storage.hpp"

handle_workaround.hpp (https://github.com/arx/ArxWindows.git) C++ Header · 262 lines

5

6 #ifndef BOOST_PROCESS_DETAIL_WINDOWS_HANDLE_WORKAROUND_HPP_

7 #define BOOST_PROCESS_DETAIL_WINDOWS_HANDLE_WORKAROUND_HPP_

8

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

13

14 #if defined( BOOST_USE_WINDOWS_H )

37 } SYSTEM_HANDLE_INFORMATION_, *PSYSTEM_HANDLE_INFORMATION_;

38

39 #if defined( BOOST_USE_WINDOWS_H )

40

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

2

3 /*

34 *

35 * @copyright CiviCRM LLC (c) 2004-2011

36 * @version $Id: CustomGroup.php 33007 2011-03-14 22:52:10Z kurund $

37 */

38

40 * Files required for this package

41 */

42 require_once 'api/v2/utils.php';

43

44 /**

89 $error = _civicrm_check_required_fields($params, 'CRM_Core_DAO_CustomGroup');

90

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

81

82 [Test]

83 public void UserDefinedClass ()

84 {

85 var mi = typeof (OpClass).GetMethod ("op_UnaryNegation");

141

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 );

74

88 $this->elements['legend']->position = ezcGraph::LEFT;

89

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

2

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 &nbsp;&nbsp;<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

78

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])

61

62 proc AddSym(t: var TStrTable, n: PSym) =

63 if StrTableIncl(t, n): liMessage(n.info, errAttemptToRedefine, n.name.s)

64

65 proc addDecl(c: PContext, sym: PSym) =

66 if SymTabAddUnique(c.tab, sym) == Failure:

67 liMessage(sym.info, errAttemptToRedefine, sym.Name.s)

68

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

2

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

10

11 // no direct access

12 defined('_JEXEC') or die;

13

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

255 }

256

257 #define RAM_COPY_CODE_LENGTH ((uint32_t) flash_ram_copy_end - (uint32_t) flash_ram_copy)

258 uint8_t ram_code[RAM_COPY_CODE_LENGTH + 3];

259

311 }

312

313 #define RAM_CODE_LENGTH ((uint32_t) flash_ram_copy_all_end - (uint32_t) flash_ram_copy_all)

314 uint8_t ram_code[RAM_CODE_LENGTH + 3];

315

DynamicForwardingEntry.java (https://bitbucket.org/pau-minoves/opennaas.git) Java · 271 lines

10

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

31

32 /**

33 * The following constants are defined for use with the ValueMap/Values qualified property systemCreationClassName.

34 */

35 private String systemCreationClassName;

63

64 /**

65 * The following constants are defined for use with the ValueMap/Values qualified property systemName.

66 */

67 private String systemName;

95

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

39 ****************************************************************************/

40 #ifndef BIRTHDAYPARTY_H

41 #define BIRTHDAYPARTY_H

42

43 #include <QObject>

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.

15 #include <boost/math/distributions/negative_binomial.hpp>

16

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.

29

30

31 #if defined(CONFIG_SERIAL_LH7A40X_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)

32 #define SUPPORT_SYSRQ

47 #include <mach/hardware.h>

48

49 #define DEV_MAJOR 204

50 #define DEV_MINOR 16

51 #define DEV_NR 3

52

53 #define ISR_LOOP_LIMIT 256

54

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.

1 #include <boost/config.hpp>

2

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>

21

22 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)

23 #pragma warning(push, 3)

24 #endif

26 #include <iostream>

27

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

1 #ifndef _ALPHA_SIGINFO_H

2 #define _ALPHA_SIGINFO_H

3

4 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))

5 #define __ARCH_SI_TRAPNO

6

7 #include <asm-generic/siginfo.h>

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.

36

37 #ifndef UVERBS_H

38 #define UVERBS_H

39

40 #include <linux/kref.h>

162 struct ib_event *event);

163

164 #define IB_UVERBS_DECLARE_CMD(name) \

165 ssize_t ib_uverbs_##name(struct ib_uverbs_file *file, \

166 const char __user *buf, int in_len, \

apdl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 7537 lines

14 -->

15

16 <!-- The keywords and functions defined here are those of ANSYS 5.7 -->

17

18 <MODE>

767 <KEYWORD1>DEACT</KEYWORD1>

768 <KEYWORD1>DEFI</KEYWORD1>

769 <KEYWORD1>DEFINE</KEYWORD1>

770 <KEYWORD1>DELT</KEYWORD1>

771 <KEYWORD1>DELTIM</KEYWORD1>

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.

13

14 #ifndef _BNX2I_H_

15 #define _BNX2I_H_

16

17 #include <linux/module.h>

41 #include "57xx_iscsi_constants.h"

42

43 #define BNX2_ISCSI_DRIVER_NAME "bnx2i"

44

45 #define BNX2I_MAX_ADAPTERS 8

46

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

50

51 /* Total active commands across all connections supported by devices */

stata.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2980 lines

134

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

1 #ifndef WebCore_FWD_Decoder_h

2 #define WebCore_FWD_Decoder_h

3 #include <JavaScriptCore/Decoder.h>

4 #endif

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.

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

39 ****************************************************************************/

40 #ifndef PERSON_H

41 #define PERSON_H

42

43 #include <QObject>

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.

10 */

11 #ifndef __ASM_ARCH_HARDWARE_H

12 #define __ASM_ARCH_HARDWARE_H

13

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

23

24 /* System control register offsets */

IDBBackingStore.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 114 lines

25

26 #ifndef IDBBackingStore_h

27 #define IDBBackingStore_h

28

29 #if ENABLE(INDEXED_DATABASE)

qplatformwindowformat_qpa.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 234 lines

40 ****************************************************************************/

41 #ifndef QPLATFORMWINDOWFORMAT_QPA_H

42 #define QPLATFORMWINDOWFORMAT_QPA_H

43

44 #include <QtGui/QPlatformWindow>

HTMLLinkElement.idl (https://bitbucket.org/ultra_iter/qt-vtl.git) IDL · 43 lines

35 readonly attribute StyleSheet sheet;

36

37 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C

38 // Objective-C extension:

39 readonly attribute URL absoluteLinkURL;

shared_global_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 77 lines

52

53 #ifndef SHARED_GLOBAL_H

54 #define SHARED_GLOBAL_H

55

56 #include <QtCore/qglobal.h>

57

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

41

42 #ifndef Q3TEXTEDIT_PLUGIN_H

43 #define Q3TEXTEDIT_PLUGIN_H

44

45 #include <QtDesigner/QDesignerCustomWidgetInterface>

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.

16

17 #ifndef ROTATING_BUFFER_H

18 #define ROTATING_BUFFER_H

19

20 #include "Object.h"

InlineBox.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 397 lines

20

21 #ifndef InlineBox_h

22 #define InlineBox_h

23

24 #include "RenderBoxModelObject.h"

SQLTransaction.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 137 lines

27 */

28 #ifndef SQLTransaction_h

29 #define SQLTransaction_h

30

31 #if ENABLE(DATABASE)

GeneratedImage.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 76 lines

25

26 #ifndef GeneratedImage_h

27 #define GeneratedImage_h

28

29 #include "Image.h"

Deque.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 688 lines

29

30 #ifndef WTF_Deque_h

31 #define WTF_Deque_h

32

33 // FIXME: Could move what Vector and Deque share into a separate file.

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.

1 #define BOOST_TEST_MODULE sync_access_test

2 #include <boost/test/unit_test.hpp>

3

tst_qdesktopservices.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 388 lines

46 #include <qdesktopservices.h>

47

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

36 #import <wtf/UnusedParam.h>

37

38 #define HAVE_MODERN_QUARTZCORE (!defined(BUILDING_ON_LEOPARD))

39

40 using namespace WebCore;

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.

22 */

23

24 #define __NO_VERSION__

25 #include <linux/module.h>

26

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.

10 #include <sound/opl3.h>

11

12 #define CRD_NAME "AdLib FM"

13 #define DEV_NAME "adlib"

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.

3

4 #ifndef AUDIO_H

5 #define AUDIO_H

6

7 #include <math.h>

Export.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 26 lines

1 #ifndef __EXPORT_COMMON__

2 #define __EXPORT_COMMON__

3

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

42 #include <private/qdrawhelper_p.h>

43

44 #if defined(QT_HAVE_MMX)

45

46 #include <private/qdrawhelper_mmx_p.h>

acosh.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

6 # include <pch.hpp>

7 #ifndef BOOST_MATH_TR1_SOURCE

8 # define BOOST_MATH_TR1_SOURCE

9 #endif

10 #include <boost/math/tr1.hpp>

WorkerRunLoop.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 97 lines

30

31 #ifndef WorkerRunLoop_h

32 #define WorkerRunLoop_h

33

34 #if ENABLE(WORKERS)

DOMParser.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 42 lines

18

19 #ifndef DOMParser_h

20 #define DOMParser_h

21

22 #include <wtf/Forward.h>

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.

19 */

20 #ifndef __PVRUSB2_SYSFS_H

21 #define __PVRUSB2_SYSFS_H

22

23 #include <linux/list.h>

FETile.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 52 lines

21

22 #ifndef FETile_h

23 #define FETile_h

24

25 #if ENABLE(FILTERS)

res_SetROP.xbm (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 7 lines

1 #define res_SetROP_width 8

2 #define res_SetROP_height 8

DragController.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 130 lines

25

26 #ifndef DragController_h

27 #define DragController_h

28

29 #include "DragActions.h"

perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 595 lines

323

324 <!-- Miscellaneous functions -->

325 <KEYWORD3>defined</KEYWORD3>

326 <!--<KEYWORD3>dump</KEYWORD3>-->

327 <!--<KEYWORD3>eval</KEYWORD3>-->

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.

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

25

26 #ifndef WebGLFramebuffer_h

27 #define WebGLFramebuffer_h

28

29 #include "WebGLObject.h"

WorkerObjectProxy.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 60 lines

30

31 #ifndef WorkerObjectProxy_h

32 #define WorkerObjectProxy_h

33

34 #if ENABLE(WORKERS)

XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines

103 }

104

105 // Determines if a string is a valid token, as defined by

106 // "token" in section 2.2 of RFC 2616.

107 static bool isValidToken(const String& name)

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.

7

8 #ifndef BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP

9 #define BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP

10

11 #include <boost/fusion/adapted/struct/adapt_assoc_struct.hpp>

12 #include <boost/fusion/adapted/struct/detail/proxy_type.hpp>

13

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

20

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.

17 */

18 #ifndef __XFS_AG_H__

19 #define __XFS_AG_H__

20

21 /*

29 struct xfs_trans;

30

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

35

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.

28 #include <mach/time.h>

29

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 }

62

63 #if defined(CONFIG_MMC_DAVINCI) || defined(CONFIG_MMC_DAVINCI_MODULE)

64

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.

8 */

9 #ifndef _V4L2_DEV_H

10 #define _V4L2_DEV_H

11

12 #include <linux/poll.h>

17 #include <linux/videodev2.h>

18

19 #define VIDEO_MAJOR 81

20

21 #define VFL_TYPE_GRABBER 0

22 #define VFL_TYPE_VBI 1

23 #define VFL_TYPE_RADIO 2

24 #define VFL_TYPE_VTX 3

25 #define VFL_TYPE_MAX 4

qengines.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 241 lines

40 ****************************************************************************/

41 #ifndef QENGINES_H

42 #define QENGINES_H

43

44 #if defined(BUILD_OPENGL)

120

121

122 #if defined(BUILD_OPENGL)

123 class GLEngine : public QEngine

124 {

qscreen_qws.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 392 lines

41

42 #ifndef QSCREEN_QWS_H

43 #define QSCREEN_QWS_H

44

45 #include <QtCore/qnamespace.h>

67

68 #ifndef QT_QWS_DEPTH16_RGB

69 #define QT_QWS_DEPTH16_RGB 565

70 #endif

71 static const int qt_rbits = (QT_QWS_DEPTH16_RGB/100);

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 }

221

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.

9 # include "_nodeGen.cpp.incl"

10

11 # define APPEND(node) current = current->append (node)

12 # define APPEND1(node) current = current->append1(node)

13 # define APPENDN(n, node) current = current->append(n, node)

14 # define COMMENT(s) current = current->append(new CommentNode(s))

mqsc.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 231 lines

39 <KEYWORD1>alt</KEYWORD1>

40 <KEYWORD1>clear</KEYWORD1>

41 <KEYWORD1>define</KEYWORD1>

42 <KEYWORD1>def</KEYWORD1>

43 <KEYWORD1>delete</KEYWORD1>

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.

174 </TR>

175 <TR BGCOLOR="white" CLASS="TableRowColor">

176 <TD><CODE>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD>

177 </TR>

178 </TABLE>

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.

34 public SplashScreen()

35 {

36 setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));

37 setBackground(Color.white);

38

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.

8 =============================================================================*/

9 #ifndef BOOST_SPIRIT_DEPRECATED_INCLUDE_COMMON

10 #define BOOST_SPIRIT_DEPRECATED_INCLUDE_COMMON

11

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

21

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.

1 #ifndef _ALPHA_SEMBUF_H

2 #define _ALPHA_SEMBUF_H

3

4 /*

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])

29

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

79

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.

32

33 /**

34 * An edit mode defines specific settings for editing some type of file.

35 * One instance of this class is created for each supported edit mode.

36 *

bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines

582 {

583 t=<IDENTIFIER> { jjtThis.name = t.image; }

584 ( "[" "]" { jjtThis.addUndefinedDimension(); } )*

585 }

586 */

fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines

18 #endif

19

20 #if defined(HAVE_UTIME) && defined(HAVE_UTIME_H)

21 # include <utime.h> /* for struct utimbuf */

22 #endif

42 #define USE_MCH_ACCESS

43

44 #if defined(sun) && defined(S_ISCHR)

45 # define OPEN_CHR_FILES

459 }

460

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.

833 setDoubleBuffered(false);

834

835 setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));

836

837 fontRenderContext = new FontRenderContext(null,false,false);

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.

228 //{{{ getParser() method

229 /**

230 * @param name - the name of the parser, as defined in services.xml

231 */

232 public static SideKickParser getParser(String name)

RenderRubyText.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 56 lines

30

31 #ifndef RenderRubyText_h

32 #define RenderRubyText_h

33

34 #include "RenderBlock.h"

qdrawhelper_sse2.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 544 lines

465

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

521

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.

41 #include <linux/hash.h>

42

43 #define CREATE_TRACE_POINTS

44 #include <trace/events/jbd2.h>

45

178 * so we don't sleep

179 */

180 DEFINE_WAIT(wait);

181 int should_sleep = 1;

182

446 */

447

448 #define MIN_LOG_RESERVED_BLOCKS 32 /* Allow for rounding errors */

449

450 left -= MIN_LOG_RESERVED_BLOCKS;

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.

26 */

27 #ifndef CFE_API_H

28 #define CFE_API_H

29

30 #include <linux/types.h>

39

40 /* Seal indicating CFE's presence, passed to user program. */

41 #define CFE_EPTSEAL 0x43464531

42

43 #define CFE_MI_RESERVED 0 /* memory is reserved, do not use */

44 #define CFE_MI_AVAILABLE 1 /* memory is available */

45

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.

11

12 #ifndef BOOST_SIGNALS2_TRACKED_OBJECTS_VISITOR_HPP

13 #define BOOST_SIGNALS2_TRACKED_OBJECTS_VISITOR_HPP

14

15 #include <boost/mpl/bool.hpp>

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.

63 }

64 #else

65 #define crypto_proc_fips_init()

66 #define crypto_proc_fips_exit()

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.

19

20 #ifndef STRTAB_H_

21 #define STRTAB_H_

22

23 #include <strings.h>

42 }

43

44 #define str2val(str, tab) str2val0(str, tab, sizeof(tab) / sizeof(tab[0]))

45

46 static const char * val2str0(int val, struct strtab tab[], int l)

57 }

58

59 #define val2str(val, tab) val2str0(val, tab, sizeof(tab) / sizeof(tab[0]))

60

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.

7 */

8 #ifndef __MATROXFB_H__

9 #define __MATROXFB_H__

10

11 /* general, but fairly heavy, debugging */

49 #endif

50

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

150

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.

1 #ifndef __LINUX_SERIAL_SCI_H

2 #define __LINUX_SERIAL_SCI_H

3

4 #include <linux/serial_core.h>

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.

22

23 #ifndef _LINUX_NTFS_LCNALLOC_H

24 #define _LINUX_NTFS_LCNALLOC_H

25

26 #ifdef NTFS_RW

143 #endif /* NTFS_RW */

144

145 #endif /* defined _LINUX_NTFS_LCNALLOC_H */

146

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.

15

16 #ifndef _LINUX_IGMP_H

17 #define _LINUX_IGMP_H

18

19 #include <linux/types.h>

37

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