Searched +refs:open +refs:line (Results 1 - 25 of 473) sorted by relevance

1234567891011>>

/macosx-10.9.5/WebKit-7537.78.2/WebKit.vcxproj/WebKitExportGenerator/
H A Dmake-export-file-generator31 def line_for_output line
32 return line.chomp if line =~ /#/
33 return " printf(\"%s\\n\",#{line.chomp});" if line =~ /symbolWithPointer/
34 return " printf(\"#{line.chomp}\\n\");"
50 <%- input.each_line do |line| -%>
51 <%= line_for_output line %>
58 File.open(output_file, "w") do |output|
59 File.open(input_fil
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/irb/
H A Dmagic-file.rb6 def open(path) method in class:IRB
7 io = File.open(path, 'rb')
8 line = io.gets
9 line = io.gets if line[0,2] == "#!"
10 encoding = detect_encoding(line)
28 def detect_encoding(line)
29 return unless line[0] == ?#
30 line = line[
[all...]
H A Dinput-method.rb15 STDIN_FILE_NAME = "(line)" # :nodoc:
29 # Reads the next line from this input method.
51 @line = []
52 @stdin = IO.open(STDIN.to_i, :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-")
53 @stdout = IO.open(STDOUT.to_i, 'w', :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-")
56 # Reads the next line from this input method.
61 line = @stdin.gets
62 @line[@line_no += 1] = line
81 # Returns the current line numbe
86 def line(line_no) method in class:IRB.StdioInputMethod
182 def line(line_no) method in class:IRB.ReadlineInputMethod
[all...]
/macosx-10.9.5/ruby-104/ruby/test/ruby/
H A Dtest_whileuntil.rb10 tmp = open(tmpfilename, "w")
18 tmp = open(tmpfilename, "r")
21 while line = tmp.gets()
22 break if /vt100/ =~ line
26 assert_match(/vt100/, line)
29 tmp = open(tmpfilename, "r")
30 while line = tmp.gets()
31 next if /vt100/ =~ line
32 assert_no_match(/vt100/, line)
35 assert_no_match(/vt100/, line)
[all...]
/macosx-10.9.5/libxml2-26/libxml2/
H A Dbuild_glob.py19 def striplinesep(line):
20 while line and line[-1] in ('\r','\n'):
21 line = line[:-1]
22 return line
24 def writeline(file, line=None):
25 if line:
26 file.write(line)
31 global_data=open("globa
[all...]
/macosx-10.9.5/ruby-104/ruby/sample/
H A Dmpart.rb16 line = 0
19 for i in ifp = open(basename)
26 for i in ifp = open(basename)
27 if line == 0
28 ofp = open(sprintf("%s.%s%02d", basename, extname, part), "w")
33 line = line + 1
34 if line >= lines and !ifp.eof?
38 line = 0
H A Dclnt.rb13 s = TCPSocket.open(host, ARGV.shift)
17 while line = gets()
18 s.write(line)
H A Dtsvr.rb6 gs = TCPServer.open(0)
14 while line = s.gets
15 s.write(line)
H A Duumerge.rb11 while line = gets()
12 if /^begin\s*(\d*)\s*(\S*)/ =~ line
18 out = open($file, "w") if $file != ""
28 while line = gets()
29 if /^end/ =~ line
35 line.sub!(/[a-z]+$/, "") # handle stupid trailing lowercase letters
36 next if /[a-z]/ =~ line
/macosx-10.9.5/WebCore-7537.78.1/
H A Dmake-export-file-generator31 def line_for_output line
32 return line.chomp if line =~ /#/
33 " validateAndPrint(\"#{line.chomp}\");"
64 <%- input.each_line do |line| -%>
65 <%= line_for_output line %>
72 File.open(output_file, "w") do |output|
73 File.open(input_file) do |input|
/macosx-10.9.5/sudo-72/src/
H A Dget_pty.c93 char *line; local
96 line = _getpty(master, O_RDWR, S_IRUSR|S_IWUSR|S_IWGRP, 0);
97 if (line == NULL)
99 *slave = open(line, O_RDWR|O_NOCTTY, 0);
104 (void) chown(line, ttyuid, -1);
105 strlcpy(name, line, namesz);
117 fd = open("/dev/ptc", oflag);
119 fd = open("/dev/ptmx", oflag);
133 char *line; local
165 static char line[] = "/dev/ptyXX"; variable
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/perl/BerkeleyDB/
H A Dmkpod32 open (F, "<$file") or die "Cannot open '$file':$!\n" ;
58 open (F, "<$file") or die "Cannot open '$file':$!\n" ;
59 open (N, ">$newfile") or die "Cannot open '$newfile':$!\n" ;
63 while ($line = <F>)
65 if ($line =~ /^$TOKEN\s*BEGIN\s+(\w+)\s*$/ or
66 $line =~ m[\s*/\*$TOKEN\s*BEGIN\s+(\w+)\s*$] )
72 elsif ($line
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/xotcl/xotcl/library/lib/
H A DchangeXOTclVersion.xotcl49 set F [open $file]; set c [read $F]; close $F
51 foreach line [split $c \n] {
52 set newLine $line
53 if {[regexp {^XOTCL_MAJOR_VERSION=[0-9]} $line]} {
54 set line "XOTCL_MAJOR_VERSION=$XOTCL_MAJOR_VERSION"
55 } elseif {[regexp {^XOTCL_MINOR_VERSION=[0-9]} $line]} {
56 set line "XOTCL_MINOR_VERSION=$XOTCL_MINOR_VERSION"
57 } elseif {[regexp {^XOTCL_RELEASE_LEVEL=} $line]} {
58 set line "XOTCL_RELEASE_LEVEL=$XOTCL_RELEASE_LEVEL"
59 } elseif {[regexp {^define\(XOTclVersion, .*$} $line]} {
[all...]
/macosx-10.9.5/cctools-845/libstuff/
H A Dsymbol_list.c43 * The file that contains the symbol names must have symbol names one per line,
57 char *strings, *p, *line; local
59 if((fd = open(file, O_RDONLY)) < 0){
60 system_error("can't open: %s", file);
83 line = p;
87 if(*line != '#'){
88 while(*line != '\0' && isspace(*line))
89 line++;
90 if(*line !
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/rubygems/package/
H A Dold.rb40 open @gem, 'rb' do |io|
56 open @gem, 'rb' do |io|
68 read_until_dashes io do |line|
69 file_data << line
82 open destination, 'wb', entry['mode'] do |out|
99 read_until_dashes io do |line|
100 header << line
110 while (line = io.gets) && line.chomp.strip != "---" do
111 yield line i
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/ripper/tools/
H A Dpreproc.rb27 File.open(ARGV[0]) {|f|
33 File.open(output, 'w') {|f|
42 while line = f.gets
43 case line
54 out << line.sub(/<\w+>/, '<val>')
56 out << line.sub(/<\w+>/, '<val>')
58 out << line
64 while line = f.gets
65 case line
80 out << line
[all...]
/macosx-10.9.5/ICU-511.35/icuSources/test/depstest/
H A Ddependencies.py61 def _RemoveComment(line):
64 index = line.find("#") # Remove trailing comment.
65 if index >= 0: line = line[:index]
66 return line.rstrip() # Remove trailing newlines etc.
70 line = _RemoveComment(f.next())
71 if line: return line
77 line = _ReadLine(deps_file)
78 if not line
[all...]
/macosx-10.9.5/bash-92/bash-3.2/
H A Dbashhist.c95 /* Non-zero means do no history expansion on this line, regardless
100 /* With the old default, every line was saved in the history individually.
106 Each line will be individually saved in the history.
126 of just being able to recall one line at a time.
132 /* Set to 1 if the first line of a possibly-multi-line command was saved
150 line saved.
152 history list before saving the latest line. */
156 as a separate history entry; set to 0 if the line was ignored or added
170 line wit
[all...]
/macosx-10.9.5/rsync-42/rsync/popt/
H A Dpoptconfig.c13 static void configLine(poptContext con, unsigned char * line) argument
27 if (strncmp(line, con->appName, nameLength)) return;
30 line += nameLength;
31 if (*line == '\0' || !isspace(*line)) return;
33 while (*line != '\0' && isspace(*line)) line++;
34 entryType = line;
35 while (*line
[all...]
/macosx-10.9.5/libxml2-26/libxml2/python/
H A Dsetup.py40 open("libxmlmods/__init__.py","w").close()
110 head = open("libxml.py", "r")
111 generated = open("libxml2class.py", "r")
112 result = open("libxml2.py", "w")
113 for line in head.readlines():
115 result.write(altImport(line))
117 result.write(line)
118 for line in generated.readlines():
119 result.write(line)
135 head = open("libxs
[all...]
H A Dsetup.py.in40 open("libxmlmods/__init__.py","w").close()
110 head = open("libxml.py", "r")
111 generated = open("libxml2class.py", "r")
112 result = open("libxml2.py", "w")
113 for line in head.readlines():
115 result.write(altImport(line))
117 result.write(line)
118 for line in generated.readlines():
119 result.write(line)
135 head = open("libxs
[all...]
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/libxml2-src/python/
H A Dsetup.py.in40 open("libxmlmods/__init__.py","w").close()
110 head = open("libxml.py", "r")
111 generated = open("libxml2class.py", "r")
112 result = open("libxml2.py", "w")
113 for line in head.readlines():
115 result.write(altImport(line))
117 result.write(line)
118 for line in generated.readlines():
119 result.write(line)
135 head = open("libxs
[all...]
/macosx-10.9.5/xnu-2422.115.4/libkern/kxld/tests/
H A Dloadtest.py37 line = pipe.readline() variable
38 while line:
39 kexts.append(line.strip())
40 line = pipe.readline() variable
42 NULL = open("/dev/null")
/macosx-10.9.5/RubyCocoa-80/RubyCocoa/framework/
H A Dpost-config.rb10 File.open(dst_fname, 'w') do |dstfile|
11 IO.foreach(src_path) do |line|
13 line.gsub!( /\b(ID|T_DATA)\b/, 'RB_\1' )
14 line.gsub!( /\bintern\.h\b/, "#{new_filename_prefix}intern.h" )
16 dstfile.puts( line )
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/tests/
H A Dforfile.test23 set outfp [open FORFILE.TMP w]
32 set ret [for_file line FORFILE.TMP {lappend result $line}]
38 for_file line _non_existent_ {
39 echo $line
42 } 0 [list 1 {couldn't open "_non_existent_": no such file or directory} \
47 for_file line FORFILE.TMP {
56 for_file line FORFILE.TMP {
66 for_file line FORFILE.TMP {
77 for_file line FORFIL
[all...]

Completed in 409 milliseconds

1234567891011>>