100+ results for 'i++; source:Sourceforge'
Not the results you expected?
trigger_code.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 223 lines
bspdegelev.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 294 lines
bfont.c (https://ironhells.svn.sourceforge.net/svnroot/ironhells) C · 929 lines
wrapfunc.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 523 lines
✨ Summary
This C code is part of a compiler or interpreter for a programming language, specifically a wrapper function generator. It provides functions to print out wrapper functions, add local variable declarations, and check if local names have already been declared. The code uses a hash table to store local variables and their corresponding declarations.
This C code is part of a compiler or interpreter for a programming language, specifically a wrapper function generator. It provides functions to print out wrapper functions, add local variable declarations, and check if local names have already been declared. The code uses a hash table to store local variables and their corresponding declarations.
typemaps.i
(https://swig.svn.sourceforge.net/svnroot/swig)
Swig · 381 lines
✨ Summary
This Swig code is used to generate C++ wrappers for a reference-counted interface, likely a library or framework. It provides macros and directives to handle memory management, type conversions, and function overloading, allowing C++ developers to easily interface with the underlying reference-counted API. The output will be a set of C++ header files that can be used as a bridge between C/C++ code and the reference-counted library.
This Swig code is used to generate C++ wrappers for a reference-counted interface, likely a library or framework. It provides macros and directives to handle memory management, type conversions, and function overloading, allowing C++ developers to easily interface with the underlying reference-counted API. The output will be a set of C++ header files that can be used as a bridge between C/C++ code and the reference-counted library.
ASTLiteral.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 360 lines
✨ Summary
This Java class represents a literal token in an abstract syntax tree (AST) for a programming language. It encapsulates information about the type of token, its value, and provides methods to compare and hash tokens. The class overrides standard Object
methods like equals
, hashCode
, and toString
to provide custom behavior for AST nodes.
This Java class represents a literal token in an abstract syntax tree (AST) for a programming language. It encapsulates information about the type of token, its value, and provides methods to compare and hash tokens. The class overrides standard Object
methods like equals
, hashCode
, and toString
to provide custom behavior for AST nodes.
lklist.c (https://sdcc.svn.sourceforge.net/svnroot/sdcc) C · 1273 lines
shared_survey_bar_graph.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 816 lines
✨ Summary
This C code processes survey data from XML files, parsing and analyzing the results to generate graphs and text responses. It checks for multi-choice answers, sorts values, sets title elements, generates bar graphs, and creates text responses based on the parsed data. The output is stored in a new file with the same name as the input survey result file.
This C code processes survey data from XML files, parsing and analyzing the results to generate graphs and text responses. It checks for multi-choice answers, sorts values, sets title elements, generates bar graphs, and creates text responses based on the parsed data. The output is stored in a new file with the same name as the input survey result file.
219 while(choice->current)
220 {
221 i++;
222 choice->current = choice->current->next;
223 }
271 cs_set_value(name, tmp_value);
272 }
273 i++;
274 choice->current = choice->current->next;
275 }
307 nl_to_space(choice->current->choice);
308 cs_set_value(name, choice->current->choice);
309 i++;
310 choice->current = choice->current->next;
311 }
test_fakemon.c
(https://supermon.svn.sourceforge.net/svnroot/supermon)
C · 159 lines
✨ Summary
This C program uses a socket to send and receive S-expressions, a mathematical notation used for formal specification and verification. It creates a monhole, a socket-like interface, and sends updates and events to it, which are then received back. The program can be configured with various options, such as chunk size and sleep duration, to control the rate of sending and receiving data.
This C program uses a socket to send and receive S-expressions, a mathematical notation used for formal specification and verification. It creates a monhole, a socket-like interface, and sends updates and events to it, which are then received back. The program can be configured with various options, such as chunk size and sleep duration, to control the rate of sending and receiving data.
GenreTable.cpp (https://cdexos.svn.sourceforge.net/svnroot/cdexos) C++ · 236 lines
GString.cpp (https://lgi.svn.sourceforge.net/svnroot/lgi) C++ · 888 lines
wud.c (https://exult.svn.sourceforge.net/svnroot/exult) C · 327 lines
XMidiEventList.cpp (https://exult.svn.sourceforge.net/svnroot/exult) C++ · 233 lines
str_lib.cpp (https://cdexos.svn.sourceforge.net/svnroot/cdexos) C++ · 256 lines
Ring.cpp (https://xplanet.svn.sourceforge.net/svnroot/xplanet) C++ · 289 lines
ASCII_UCodeESC_CharStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 521 lines
✨ Summary
This Java class implements a character stream for parsing ASCII Unicode escape sequences. It provides methods to initialize, reinitialize, and advance through the stream, as well as adjust line and column numbers for token boundaries. The class also includes methods to get the current image string, suffix characters, and perform cleanup when done.
This Java class implements a character stream for parsing ASCII Unicode escape sequences. It provides methods to initialize, reinitialize, and advance through the stream, as well as adjust line and column numbers for token boundaries. The class also includes methods to get the current image string, suffix characters, and perform cleanup when done.
OGL_Blitter.cpp (https://marathon.svn.sourceforge.net/svnroot/marathon) C++ · 141 lines
shared_survey_page.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 315 lines
✨ Summary
This C code is part of a survey management system, responsible for setting up and populating survey content. It iterates through a linked list of survey data structures, applying different settings based on the tag name (e.g., title, likert, choice, text, memo). The set_survey_content
function updates the survey’s metadata, including ordering, colors, and other properties, to prepare it for display or submission.
This C code is part of a survey management system, responsible for setting up and populating survey content. It iterates through a linked list of survey data structures, applying different settings based on the tag name (e.g., title, likert, choice, text, memo). The set_survey_content
function updates the survey’s metadata, including ordering, colors, and other properties, to prepare it for display or submission.
read_options.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 184 lines
JavaCharStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 637 lines
✨ Summary
This Java code is a part of a lexical analyzer or scanner, responsible for breaking down input text into individual tokens such as keywords, identifiers, and symbols. It maintains state information about the current line and column numbers, adjusting them when necessary to accurately track token boundaries. The class provides methods to retrieve the token image, suffix, and buffers, as well as adjust the beginning line and column numbers for a given token start position.
This Java code is a part of a lexical analyzer or scanner, responsible for breaking down input text into individual tokens such as keywords, identifiers, and symbols. It maintains state information about the current line and column numbers, adjusting them when necessary to accurately track token boundaries. The class provides methods to retrieve the token image, suffix, and buffers, as well as adjust the beginning line and column numbers for a given token start position.
shared_grade_book_bar_graph_util.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 299 lines
✨ Summary
This C code is used to generate bar graphs for various data sets, including grades and student performance. It creates intervals based on a given number of points, updates counts for each interval, and sets values for the graph using these counts. The code also handles different types of data, such as letter grades and total scores, and generates scales and labels accordingly.
This C code is used to generate bar graphs for various data sets, including grades and student performance. It creates intervals based on a given number of points, updates counts for each interval, and sets values for the graph using these counts. The code also handles different types of data, such as letter grades and total scores, and generates scales and labels accordingly.
174 cs_set_value(name, temp);
176 i++;
178 }
206 snprintf(temp, MAX_TMP, "%d", ptr->count);
207 cs_set_value(name, temp);
208 i++;
209 }
210 cs_set_int_value("number_scales", i);
260 snprintf(temp, MAX_TMP, "%d", ptr->count);
261 cs_set_value(name, temp);
262 i++;
263 }
264 cs_set_int_value("number_scales", i);
wrapfunc.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 309 lines
✨ Summary
This C code defines a set of functions for creating and managing wrapper functions, which are used to wrap existing functions with additional functionality. The functions allow for the creation of new wrapper functions, adding local variable declarations, checking if variables have been declared, and pretty-printing the contents of a wrapper function.
This C code defines a set of functions for creating and managing wrapper functions, which are used to wrap existing functions with additional functionality. The functions allow for the creation of new wrapper functions, adding local variable declarations, checking if variables have been declared, and pretty-printing the contents of a wrapper function.
slptool.c (https://openslp.svn.sourceforge.net/svnroot/openslp) C · 382 lines
BdUtils.java (https://tfal.svn.sourceforge.net/svnroot/tfal) Java · 224 lines
std_vector.i
(https://swig.svn.sourceforge.net/svnroot/swig)
Swig · 569 lines
✨ Summary
This Swig code generates C++ wrappers for a Python library, allowing C++ code to interact with Python data types and vice versa. It defines classes and functions that map Python types (e.g., bool
, int
) to their corresponding C++ types (e.g., std::bool
, int
), enabling seamless communication between the two languages.
This Swig code generates C++ wrappers for a Python library, allowing C++ code to interact with Python data types and vice versa. It defines classes and functions that map Python types (e.g., bool
, int
) to their corresponding C++ types (e.g., std::bool
, int
), enabling seamless communication between the two languages.
115 $result = newRV_noinc((SV*) myav);
116 sv_2mortal($result);
117 argvi++;
118 }
119 %typecheck(SWIG_TYPECHECK_VECTOR) vector<T> {
285 $result = newRV_noinc((SV*) myav);
286 sv_2mortal($result);
287 argvi++;
288 }
289 %typecheck(SWIG_TYPECHECK_VECTOR) vector<T *> {
456 $result = newRV_noinc((SV*) myav);
457 sv_2mortal($result);
458 argvi++;
459 }
460 %typecheck(SWIG_TYPECHECK_VECTOR) vector<T> {
std_vector.i
(https://swig.svn.sourceforge.net/svnroot/swig)
Swig · 410 lines
✨ Summary
This Swig code generates C++ wrappers for a Perl module, allowing C++ code to interact with the Perl module’s functionality. It defines classes and functions that map to the Perl module’s API, providing a way for C++ code to call Perl functions and access its data structures, such as vectors and strings.
This Swig code generates C++ wrappers for a Perl module, allowing C++ code to interact with the Perl module’s functionality. It defines classes and functions that map to the Perl module’s API, providing a way for C++ code to call Perl functions and access its data structures, such as vectors and strings.
gib_function.c (https://quake.svn.sourceforge.net/svnroot/quake) C · 277 lines
Text.cxx (https://openjade.svn.sourceforge.net/svnroot/openjade) C++ · 411 lines
qplot.c
(https://rxvt.svn.sourceforge.net/svnroot/rxvt)
C · 258 lines
✨ Summary
This C code is a graphical plotting program that displays data points on a window, allowing users to interactively zoom and pan the plot. The program reads data from a file or standard input, calculates axis limits, and draws lines or dots representing the data. It also includes features like axis labels, title, and interactive zooming.
This C code is a graphical plotting program that displays data points on a window, allowing users to interactively zoom and pan the plot. The program reads data from a file or standard input, calculates axis limits, and draws lines or dots representing the data. It also includes features like axis labels, title, and interactive zooming.
Cell.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 419 lines
✨ Summary
This C++ code defines a Cell
class, which represents a node in a decision tree. It stores information about the cell’s dimension, number of classes, terminal status, and child nodes (if applicable). The class provides methods for setting numbering, determining belonging to a cell based on input features, calculating templates, printing the cell’s details, and reading from an input stream.
This C++ code defines a Cell
class, which represents a node in a decision tree. It stores information about the cell’s dimension, number of classes, terminal status, and child nodes (if applicable). The class provides methods for setting numbering, determining belonging to a cell based on input features, calculating templates, printing the cell’s details, and reading from an input stream.
timers.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 129 lines
csalerts_sdl.cpp (https://marathon.svn.sourceforge.net/svnroot/marathon) C++ · 179 lines
binary_tree.cc (https://sonicflow.svn.sourceforge.net/svnroot/sonicflow) C++ · 335 lines
Ubern.cc (https://octave.svn.sourceforge.net/svnroot/octave) C++ · 134 lines
edtfunc.c (https://octave.svn.sourceforge.net/svnroot/octave) C · 380 lines
gstring.cc (https://sdcc.svn.sourceforge.net/svnroot/sdcc) C++ · 520 lines
PickRecruiter.java (https://colossus.svn.sourceforge.net/svnroot/colossus) Java · 144 lines
Partitioner.java (https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx) Java · 152 lines
mvArray.java (https://maverick.svn.sourceforge.net/svnroot/maverick) Java · 288 lines
schoolday.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 240 lines
deltaT-gen.c (https://plplot.svn.sourceforge.net/svnroot/plplot) C · 171 lines
super_log_data.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 331 lines
✨ Summary
This C code is a CGI program that processes log data from a file, either by printing individual records or all records for a given user and log file. It takes input parameters such as username and log file name, and outputs a URL to continue the process if long processing is enabled. The output includes CSV files based on the input parameter.
This C code is a CGI program that processes log data from a file, either by printing individual records or all records for a given user and log file. It takes input parameters such as username and log file name, and outputs a URL to continue the process if long processing is enabled. The output includes CSV files based on the input parameter.
SimpleCharStream.java (https://colossus.svn.sourceforge.net/svnroot/colossus) Java · 508 lines
MessageReporter.cxx (https://openjade.svn.sourceforge.net/svnroot/openjade) C++ · 240 lines
Entity.cs (https://neo.svn.sourceforge.net/svnroot/neo) C# · 433 lines
e_search.h (https://edge.svn.sourceforge.net/svnroot/edge) C Header · 179 lines
nnai.c (https://plplot.svn.sourceforge.net/svnroot/plplot) C · 432 lines
TstAlleleSet.cpp (https://agcsp.svn.sourceforge.net/svnroot/agcsp) C++ · 159 lines
qplot.c
(https://rxvt.svn.sourceforge.net/svnroot/rxvt)
C · 250 lines
✨ Summary
This C code generates a graphical user interface for displaying and interacting with data points on a graph. It creates a window with an outline box, draws lines or dots to represent the data points, and allows the user to zoom in and out of the graph by clicking on specific coordinates. The program also displays axis labels and updates the display accordingly.
This C code generates a graphical user interface for displaying and interacting with data points on a graph. It creates a window with an outline box, draws lines or dots to represent the data points, and allows the user to zoom in and out of the graph by clicking on specific coordinates. The program also displays axis labels and updates the display accordingly.
aifffile.cpp (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ · 186 lines
__voronoi__.cc (https://octave.svn.sourceforge.net/svnroot/octave) C++ · 158 lines
cstreend.h (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ Header · 114 lines
mail-wrapper.c (https://mailman.svn.sourceforge.net/svnroot/mailman) C · 170 lines
m04adr.c (https://sdcc.svn.sourceforge.net/svnroot/sdcc) C · 114 lines
BaseRuleGrammar.java (https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx) Java · 412 lines
139 for (JSGFRule subrule : ruleAlternatives.getRules()) {
140 subrules[i] = convert (subrule);
141 i++;
142 }
143 float[] weights = null;
147 for (Float f : ruleAlternatives.getWeights()) {
148 weights[i] = f;
149 i++;
150 }
151 }
159 for (JSGFRule subrule : ruleSequence.getRules()) {
160 subrules[i] = convert (subrule);
161 i++;
162 }
163 return new RuleSequence(subrules);
post_outbox_info.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 280 lines
✨ Summary
This C code generates a CGI (Common Gateway Interface) script that retrieves and displays information about an email inbox and outbox for a specific course. It reads configuration settings, validates user credentials, and fetches data from databases to display attachment and recipient information. The script is designed to be used in a web application, likely as part of an email client or management system.
This C code generates a CGI (Common Gateway Interface) script that retrieves and displays information about an email inbox and outbox for a specific course. It reads configuration settings, validates user credentials, and fetches data from databases to display attachment and recipient information. The script is designed to be used in a web application, likely as part of an email client or management system.
117 snprintf(name, MAX_TMP_NAME, "to.%d.realname", i);
118 cs_set_value(name, pptr->data.realname);
119 i++;
120 }
121 }
146 snprintf(name, MAX_TMP_NAME, "cc.%d.realname", i);
147 cs_set_value(name, pptr->data.realname);
148 i++;
149 }
178 snprintf(name, MAX_TMP_NAME, "bcc.%d.realname", i);
179 cs_set_value(name, pptr->data.realname);
180 i++;
181 }
shared_survey_table.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 290 lines
✨ Summary
This C code generates a CSV file containing survey results from a list of records, each representing a record in a survey table. It processes the data by iterating through each record and its corresponding survey questions, printing out the relevant values to the CSV file. The output is formatted with quotes around field names and values, and includes a header row indicating question numbers.
This C code generates a CSV file containing survey results from a list of records, each representing a record in a survey table. It processes the data by iterating through each record and its corresponding survey questions, printing out the relevant values to the CSV file. The output is formatted with quotes around field names and values, and includes a header row indicating question numbers.
admin_list_students_in_courses.c
(https://manhattan.svn.sourceforge.net/svnroot/manhattan)
C · 257 lines
✨ Summary
This C code is part of a CGI program that manages course information and student enrollment. It reads course data from a database, updates configuration files, validates user permissions, and generates an HTML page displaying enrolled students in each course. The program can be accessed by authorized users (faculty or admin) and displays the list of students in courses for those users.
This C code is part of a CGI program that manages course information and student enrollment. It reads course data from a database, updates configuration files, validates user permissions, and generates an HTML page displaying enrolled students in each course. The program can be accessed by authorized users (faculty or admin) and displays the list of students in courses for those users.
tk_photos.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 133 lines
viavoice_control.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 142 lines
tv_info.pl (https://misterhouse.svn.sourceforge.net/svnroot/misterhouse) Perl · 104 lines
m08adr.c (https://sdcc.svn.sourceforge.net/svnroot/sdcc) C · 206 lines
parse.cpp (https://xplanet.svn.sourceforge.net/svnroot/xplanet) C++ · 252 lines
GHttpUi.cpp (https://lgi.svn.sourceforge.net/svnroot/lgi) C++ · 317 lines
addArcs.cpp (https://xplanet.svn.sourceforge.net/svnroot/xplanet) C++ · 266 lines
inputmodule.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 187 lines
✨ Summary
This C code is part of a SWIG (Simplified Interface to C and other languages) module, specifically for handling input files. It reads command line options, sets up search paths, and checks out input files from the SWIG library. If no file is specified, it generates an input file with include statements for the provided directories and libraries.
This C code is part of a SWIG (Simplified Interface to C and other languages) module, specifically for handling input files. It reads command line options, sets up search paths, and checks out input files from the SWIG library. If no file is specified, it generates an input file with include statements for the provided directories and libraries.
slpd_cmdline.c (https://openslp.svn.sourceforge.net/svnroot/openslp) C · 201 lines
123 if(strcmp(argv[i],"-l") == 0)
124 {
125 i++;
126 if(i >= argc) goto USAGE;
127 strncpy(G_SlpdCommandLine.logfile,argv[i],MAX_PATH-1);
129 else if(strcmp(argv[i],"-r") == 0)
130 {
131 i++;
132 if(i >= argc) goto USAGE;
133 strncpy(G_SlpdCommandLine.regfile,argv[i],MAX_PATH-1);
135 else if(strcmp(argv[i],"-c") == 0)
136 {
137 i++;
138 if(i >= argc) goto USAGE;
139 strncpy(G_SlpdCommandLine.cfgfile,argv[i],MAX_PATH-1);
Bookmarks.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 167 lines
✨ Summary
This Java code defines a Bookmarks
class that extends AbstractTableModel
. It provides a model for displaying bookmarks with titles and URLs in a table, allowing users to add, delete, move up/down, and save changes to the bookmark data. The data is stored in a vector of BookmarksEntry
objects, which are accessed through methods like getTitle
, getURL
, and delete
.
This Java code defines a Bookmarks
class that extends AbstractTableModel
. It provides a model for displaying bookmarks with titles and URLs in a table, allowing users to add, delete, move up/down, and save changes to the bookmark data. The data is stored in a vector of BookmarksEntry
objects, which are accessed through methods like getTitle
, getURL
, and delete
.
ldbList.java (https://maverick.svn.sourceforge.net/svnroot/maverick) Java · 106 lines
LineGuidesOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 253 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for customizing line guides and marks in a text editor, specifically jEdit. It allows users to add, remove, and customize marks/guides, as well as save their settings to the application’s configuration. The GUI displays a table of existing marks/guides, with options to edit or delete them.
This Java code creates a graphical user interface (GUI) for customizing line guides and marks in a text editor, specifically jEdit. It allows users to add, remove, and customize marks/guides, as well as save their settings to the application’s configuration. The GUI displays a table of existing marks/guides, with options to edit or delete them.
SoundMgr.cpp
(https://jetpp.svn.sourceforge.net/svnroot/jetpp)
C++ · 502 lines
✨ Summary
This C++ code implements a sound management system for an application. It provides methods to create, modify, and control sounds, including playing, stopping, modifying, and checking if a sound is currently playing. The system also manages master volume settings. The code appears to be part of a larger audio processing framework, likely used in game development or multimedia applications.
This C++ code implements a sound management system for an application. It provides methods to create, modify, and control sounds, including playing, stopping, modifying, and checking if a sound is currently playing. The system also manages master volume settings. The code appears to be part of a larger audio processing framework, likely used in game development or multimedia applications.
StylesheetParameterTableModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 237 lines
✨ Summary
This Java code defines a table model for XSL stylesheet parameters, allowing users to add, edit, and delete parameter names and values in a table. It provides methods for adding, removing, and editing parameters, as well as getting the current value of each parameter at a specific row and column index.
This Java code defines a table model for XSL stylesheet parameters, allowing users to add, edit, and delete parameter names and values in a table. It provides methods for adding, removing, and editing parameters, as well as getting the current value of each parameter at a specific row and column index.
MarkManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java class, MarkManager
, is a singleton that manages static marks (e.g., column guides) in a text editor. It loads and saves mark configurations from/to the editor’s settings, adds/removes marks, checks for mark existence, and notifies registered listeners of mark-related events. The class provides methods to interact with these marks, such as adding, removing, and updating them.
This Java class, MarkManager
, is a singleton that manages static marks (e.g., column guides) in a text editor. It loads and saves mark configurations from/to the editor’s settings, adds/removes marks, checks for mark existence, and notifies registered listeners of mark-related events. The class provides methods to interact with these marks, such as adding, removing, and updating them.
LegionInfoPanel.java (https://colossus.svn.sourceforge.net/svnroot/colossus) Java · 257 lines
EntityApp.cxx (https://openjade.svn.sourceforge.net/svnroot/openjade) C++ · 198 lines
LegionInfoPanel.java (https://colossus.svn.sourceforge.net/svnroot/colossus) Java · 260 lines
slpd_cmdline.c (https://openslp.svn.sourceforge.net/svnroot/openslp) C · 200 lines
123 if(strcmp(argv[i],"-l") == 0)
124 {
125 i++;
126 if(i >= argc) goto USAGE;
127 strncpy(G_SlpdCommandLine.logfile,argv[i],MAX_PATH-1);
129 else if(strcmp(argv[i],"-r") == 0)
130 {
131 i++;
132 if(i >= argc) goto USAGE;
133 strncpy(G_SlpdCommandLine.regfile,argv[i],MAX_PATH-1);
135 else if(strcmp(argv[i],"-c") == 0)
136 {
137 i++;
138 if(i >= argc) goto USAGE;
139 strncpy(G_SlpdCommandLine.cfgfile,argv[i],MAX_PATH-1);
slpd_cmdline.c (https://openslp.svn.sourceforge.net/svnroot/openslp) C · 177 lines
100 if (strcmp(argv[i],"-l") == 0)
101 {
102 i++;
103 if (i >= argc) goto USAGE;
104 strncpy(G_SlpdCommandLine.logfile,argv[i],MAX_PATH);
106 else if (strcmp(argv[i],"-r") == 0)
107 {
108 i++;
109 if (i >= argc) goto USAGE;
110 strncpy(G_SlpdCommandLine.regfile,argv[i],MAX_PATH);
112 else if (strcmp(argv[i],"-c") == 0)
113 {
114 i++;
115 if (i >= argc) goto USAGE;
116 strncpy(G_SlpdCommandLine.cfgfile,argv[i],MAX_PATH);
wud.c (https://exult.svn.sourceforge.net/svnroot/exult) C · 296 lines
main.cc (https://gpsim.svn.sourceforge.net/svnroot/gpsim) C++ · 257 lines
slpd_cmdline.c (https://openslp.svn.sourceforge.net/svnroot/openslp) C · 105 lines
64 if(strcmp(argv[i],"-l") == 0)
65 {
66 i++;
67 if(i >= argc) goto USAGE;
68 strncpy(G_SlpdCommandLine.logfile,argv[i],MAX_PATH);
70 else if(strcmp(argv[i],"-r") == 0)
71 {
72 i++;
73 if(i >= argc) goto USAGE;
74 strncpy(G_SlpdCommandLine.regfile,argv[i],MAX_PATH);
76 else if(strcmp(argv[i],"-c") == 0)
77 {
78 i++;
79 if(i >= argc) goto USAGE;
80 strncpy(G_SlpdCommandLine.cfgfile,argv[i],MAX_PATH);
MessageFormatter.cxx (https://openjade.svn.sourceforge.net/svnroot/openjade) C++ · 176 lines
gendoc.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 134 lines
✨ Summary
The code generates an HTML document that displays information about available nodes and their documentation. It loads node data from a UIDocument
object, creates a table with links to each node’s page, and then generates HTML for each node’s documentation using the node2html
function. The resulting HTML is output to the console.
The code generates an HTML document that displays information about available nodes and their documentation. It loads node data from a UIDocument
object, creates a table with links to each node’s page, and then generates HTML for each node’s documentation using the node2html
function. The resulting HTML is output to the console.
io.c
(https://supermon.svn.sourceforge.net/svnroot/supermon)
C · 191 lines
✨ Summary
This C code reads and parses s-expressions (a Lisp-like data structure) from a file descriptor, returning the parsed string as a null-terminated C string. It handles nested parentheses, skips over whitespace characters like CR and LF, and checks for buffer overflow errors. The read_sexp
function is similar to fread_sexp
, but uses read
instead of fgetc
.
This C code reads and parses s-expressions (a Lisp-like data structure) from a file descriptor, returning the parsed string as a null-terminated C string. It handles nested parentheses, skips over whitespace characters like CR and LF, and checks for buffer overflow errors. The read_sexp
function is similar to fread_sexp
, but uses read
instead of fgetc
.
html.php (https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail) PHP · 186 lines
identity.php (https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail) PHP · 216 lines
std_list.i
(https://swig.svn.sourceforge.net/svnroot/swig)
Swig · 368 lines
✨ Summary
This Swig code generates C++ wrappers for a Perl module, allowing C++ code to interact with the Perl module’s functionality. It defines the interface between C++ and Perl, including data types, function calls, and memory management. The generated C++ code provides a safe and efficient way to use the Perl module from C++.
This Swig code generates C++ wrappers for a Perl module, allowing C++ code to interact with the Perl module’s functionality. It defines the interface between C++ and Perl, including data types, function calls, and memory management. The generated C++ code provides a safe and efficient way to use the Perl module from C++.
tree.h (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ Header · 118 lines
csvector.cpp (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ · 189 lines
grxlib.c
(https://rxvt.svn.sourceforge.net/svnroot/rxvt)
C · 168 lines
✨ Summary
This C code is a graphics library for Unix-like systems, specifically designed to work with rxvt terminals. It provides functions for creating and managing windows, placing text, filling areas, and clearing the screen. The library also handles terminal settings and queries the terminal for available graphics capabilities. It can be used to create graphical user interfaces or other interactive applications.
This C code is a graphics library for Unix-like systems, specifically designed to work with rxvt terminals. It provides functions for creating and managing windows, placing text, filling areas, and clearing the screen. The library also handles terminal settings and queries the terminal for available graphics capabilities. It can be used to create graphical user interfaces or other interactive applications.
wad_sdl.cpp (https://marathon.svn.sourceforge.net/svnroot/marathon) C++ · 123 lines
m_argv.cpp (https://doomlegacy.svn.sourceforge.net/svnroot/doomlegacy) C++ · 177 lines
byteptr.h (https://doomlegacy.svn.sourceforge.net/svnroot/doomlegacy) C Header · 117 lines
88 // modify their parameters.
89 #define WRITESTRING(p,b) { int tmp_i=0; do { WRITECHAR((p), (b)[tmp_i]); } while ((b)[tmp_i++]); }
90 #define WRITESTRINGN(p,b,n) { int tmp_i=0; do { WRITECHAR((p), (b)[tmp_i]); if (!(b)[tmp_i]) break; tmp_i++; } while (tmp_i<(n)); }
91 #define WRITEMEM(p,s,n) { memcpy((p),(s),(n)); (p)+=(n); }
wad_io.c (https://edge.svn.sourceforge.net/svnroot/edge) C · 376 lines
tree.c (https://udeproject.svn.sourceforge.net/svnroot/udeproject) C · 135 lines
write_pdb.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 296 lines
g_data.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 146 lines
legend.m (https://octave.svn.sourceforge.net/svnroot/octave) MATLAB · 228 lines
convhulln.cc (https://octave.svn.sourceforge.net/svnroot/octave) C++ · 107 lines
write_pdb.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 330 lines
write_pdb_quick.m (https://octave.svn.sourceforge.net/svnroot/octave) Objective C · 139 lines
graph.c (https://felt.svn.sourceforge.net/svnroot/felt) C · 153 lines
aufile.cpp (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ · 195 lines
aufile.cpp (https://crystal.svn.sourceforge.net/svnroot/crystal) C++ · 158 lines
104 // datas are stored in unsigned 8 bit but mixer engine only support signed 8 bit
105 *ptr++=dummy0-128;
106 i++;
107 }
108 }
121 dummy1 = Stream; addStream(1);
122 *ptr++=csSndFunc::makeWord(dummy0, dummy1);
123 i++;
124 }
125 }
137 dummy0 = Stream; addStream(1);
138 *ptr++=csSndFunc::ulaw2linear(dummy0);
139 i++;
140 }
141 }