100+ results for 'php exit lang:PHP repo:gencer/punbb'

Not the results you expected?

class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines

1 <?php

2 /**

3 * ClusterPress User Relationships.

9 */

10

11 // Exit if accessed directly.

12 defined( 'ABSPATH' ) || exit;

tdo24m.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 475 lines ✨ Summary

This C code is a driver for a Toppoly TDO24M LCD panel, a type of display used in various devices. It provides a Linux kernel module that allows the device to be recognized and controlled by the operating system. The code handles initialization, power management, and communication with the display controller.

407 }

408

409 static int __devexit tdo24m_remove(struct spi_device *spi)

410 {

411 struct tdo24m *lcd = dev_get_drvdata(&spi->dev);

464 module_init(tdo24m_init);

465

466 static void __exit tdo24m_exit(void)

467 {

468 spi_unregister_driver(&tdo24m_driver);

469 }

470 module_exit(tdo24m_exit);

471

472 MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>");

User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 4.3.2 or newer

6 *

7 * @package CodeIgniter

db_helper.php (https://github.com/mrbmc/erector.git) PHP · 338 lines

1 <?php

2 /**

3 * This file houses the MpmDbHelper class.

4 *

5 * @package mysql_php_migrations

6 * @subpackage Helpers

7 * @license http://www.opensource.org/licenses/bsd-license.php The New BSD License

8 * @link http://code.google.com/p/mysql-php-migrations/

9 */

10

12 * The MpmDbHelper class is used to fetch database objects (PDO or Mysqli right now) and perform basic database actions.

13 *

14 * @package mysql_php_migrations

15 * @subpackage Helpers

16 */

MPSUM_Admin_Themes.php (https://gitlab.com/memuller.web/wp_site) PHP · 280 lines

1 <?php

2 /**

3 * Controls the themes tab

112 //Redirect back to settings screen

113 wp_redirect( esc_url_raw( add_query_arg( $query_args, MPSUM_Admin::get_url() ) ) );

114 exit;

115 }

116

205 }

206 ?>

207 <div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>

208 <?php

211

212 ?>

213 <form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">

214 <?php

CreationMinerais.php (https://github.com/Samsuffi/braldahim.git) PHP · 340 lines

1 <?php

2

3 /**

35 $retour .= $this->suppressionSurPalissades();

36

37 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - calculBatchImpl - exit -");

38 return $retour;

39 }

80 $filonTable->delete($where);

81 }

82 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - suppressionSurEau - exit -");

83 return $retour;

84 }

125 $filonTable->delete($where);

126 }

127 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - suppressionSurLieux - exit -");

128 return $retour;

129 }

Consumer.php (https://bitbucket.org/acidel/buykoala.git) PHP · 279 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Consumer.php 23170 2010-10-19 18:29:24Z mabe $

20 */

21

22 /** Zend_Oauth */

23 #require_once 'Zend/Oauth.php';

24

25 /** Zend_Uri */

26 #require_once 'Zend/Uri.php';

27

28 /** Zend_Oauth_Http_RequestToken */

subscription.php (https://github.com/kainbacher/Notethrower.git) PHP · 273 lines

5 include_once('../Includes/Config.php');

6 include_once('../Includes/Snippets.php');

7 include_once('../Includes/TemplateUtil.php');

74 //prevent reload

75 header('Location: ' . $GLOBALS['BASE_URL'] . 'invite/'.$subscription->rand_str.'/success');

76 //header('Location: subscription.php?action=success&code='.$subscription->rand_str);

77 exit;

217 $namecheck = Subscription::fetch_for_username(get_param('username'));

218 if($namecheck){

219 header('Location: subscription.php?action=error&type=name');

220 exit;

225 '${Optional/referrerId}' => get_param('referrerid'),

226 '${Optional/error}' => $error,

227 '${phpSelf}' => basename($_SERVER['PHP_SELF'], '.php'),

228 '${userName}' => get_param('username'),

229 '${Common/pageFooter}' => buildPageFooter()

mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

95 $header .= 'Return-Path: ' . $this->from . $this->newline;

96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;

97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

199 if (substr($reply, 0, 3) != 250) {

200 trigger_error('Error: EHLO not accepted from server!');

201 exit();

202 }

203

233 if (substr($reply, 0, 3) != 334) {

234 trigger_error('Error: Username not accepted from server!');

235 exit();

236 }

237

profile.php (https://github.com/jaden54/GATE.git) PHP · 303 lines

1 <?php

2 session_start();

3

4 if (!isset($_SESSION['user'])) {

5

6 header ('Location: index.php');

7

8 exit();

133 style="vertical-align: middle; width: 160px; height: 60px; background-color: rgb(213, 209, 225); text-align: center;"><big

134 style="color: rgb(77, 67, 102);">'.$user.'</big><br>

135 <a href="deconnexion.php"><small>D�connexion</small></a></td>

136 </tr>

137 </tbody>

151 <td

152 style="vertical-align: middle; width: 120px; text-align: center; background-color: rgb(255, 214, 254);"><a

153 href="accueil.php"><span style="text-decoration: underline;">Accueil</span></a><br>

154 </td>

155 </tr>

theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines

532 $indexItemTargetIndex = -1;

533 $indexItem = $api->getIndexItem($index, $indexItemIndex);

534 }

535

554 global $indexItemRef;

555

556 $indexItemRef = $api->getIndexItemRef($indexItem);

557

558 }

566 $indexItemTargetIndex++;

567 if($indexItemTargetIndex >= $api->getIndexItemTargetCount($indexItem)) {

568 unset($indexItem);

581 global $indexItemTargetIndex;

582

583 $indexItemTarget = $api->getIndexItemTarget($indexItem, $indexItemTargetIndex);

584 }

585

DB_result.php (https://gitlab.com/ricoru21/py_incidencia) PHP · 410 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.1.6 or newer

6 *

7 * @package CodeIgniter

407 // END DB_result class

408

409 /* End of file DB_result.php */

410 /* Location: ./system/database/DB_result.php */

prg.test.php (https://github.com/manubamba/cakephp-search-plugin-v1.1.git) PHP · 373 lines

1 <?php

2 /**

3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)

7 *

8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)

9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

10 */

11

83 * @param string $url

84 * @param string $status

85 * @param string $exit

86 * @return void

87 */

88 public function redirect($url, $status = NULL, $exit = true) {

89 $this->redirectUrl = $url;

90 }

class-wc-report-taxes-by-date.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 264 lines

2

3 if ( ! defined( 'ABSPATH' ) ) {

4 exit; // Exit if accessed directly

5 }

6

33 <a

34 href="#"

35 download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"

36 class="export_csv"

37 data-export="table"

212 <th class="total_row"><?php _e( 'Number of orders', 'woocommerce' ); ?></th>

213 <th class="total_row"><?php _e( 'Total sales', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Order total' field within your orders.", 'woocommerce' ) ); ?></th>

214 <th class="total_row"><?php _e( 'Total shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Shipping total' field within your orders.", 'woocommerce' ) ); ?></th>

215 <th class="total_row"><?php _e( 'Total tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>

216 <th class="total_row"><?php _e( 'Net profit', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Total sales minus shipping and tax.', 'woocommerce' ) ); ?></th>

217 </tr>

218 </thead>

wc-meta-box-functions.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 223 lines

1 <?php

2 /**

3 * WooCommerce Meta Box Functions

10

11 if ( ! defined( 'ABSPATH' ) ) {

12 exit; // Exit if accessed directly

13 }

14

Manager.php (https://github.com/max-shamaev/swarm.git) PHP · 482 lines

1 <?php

2 // vim: set ts=4 sw=4 sts=4 et:

3

4 /**

5 * PHP version 5.3.0

6 *

7 * @author ____author____

234 $this->renewProcessName();

235

236 $exitWorker = false;

237

238 while ($this->isAlive()) {

239 if (!$this->checkWorkers()) {

240 $exitWorker = true;

241 break;

242 }

content.php (https://github.com/livinglab/openlab.git) PHP · 204 lines

1 <?php

2 if (!defined("ABSPATH")) {

3 exit();

201 </div>

202 </div>

203 <?php

204 }

class-cp-interactions-cluster.php (https://gitlab.com/dev73/clusterpress) PHP · 345 lines

1 <?php

2 /**

3 * Interactions Cluster.

9 */

10

11 // Exit if accessed directly

12 defined( 'ABSPATH' ) || exit;

CodeUnitFindingVisitor.php (https://gitlab.com/jjpa2018/dashboard) PHP · 323 lines

1 <?php declare(strict_types=1);

2 /*

3 * This file is part of phpunit/php-code-coverage.

4 *

5 * (c) Sebastian Bergmann <sebastian@phpunit.de>

29 use PhpParser\NodeVisitorAbstract;

30 use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;

31

32 /**

122 $traverser = new NodeTraverser;

123

124 $cyclomaticComplexityCalculatingVisitor = new CyclomaticComplexityCalculatingVisitor;

125

126 $traverser->addVisitor($cyclomaticComplexityCalculatingVisitor);

129 $traverser->traverse($nodes);

130

131 return $cyclomaticComplexityCalculatingVisitor->cyclomaticComplexity();

132 }

133

class-wc-rest-stripe-account-keys-controller.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 232 lines

1 <?php

2 /**

3 * Class WC_REST_Stripe_Account_Keys_Controller

4 */

5

6 defined( 'ABSPATH' ) || exit;

7

8 /**

field_link_color.php (https://gitlab.com/rubengrb/ws.vidrialum) PHP · 207 lines

1 <?php

2

3 /**

21 */

22

23 // Exit if accessed directly

24 if ( ! defined( 'ABSPATH' ) ) {

25 exit;

Form.php (https://github.com/tquensen/MiniMVC.git) PHP · 363 lines

1 <?php

2

3 class MiniMVC_Form

266

267 header('Location: ' . $url);

268 exit;

269 }

270

274

275 header('Location: ' . $url);

276 exit;

277 }

278

347 // $t = MiniMVC_Registry::getInstance()->helper->i18n->get('_form');

348 // $response = array('status' => false, 'message' => $t->errorAjaxMissingField);

349 // exit;

350 // } elseif (!$field = $this->getElement($_POST['_validateField'])) {

351 // $t = MiniMVC_Registry::getInstance()->helper->i18n->get('_form');

User_agent.php (https://gitlab.com/sittipongwork/impro_dashboard) PHP · 550 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.1.6 or newer

6 *

7 * @package CodeIgniter

86 private function _load_agent_file()

87 {

88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))

89 {

90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');

91 }

92 elseif (is_file(APPPATH.'config/user_agents.php'))

93 {

94 include(APPPATH.'config/user_agents.php');

config.class.php (https://github.com/baigoStudio/baigoSSO.git) PHP · 427 lines

1 <?php

2 /*-----------------------------------------------------------------

3 !!!!警告!!!!

8

9 // 不能非法包含或直接执行

10 defined('IN_GINKGO') or exit('Access denied');

11

12 // 配置管理类

353 public static function write($path, $value = '') {

354 if (is_array($value)) {

355 $_str_outPut = '<?php return ' . var_export($value, true) . ';';

356 } else if (is_numeric($value)) {

357 $_str_outPut = '<?php return ' . $value . ';';

358 } else if (is_string($value)) {

359 $_str_outPut = '<?php return \'' . $value . '\';';

360 }

361

vid_camara_axispresetpos.control.php (https://gitlab.com/talueses/SIPVE) PHP · 221 lines

1 <?php

2 /*******************************************************************************\

3 * @copyright

36 \*******************************************************************************/

37 ?>

38 <?php

39 require_once "../model/vid_camara_axispresetpos.model.php"; // Class MODEL VidCamaraAxispresetpos()

40 require_once "../../inicio/controller/controller.php";// Class CONTROL Controller()

41

42 /**

46 class ControlVidCamaraAxispresetpos extends Controller{

47 /**

48 * @var string mensaje de exito o error

49 */

50 var $mensaje = null;

XmlImportTemplateParser.php (https://gitlab.com/najomie/fit-hippie) PHP · 444 lines

1 <?php

2 /**

3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>

5 */

6

7 require_once dirname(__FILE__) . '/ast/XmlImportAstSequence.php';

8 require_once dirname(__FILE__) . '/ast/XmlImportAstPrint.php';

9 require_once dirname(__FILE__) . '/ast/XmlImportAstText.php';

10 require_once dirname(__FILE__) . '/ast/XmlImportAstWith.php';

11 require_once dirname(__FILE__) . '/ast/XmlImportAstForeach.php';

12 require_once dirname(__FILE__) . '/ast/XmlImportAstIf.php';

13 require_once dirname(__FILE__) . '/ast/XmlImportAstMath.php';

14 require_once dirname(__FILE__) . '/ast/XmlImportAstSpintax.php';

StyleController.php (https://bitbucket.org/sebastien247/creativefolio.git) PHP · 307 lines

1 <?php

2

3 namespace CreativeFolio\EditorBundle\Controller;

91 }

92

93 //exit;//return false;

94

95 return $this->render('EditorBundle:Style:new.html.twig', array(

197 $em->flush();*/

198

199 exit; //return $this->redirect($this->generateUrl('style_edit', array('id' => $id)));

200 //}

201 }

203 var_dump("not");

204

205 exit;

206 }

207

table_torch.php (https://github.com/splitfeed/Table-Torch.git) PHP · 374 lines

1 <?php

2

3 if (! defined('BASEPATH')) exit('No direct script access');

20 'key'=>'' );

21

22 //php 5 constructor

23 function __construct() {

24

Reports.php (https://gitlab.com/dmsapiens/physicians) PHP · 327 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Reports extends CI_Controller {

40 }

41 echo $h;

42 exit;

43 }

44

308 header( 'Content-Type: text/csv;charset=utf-8' );

309 header( 'Content-Disposition: attachment;filename=report'.$filename);

310 $fp = fopen('php://output', 'w');

311

312 foreach($result as $row)

323

324 fclose($fp);

325 exit;

326 }

327 }

Segmenter.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 209 lines

1 <?php

2 /**

3 * Class for adding segmenting support without cluttering the data stores.

6 namespace Automattic\WooCommerce\Admin\API\Reports\Products\Stats;

7

8 defined( 'ABSPATH' ) || exit;

9

10 use \Automattic\WooCommerce\Admin\API\Reports\Segmenter as ReportsSegmenter;

Cdn_CloudFrontFsd_Popup.php (https://gitlab.com/karlen/ayo_wp) PHP · 345 lines

1 <?php

2 namespace W3TC;

3

33 ) );

34

35 include W3TC_DIR . '/Cdn_CloudFrontFsd_Popup_View_Intro.php';

36 exit();

48 'error_message' => 'Can\'t authenticate: Access Key or Secret not valid'

49 ) );

50 exit();

51 }

52

59 'error_message' => $error_message

60 ) );

61 exit();

62 }

63

auth_lang.php (https://gitlab.com/jankube/CodeIgniter-Ion-Auth) PHP · 165 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * Name: Auth Lang - English

i2c-stu300.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 1057 lines ✨ Summary

This C code implements a driver for a ST Microelectronics DDC (Display Controller) I2C adapter, which is used to connect display devices to a system’s motherboard. The driver provides a platform-independent interface for accessing the I2C bus and managing the adapter’s hardware and software settings. It is designed to work with various systems that use this type of adapter.

676 if (msg->len == 0) {

677 ret = -EINVAL;

678 goto exit_disable;

679 }

680

691 ret = stu300_wait_while_busy(dev);

692 if (ret != 0)

693 goto exit_disable;

694

695 if (attempts)

701 ret = stu300_init_hw(dev);

702 if (ret)

703 goto exit_disable;

704

705 /* Send a start condition */

IncidenceGraph.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code outputs a documentation page for the IncidenceGraph concept in Boost, a C++ library. It provides an interface for efficient access to out-edges of each vertex in a graph, including associated types, valid expressions, and complexity guarantees. The page includes notes on implementation requirements and constraints for algorithms using this concept.

129 <P>

130

131 <H3>Complexity guarantees</H3>

132

133 <P>

cpu-hotplug.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 391 lines

386 *)

387 debug_mesg CPU $ACTION event not supported

388 exit 1

389 ;;

390 esac

Platform.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 242 lines ✨ Summary

This C++ code provides a virtual memory management system for operating systems, allowing for allocation and deallocation of memory blocks with specific permissions and alignment requirements. It supports both Windows and POSIX platforms, using different APIs to achieve similar functionality. The code includes helper functions for rounding up to the nearest power of two and checking alignment.

45 "*** %s\n", file, line, exp);

46

47 exit(1);

48 }

49

vt8231.c (http://photon-android.googlecode.com/svn/) C · 1013 lines ✨ Summary

This C code implements a Linux kernel driver for the VT8231 chip, which is a chipset used in some older motherboards. The driver reads sensor data from the chip and provides it to the system, allowing users to monitor temperatures, voltages, and other system parameters. It also handles device initialization, registration, and unregistration with the PCI bus.

789 }

790

791 static int __devexit vt8231_remove(struct platform_device *pdev)

792 {

793 struct vt8231_data *data = platform_get_drvdata(pdev);

904 err = -ENOMEM;

905 printk(KERN_ERR "vt8231: Device allocation failed\n");

906 goto exit;

907 }

908

994 }

995

996 static void __exit sm_vt8231_exit(void)

997 {

998 pci_unregister_driver(&vt8231_pci_driver);

CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2241 lines

87 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).

88

89 - PHP mode now recognizes <script language="PHP">...</script>.

90

91 - Updated Omnimark syntax highlighting (Lionel Fiol).

892 modes.

893

894 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.

895

896 }}}

jedit_keys.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 228 lines

28 open-file.shortcut=C+o

29 print.shortcut=C+p

30 exit.shortcut=C+q

31 # C+r is a prefix

32 save.shortcut=C+s

Desktop.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 504 lines ✨ Summary

This Java class represents a desktop application’s UI component, managing its layout, components, and interactions. It handles events such as hover, selection, and modal windows, updating the UI accordingly. The class provides methods for getting and setting various properties, validating the UI, and retrieving specific components or layers within the UI.

196

197 } else if (comp != this.hoverComponent) {

198 this.hoverComponent.processTouchExited();

199 comp.processTouchEntered();

200 }

202 } else {

203 if (this.hoverComponent != null) {

204 this.hoverComponent.processTouchExited();

205 }

206 }

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.

35

36 void NodeGen::enterScope(SSelfScope* s) { scopeStack->push(s); }

37 void NodeGen::exitScope (SSelfScope* s) {

38 assert(currentScope() == s, "exiting wrong scope");

local_date_time.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

The code displays a date and time in two formats:

  • 2004-Aug-30 10:00:00 EDT (using locale settings)
  • 2004-Aug-30 10:00:00 Eastern Daylight Time (with time zone information)

15 }catch(data_not_accessible dna) {

16 std::cerr << "Error with time zone data file: " << dna.what() << std::endl;

17 exit(EXIT_FAILURE);

18 }catch(bad_field_count bfc) {

19 std::cerr << "Error with time zone data file: " << bfc.what() << std::endl;

20 exit(EXIT_FAILURE);

21 }

22

ConsoleInstall.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 139 lines ✨ Summary

This Java code performs a text-only installation of an application. It prompts the user to select components to install, sets configuration options for operating system tasks, and starts the installation process in a separate thread. The output displays the selected installation directory, component choices, and progress updates during the installation.

122 {

123 System.err.println("\nEOF in input!");

124 System.exit(1);

125 // can't happen

126 throw new InternalError();

131 {

132 System.err.println("\nI/O error: " + io);

133 System.exit(1);

134 // can't happen

135 throw new InternalError();

performance_binary.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

This C++ code tests serialization and deserialization of a custom class A using Boost.Serialization. It creates an instance of A, serializes it to a temporary file, then deserializes it back into another instance of A. The test verifies that the original and deserialized instances are equal, ensuring that the serialization process works correctly.

91 BOOST_CHECK(a == a1);

92 std::remove(testfile);

93 return EXIT_SUCCESS;

94 }

95

regress-472450-01.js (git://github.com/zpao/v8monkey.git) JavaScript · 65 lines ✨ Summary

This JavaScript code tests a specific assertion error related to stack management in a JavaScript engine, specifically regarding the relationship between StackBase(fp) and blockDepth. It sets up a test environment with JIT (Just-In-Time) compilation enabled and disabled, then runs a series of functions to trigger the assertion. The expected output is an empty string, indicating that the assertion should not be triggered.

62 reportCompare(expect, actual, summary);

63

64 exitFunc ('test');

65 }

66

CommandoDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 504 lines ✨ Summary

This Java code defines a graphical user interface (GUI) for managing command-line scripts. It consists of a settings pane, an action handler, and a text area pane. The GUI allows users to load, edit, and execute command-line scripts, with features such as syntax highlighting and line wrapping. The code uses various Java components and event listeners to handle user interactions and update the GUI accordingly.

189 {

190 // user has already seen the BeanShell error,

191 // so just exit

192 return;

193 }

343 {

344 // user has already seen the BeanShell error,

345 // so just exit

346 return;

347 }

FileVFS.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 687 lines ✨ Summary

This Java code implements a file system view for a text editor, allowing users to interact with files and directories on their local file system. It provides methods for creating input/output streams, saving files, setting permissions, and preserving file permissions. The code also handles Unix-specific commands like chmod and ls.

664 // waitFor() hangs on some Java

665 // implementations.

666 /* int exitCode = process.waitFor();

667 if(exitCode != 0)

668 Log.log(Log.NOTICE,FileVFS.class,"chmod exited with code " + exitCode); */

669 }

670

GalleryView.java (https://bitbucket.org/atchariya/nokia.git) Java · 290 lines

56 addCommand(Commands.MENU_ABOUT);

57 addCommand(Commands.MENU_HELP);

58 addCommand(Commands.MENU_EXIT);

59 addCommand(Commands.EXIT);

78 midlet.viewForward(midlet.getHelpView());

79 midlet.getCameraView().setCategoryBarInvisible();

80 } else if (command == Commands.MENU_EXIT || command == Commands.EXIT) {

81 midlet.destroyApp(true);

82 }

mbx.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 351 lines ✨ Summary

This C code implements a mailbox system for Virtual Function (VF) communication on a hardware platform. It provides functions for sending and receiving messages between the PF (Physical Function) and VF, including locking and unlocking the mailbox to prevent race conditions. The code initializes the mailbox parameters and sets up the necessary operations for reading and writing messages.

120 s32 ret_val = -E1000_ERR_MBX;

121

122 /* exit if we either can't write or there isn't a defined timeout */

123 if (!mbx->ops.write || !mbx->timeout)

124 goto out;

regress-83532-001.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 71 lines

68 reportCompare('No Crash', 'No Crash', '');

69

70 exitFunc ('test');

71 }

72

Install.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 122 lines ✨ Summary

This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments to determine installation mode (text-only or non-interactive), loads configuration properties from “install.props”, and copies files to a specified output directory using a progress bar.

28 + javaVersion + ".");

29 System.err.println("This installer requires Java 1.3 or later.");

30 System.exit(1);

31 }

32

norwegian.qph (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 1005 lines

49 </phrase>

50 <phrase>

51 <source>auto-exit</source>

52 <target>automatisk avslutning</target>

53 </phrase>

251 </phrase>

252 <phrase>

253 <source>Exit</source>

254 <target>Avslutt</target>

255 </phrase>

elf.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 117 lines ✨ Summary

This C header file defines various constants and structures for ARM ELF (Executable and Linkable Format) files, including register definitions, architecture-specific flags, and functions for loading and executing programs. It also provides a way to set personality functions for atexit registration and loads implementation-specific libraries for optimization. The code is specific to the ARM architecture and its ELF file format.

107

108 /* When the program starts, a1 contains a pointer to a function to be

109 registered with atexit, as per the SVR4 ABI. A value of 0 means we

110 have no such handler. */

111 #define ELF_PLAT_INIT(_r, load_addr) (_r)->ARM_r0 = 0

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.

216 journal->j_task = NULL;

217 wake_up(&journal->j_wait_done_commit);

218 jbd_debug(1, "Journal thread exiting.\n");

219 return 0;

220 }

942 }

943

944 static void jbd2_stats_proc_exit(journal_t *journal)

945 {

946 remove_proc_entry("info", journal->j_proc_entry);

adjacent_find.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

77 * `ForwardRange`'s value type is convertible to `BinaryPredicate`'s first argument type and to `BinaryPredicate`'s second argument type.

78

79 [heading Complexity]

80

81 Linear. If `empty(rng)` then no comparisons are performed; otherwise, at most `distance(rng) - 1` comparisons.

au6610.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 259 lines ✨ Summary

This C code implements a Linux driver for the Alcor Micro AU6610 DVB-T USB2.0 device. It provides functionality for interacting with the device, including attaching frontend and tuner components, managing I2C communication, and handling USB operations. The code is part of the Linux kernel’s USB subsystem and is designed to work with the dvb_usb framework.

228 .name = "dvb_usb_au6610",

229 .probe = au6610_probe,

230 .disconnect = dvb_usb_device_exit,

231 .id_table = au6610_table,

232 };

244 }

245

246 static void __exit au6610_module_exit(void)

247 {

248 /* deregister this driver from the USB subsystem */

251

252 module_init(au6610_module_init);

253 module_exit(au6610_module_exit);

254

255 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");

HtmlParser.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 620 lines

99 e.printStackTrace();

100 }

101 System.exit(0);

102 }

103

smp.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 445 lines ✨ Summary

This C code is part of a Linux kernel implementation for Cavium SoC processors. It handles various tasks such as booting, resetting cores, and sending interrupts to secondary CPUs. The code provides platform-specific functions for managing CPU operations, including hotplug support, which allows adding or removing CPUs dynamically during runtime.

338 int coreid = cvmx_get_core_num();

339

340 idle_task_exit();

341 octeon_processor_boot = 0xff;

342 per_cpu(cpu_state, coreid) = CPU_DEAD;

regress-457824.js (git://github.com/zpao/v8monkey.git) JavaScript · 65 lines ✨ Summary

This JavaScript code is a test case for decompilation of a function call with a new object creation. It defines a function test that creates an anonymous function g which calls another function a(b).c. The test then compares the generated source code of g with the expected output to ensure it matches the original function call.

62 compareSource(expect, actual, summary);

63

64 exitFunc ('test');

65 }

66

TODO.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 36 lines

19 - cvs commandos

20 - need <INIT> code block in commando files

21 - notify of process exit

22 - multiple-line env vars don't work

23 - see if an extra pattern can eat all javac errors

PluginJAR.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1746 lines ✨ Summary

This Java code defines a class that manages plugins for a text editor. It reads and writes plugin data to a file, including plugin names, URLs, boolean flags, and string values. The class also handles plugin installation, uninstallation, and updates. It uses a proprietary format for storing plugin data, which is specific to the text editor’s architecture.

835 * @since jEdit 4.2pre3

836 */

837 public void deactivatePlugin(boolean exit)

838 {

839 if(!activated)

840 return;

841

842 if(!exit)

843 {

844 // buffers retain a reference to the fold handler in

879

880 EditBus.send(new PluginUpdate(this,

881 PluginUpdate.DEACTIVATED,exit));

882

883 if(!exit)

ServerKiller.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 134 lines ✨ Summary

This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.

78

79 // we can't close the socket cleanly, because we want

80 // to wait for complete exit, and then it's too late.

81 // so the socket is closed when the JVM is shut down.

82 String script;

83 script = "jEdit.exit(null,true);\n";

84

85 out.writeUTF(script);

119 /**

120 * try to connect to any running server instance and close it.

121 * exit with an error code on failure, but not if no server was found.

122 */

123 public static void main(String[] args)

mv88e6123_61_65.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 448 lines ✨ Summary

This C code defines a driver for a network interface card (NIC) model 88e6123-61-65. It provides functions for probing, setting up, and managing the NIC’s configuration, as well as retrieving statistics and strings related to its operation. The code is part of the Linux kernel’s networking subsystem and allows userspace applications to interact with the NIC.

441 module_init(mv88e6123_61_65_init);

442

443 static void __exit mv88e6123_61_65_cleanup(void)

444 {

445 unregister_switch_driver(&mv88e6123_61_65_switch_driver);

446 }

447 module_exit(mv88e6123_61_65_cleanup);

448

HistoryTextField.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 423 lines ✨ Summary

This Java code defines a custom HistoryTextField class that extends JTextField. It provides functionality for navigating through a history of text input, including backward and forward searching, popup menus, and keyboard shortcuts. The class uses an inner class MouseHandler to handle mouse events and an inner class HistoryBorder to draw the border of the text field with a down arrow icon.

313

314 break;

315 case MouseEvent.MOUSE_EXITED:

316 setCursor(Cursor.getDefaultCursor());

317 super.processMouseEvent(evt);

vm.rst (git://github.com/clawpack/clawpack-4.x.git) ReStructuredText · 251 lines ✨ Summary

This text provides instructions on how to set up and use a virtual machine (VM) for running a Linux environment, specifically XUbuntu 9.10. It covers topics such as installing guest additions, capturing the mouse pointer, resizing the VM window, setting the host key, and troubleshooting issues. The goal is to provide a step-by-step guide for users to set up and use the virtual machine for their needs.

95

96 Click the green running man in the lower left corner and then click

97 *"Shut Down"* to exit the VM. You can also *"Suspend"*, which preserves

98 the memory state and is better if a long job is running in the VM

99 that you want to restart later where it left off.

basics.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 297 lines

94 <para>

95 <guimenu>View</guimenu>&gt;<guimenuitem>Close View</guimenuitem> closes the

96 current view. If only one view is open, closing it will exit jEdit,

97 unless background mode is on; see <xref linkend="starting" /> for information

98 about starting jEdit in background mode.

nls_iso8859-9.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 274 lines ✨ Summary

This C code defines a Unicode character mapping for the ISO-8859-9 encoding scheme, which is used to represent non-English characters in Windows systems. It registers this mapping with the Linux kernel’s NLS (Normalization and Language Support) system, allowing it to be used by applications that require Unicode support. The code also includes initialization and exit functions to register and unregister the mapping with the kernel.

263 }

264

265 static void __exit exit_nls_iso8859_9(void)

266 {

267 unregister_nls(&table);

269

270 module_init(init_nls_iso8859_9)

271 module_exit(exit_nls_iso8859_9)

272

273 MODULE_LICENSE("Dual BSD/GPL");

ada95.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 225 lines

160 <KEYWORD2>end</KEYWORD2>

161 <KEYWORD2>exception</KEYWORD2>

162 <KEYWORD2>exit</KEYWORD2>

163 <KEYWORD2>for</KEYWORD2>

164 <KEYWORD2>goto</KEYWORD2>

Cell.h (https://freespeech.svn.sourceforge.net/svnroot/freespeech) C++ Header · 86 lines ✨ Summary

This C++ header file defines a class Cell that represents a node in a decision tree, and a class MutualInformation. The Cell class has methods for splitting data into child nodes, finding thresholds, and calculating template features. It also includes an operator overload for input/output streams. The MutualInformation class calculates mutual information between two variables.

54 Cell(){}

55

56 Cell (const Cell &) {cerr << "don't call the Cell copy constructor\n"; exit(1);}

57

58 ~Cell()

autogen.sh (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Shell · 146 lines ✨ Summary

This shell script checks for required packages (autoconf, libtool, and gettext) to compile a GNU project, specifically Gnome. It then runs configure with default flags, generates makefiles, and compiles the project if necessary. If any required package is missing, it displays an error message and exits. The script also handles cases where no arguments are provided or when the configure process fails.

65

66 if test "$DIE" -eq 1; then

67 exit 1

68 fi

69

140 echo Running $srcdir/configure $conf_flags "$@" ...

141 $srcdir/configure $conf_flags "$@" \

142 && echo Now type \`make\' to compile $PKG_NAME || exit 1

143 else

144 echo Skipping configure process.

memset.S (http://omnia2droid.googlecode.com/svn/trunk/) Assembly · 363 lines ✨ Summary

This Assembly code implements a memset function, which fills a specified area of memory with a given value. The code uses various addressing modes and instructions to handle aligned and unaligned byte stores, as well as different loop conditions for terminating early. It also includes conditional branches and jump instructions to optimize performance.

297 cmp.eq p_scr, p0 = cnt, r0

298 tbit.nz.unc p_y, p0 = cnt, 2 // should we terminate with a st4 ?

299 (p_scr) br.cond.dpnt.few .restore_and_exit

300 ;; }

301 { .mib

311 (p_y) st1 [ptr1] = value

312 ;; }

313 .restore_and_exit:

314 { .mib

315 nop.m 0

tsql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1020 lines

113 <KEYWORD1>END</KEYWORD1>

114 <KEYWORD1>ERRLVL</KEYWORD1>

115 <KEYWORD1>ERROREXIT</KEYWORD1>

116 <KEYWORD1>ESCAPE</KEYWORD1>

117 <KEYWORD1>EXCEPT</KEYWORD1>

118 <KEYWORD1>EXEC</KEYWORD1>

119 <KEYWORD1>EXECUTE</KEYWORD1>

120 <KEYWORD1>EXIT</KEYWORD1>

121 <KEYWORD1>FAST_FORWARD</KEYWORD1>

122 <KEYWORD1>FETCH</KEYWORD1>

160 <KEYWORD1>MAX</KEYWORD1>

161 <KEYWORD1>MIN</KEYWORD1>

162 <KEYWORD1>MIRROREXIT</KEYWORD1>

163 <KEYWORD1>NATIONAL</KEYWORD1>

164 <KEYWORD1>NEXT</KEYWORD1>

word_count_functor.flex (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

39 if (NULL == yyin) {

40 fprintf(stderr, "Couldn't open input file!\n");

41 exit(-1);

42 }

43

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 503 lines

144 <KEYWORD1>EXCLUSIVE</KEYWORD1>

145 <KEYWORD1>EXECUTE</KEYWORD1>

146 <KEYWORD1>EXIT</KEYWORD1>

147 <KEYWORD1>EXTERNAL</KEYWORD1>

148 <KEYWORD1>FALSE</KEYWORD1>

EditorExiting.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 43 lines ✨ Summary

This Java class represents a message sent before an editor exits. It extends another class EBMessage and has a constructor that takes an EBComponent as its source. The message is part of the jEdit application, which is a text editor. When the editor is about to exit, this message is sent to notify other parts of the application.

1 /*

2 * EditorExiting.java - Message sent before the editor exits

3 * Copyright (C) 2000 Slava Pestov

4 *

24

25 /**

26 * Message sent just before jEdit exits.

27 * @author Slava Pestov

28 * @version $Id: EditorExiting.java 12504 2008-04-22 23:12:43Z ezust $

30 * @since jEdit 2.3pre2

31 */

32 public class EditorExiting extends EBMessage

33 {

34 /**

35 * Creates a new editor exiting message.

36 * @param source The message source

37 */

FileVFS.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 505 lines ✨ Summary

This Java code implements a file system interface for a text editor, allowing users to interact with files on their local machine. It provides methods for creating, reading, writing, and deleting files, as well as managing file permissions and updating the file system when changes are made. The code is designed to work on Unix-like systems, but does nothing on non-Unix platforms.

486 process.getOutputStream().close();

487 process.getErrorStream().close();

488 int exitCode = process.waitFor();

489 if(exitCode != 0)

490 Log.log(Log.NOTICE,FileVFS.class,"chmod exited with code " + exitCode);

491 }

492

after.groovy.template (https://bitbucket.org/nbargnesi/idea.git) Unknown · 15 lines

1 swing.edt {

2 frame(title:'Frame', defaultCloseOperation:JFrame.EXIT_ON_CLOSE, pack:true, show:true) {

3 vbox {

4 textlabel = label("Click the button!")

EnhancedMenuItem.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 214 lines ✨ Summary

This Java class, EnhancedMenuItem, extends JMenuItem to add support for multi-key shortcuts in a text editor. It creates a custom menu item with an optional accelerator string and displays it on the screen. The class also handles mouse events, such as hover and click, to provide additional functionality like displaying a message when the user hovers over the menu item.

201 }

202

203 public void mouseExited(MouseEvent evt)

204 {

205 if(msgSet)

vbscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 740 lines

81 <KEYWORD1>wend</KEYWORD1>

82

83 <!-- Closing, Exit Statements -->

84 <KEYWORD1>exit</KEYWORD1>

apm-power.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 129 lines ✨ Summary

This C code implements an input power event handler for Linux, specifically bridging the APM (Advanced Power Management) system to the Linux input subsystem. It registers a custom input device that responds to power-related events, such as suspend requests, and forwards them to the APM system. This allows the APM system to interact with the Linux kernel’s power management features.

116 }

117

118 static void __exit apmpower_exit(void)

119 {

120 input_unregister_handler(&apmpower_handler);

122

123 module_init(apmpower_init);

124 module_exit(apmpower_exit);

125

126 MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>");

jedit_gui.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 2648 lines

210 page-setup \

211 - \

212 exit

213 file.label=$File

214 new-file.label=$New

247 # Print selection not yet implemented

248 #print-selection.label=Prin$t Selection...

249 exit.label=E$xit

250

251 #{{{ Recent Files menu

macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 921 lines

352 text item or <constant>null</constant> representing no selection.

353 Any further use of this fragment would have to test the value of

354 <varname>result</varname> and likely exit from the macro if the

355 value equaled <constant>null</constant>.</para>

356

pinfo.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 110 lines

26 \ LONG-MANUAL-LINKS FILTER-0xB7

27 \ QUIT-CONFIRMATION QUIT-CONFIRM-DEFAULT

28 \ CLEAR-SCREEN-AT-EXIT CALL-READLINE-HISTORY

29 \ HIGHLIGHTREGEXP SAFE-USER SAFE-GROUP

30

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 398 lines

111 <KEYWORD1>EXCEPTION_INIT</KEYWORD1>

112 <KEYWORD1>EXCLUSIVE</KEYWORD1>

113 <KEYWORD1>EXIT</KEYWORD1>

114 <KEYWORD1>FALSE</KEYWORD1>

115 <KEYWORD1>FETCH</KEYWORD1>

LuaProjectTemplate.java (https://bitbucket.org/Tsiannian/cocos2d-x.git) Java · 68 lines

59

60 public boolean onKeyDown(int keyCode, KeyEvent event) {

61 // exit program when key back is entered

62 if (keyCode == KeyEvent.KEYCODE_BACK) {

63 android.os.Process.killProcess(android.os.Process.myPid());

TextAreaDropHandler.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 101 lines ✨ Summary

This Java class, TextAreaDropHandler, extends DropTargetAdapter to handle drag and drop operations within a text area in a JEdit application. It logs debug information, saves the current buffer and caret position when dragging begins, moves the caret position during drag over, resets the buffer and caret position when dragging ends, and drops the dragged content into the text area.

75 } //}}}

76

77 //{{{ dragExit() method

78 @Override

79 public void dragExit(DropTargetEvent dtde)

80 {

81 Log.log(Log.DEBUG,this,"Drag exit");

82 textArea.setDragInProgress(false);

83 //textArea.getBuffer().endCompoundEdit();

WebKitPreBuild.cmd (https://bitbucket.org/ultra_iter/qt-vtl.git) Batch · 11 lines

3 cmd /c

4 if exist "%CONFIGURATIONBUILDDIR%\buildfailed" grep XX%PROJECTNAME%XX "%CONFIGURATIONBUILDDIR%\buildfailed"

5 if errorlevel 1 exit 1

6 echo XX%PROJECTNAME%XX > "%CONFIGURATIONBUILDDIR%\buildfailed"

7

dist.sh (http://jplex.googlecode.com/svn/trunk/) Shell · 63 lines ✨ Summary

This shell script generates a distribution package for the jPlex project, including compiled JavaScript files and demo files. It checks if a release already exists, then compiles the JavaScript code using yuicompressor, copies demo files, removes SVN directories, and moves files to the final output folder. The resulting package is named after the version number and revision.

25 if [ ! $? = 0 ]; then

26 echo "This release has already been dist"

27 exit 2;

28 fi

29

41 cd ../demo/stable/

42 mkdir static

43 php ../../dist/dist_demos.php

44

45 cp -R assets libs static/;

CastaliaPasLexTypes.pas (git://github.com/moparisthebest/Simba.git) Pascal · 322 lines ✨ Summary

This Pascal code defines a set of token types and functions for parsing source code. It includes various keywords, operators, and symbols used in programming languages. The TokenName function returns the name of a token as a string, while IsTokenIDJunk checks if a given token ID is considered junk or invalid. The code also defines a custom data type TmwPasLexStatus to store parsing information.

106 tokError,

107 tokExcept,

108 tokExit, //JThurman 2004-11-8 (flow control routine)

109 tokExport,

110 tokExports,

NavigationFilterDemo.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 205 lines

104 {

105 if (e.getActionCommand().equals("CLOSE"))

106 System.exit(0);

107

108 }

121 frame.pack();

122 frame.setVisible(true);

123 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

124 }

125 });

TreeDemo.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 318 lines

263 if (e.getActionCommand().equals("CLOSE"))

264 {

265 System.exit(0);

266 }

267 }

example.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 50 lines ✨ Summary

The code outputs messages indicating when objects are created and destroyed, such as “VectorArray new: self=%p” and “VectorArray delete: self=%p”. It also handles array index out of bounds errors with a panic message and exits the program. Additionally, it prints the size of the VectorArray object.

39 if ((index < 0) || (index >= maxsize)) {

40 printf("Panic! Array index out of bounds.\n");

41 exit(1);

42 }

43 return items[index];

upload.php (http://rorptm.googlecode.com/svn/trunk/) PHP · 107 lines ✨ Summary

This PHP script is a file uploader for FCKeditor, a text editor for internet. It checks if the uploaded file meets certain criteria (e.g., valid type, allowed extension) and renames the file if another one with the same name already exists in the target directory. If successful, it sends a JavaScript notification to the parent window with the upload results.

1 <?php

2 /*

3 * FCKeditor - The text editor for internet

5 *

6 * Licensed under the terms of the GNU Lesser General Public License:

7 * http://www.opensource.org/licenses/lgpl-license.php

8 *

9 * For further information visit:

12 * "Support Open Source software. What about a donation today?"

13 *

14 * File Name: upload.php

15 * This is the "File Uploader" for PHP.

33 // Check if this uploader has been enabled.

34 if ( !$Config['Enabled'] )

35 SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;

36

37 // Check if the file has been correctly uploaded.

keybindings.properties (git://github.com/greedy/scala-llvm.git) Properties File · 71 lines ✨ Summary

This properties file defines keybinding mappings for JLine, a terminal emulator. It maps various keyboard shortcuts to specific actions, such as moving the cursor, deleting characters, and navigating through history buffers. The mappings allow users to customize their terminal experience with keyboard shortcuts, making it easier to perform common tasks like editing lines, scrolling through history, and searching for previous commands.

9

10 # CTRL-D: close out the input stream

11 4=EXIT

12

13 # CTRL-E: move the cursor to the end of the line

director_thread_runme.java (https://swig.svn.sourceforge.net/svnroot/swig) Java · 37 lines ✨ Summary

This Java code loads a native library called “director_thread” and attempts to run a class named director_thread_Derived that extends another class Foo. The run() method is called, which presumably performs some operation, but it causes an exception due to the setVal(getVal() - 1) line.

10 } catch (UnsatisfiedLinkError e) {

11 System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);

12 System.exit(1);

13 }

14 }

msm_v4l2.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 798 lines ✨ Summary

This C code implements a V4L2 (Video for Linux) driver for MSM (Mobile Station Modem) devices, specifically designed for Android-based smartphones. It registers a video device with the kernel and provides various functions for controlling the camera, overlay, and other video-related operations. The code also includes initialization and exit routines to manage the driver’s lifecycle.

772 }

773

774 static void __exit msm_v4l2_exit(void)

775 {

776 struct video_device *pvdev = g_pmsm_v4l2_dev->pvdev;

792

793 module_init(msm_v4l2_init);

794 module_exit(msm_v4l2_exit);

795

796 MODULE_DESCRIPTION("MSM V4L2 driver");

windfarm_pm81.c (http://photon-android.googlecode.com/svn/) C · 814 lines ✨ Summary

This C code implements a thermal control system for Apple’s iMac G5 laptop. It monitors and controls the temperature of various components, such as the CPU, hard drive, and power supply, to prevent overheating. The system uses sensors and controls to adjust fan speeds and other settings to maintain optimal temperatures. It is designed to work with the Linux kernel and can be loaded as a module for use on compatible systems.

723 }

724

725 static int __devexit wf_smu_remove(struct platform_device *ddev)

726 {

727 wf_unregister_client(&wf_smu_events);

798 }

799

800 static void __exit wf_smu_exit(void)

801 {

802

806

807 module_init(wf_smu_init);

808 module_exit(wf_smu_exit);

809

810 MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");

bluecard_cs.c (http://photon-android.googlecode.com/svn/) C · 981 lines ✨ Summary

This C code implements a PCMCIA driver for a BlueCard device, which is a type of smart card reader. The driver provides configuration and control functions for the device, including opening and closing connections to the device, handling interrupts, and managing the device’s state. It also registers itself as a PCMCIA driver with the Linux kernel.

972

973

974 static void __exit exit_bluecard_cs(void)

975 {

976 pcmcia_unregister_driver(&bluecard_driver);

978

979 module_init(init_bluecard_cs);

980 module_exit(exit_bluecard_cs);

981

common.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 494 lines ✨ Summary

This C code initializes and configures various components for an IXP4xx SoC (System-on-Chip). It sets up the clock source, timer, and clock events to manage the system’s timing and scheduling. The code also configures the expansion bus size and registers devices with the Linux kernel. Overall, it provides a foundation for booting and running applications on an IXP4xx-based system.

4 * Generic code shared across all IXP4XX platforms

5 *

6 * Maintainer: Deepak Saxena <dsaxena@plexity.net>

7 *

8 * Copyright 2002 (c) Intel Corporation

kcapi_proc.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 315 lines ✨ Summary

This C code creates a set of system procedures (proc) for managing kernel drivers and their associated data. It sets up directories, creates files under those directories, and defines functions to read and display information about these files. The procedures are designed to be accessed through the Linux file system, allowing users to view and manage driver-related data.

302 }

303

304 void __exit

305 kcapi_proc_exit(void)

bp-core-cache.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 130 lines

1 <?php

2 /**

3 * Caching functions handle the clearing of cached objects and pages on specific

5 */

6

7 // Exit if accessed directly

8 if ( !defined( 'ABSPATH' ) ) exit;

hdlc.h (http://photon-android.googlecode.com/svn/) C++ Header · 132 lines ✨ Summary

This C header file provides a generic framework for HDLC (High-Level Data-Link Control) support on Linux systems. It defines structures and functions for managing HDLC devices, protocols, and operations, allowing hardware drivers to interact with the HDLC layer. The code is designed to be modular and extensible, enabling different protocols to be registered and used with the HDLC framework.

70 int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);

71

72 /* Must be used by hardware driver on module startup/exit */

73 #define register_hdlc_device(dev) register_netdev(dev)

74 void unregister_hdlc_device(struct net_device *dev);