Displaying 20 results from an estimated 41 matches for "parsefile".
Did you mean:
parse_file
2019 Jan 25
0
[klibc:update-dash] input: Move all input state into parsefile
...a=commit;h=a61f802e418cd4cf282ccdb60229335e0c09f3bf
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Mon, 5 Jan 2015 22:42:32 +1100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] input: Move all input state into parsefile
Currently we maintain a copy of the input state outside of parsefile.
This is redundant and makes reentrancy difficult. This patch kills
the duplicate global states and now everyone simply uses parsefile.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchin...
2020 Mar 28
0
[klibc:update-dash] dash: input: Move all input state into parsefile
...it;h=7976a4e8b6d3adc72d9a07f37a8f470f7345c6db
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Mon, 5 Jan 2015 22:42:32 +1100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: input: Move all input state into parsefile
[ dash commit 51781428ead9a2142795764d0c42abfd9bb47171 ]
Currently we maintain a copy of the input state outside of parsefile.
This is redundant and makes reentrancy difficult. This patch kills
the duplicate global states and now everyone simply uses parsefile.
Signed-off-by: Herbert Xu <her...
2019 Jan 25
0
[klibc:update-dash] input: Allow two consecutive calls to pungetc
...++++++++--------
usr/dash/input.h | 12 ++++++++++++
2 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index 6223a735..06c08d49 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -102,10 +102,20 @@ RESET {
int
pgetc(void)
{
+ int c;
+
+ if (parsefile->unget)
+ return parsefile->lastc[--parsefile->unget];
+
if (--parsefile->nleft >= 0)
- return (signed char)*parsefile->nextc++;
+ c = (signed char)*parsefile->nextc++;
else
- return preadbuffer();
+ c = preadbuffer();
+
+ parsefile->lastc[1] = parsefile->lastc[0...
2020 Mar 28
0
[klibc:update-dash] dash: input: Allow two consecutive calls to pungetc
...++++++++--------
usr/dash/input.h | 12 ++++++++++++
2 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index 6223a735..06c08d49 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -102,10 +102,20 @@ RESET {
int
pgetc(void)
{
+ int c;
+
+ if (parsefile->unget)
+ return parsefile->lastc[--parsefile->unget];
+
if (--parsefile->nleft >= 0)
- return (signed char)*parsefile->nextc++;
+ c = (signed char)*parsefile->nextc++;
else
- return preadbuffer();
+ c = preadbuffer();
+
+ parsefile->lastc[1] = parsefile->lastc[0...
2019 Jan 25
0
[klibc:update-dash] eval: Restore input files in evalcommand
...Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Tue, 27 Mar 2018 00:39:35 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] eval: Restore input files in evalcommand
When evalcommand invokes a command that modifies parsefile and
then bails out without popping the file, we need to ensure the
input file is restored so that the shell can continue to execute.
Reported-by: Martijn Dekker <martijn at inlv.org>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at deca...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Restore input files in evalcommand
...e: Tue, 27 Mar 2018 00:39:35 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: eval: Restore input files in evalcommand
[ dash commit 46d5a7fcea81b489819f753451c1ad2fe435f148 ]
When evalcommand invokes a command that modifies parsefile and
then bails out without popping the file, we need to ensure the
input file is restored so that the shell can continue to execute.
Reported-by: Martijn Dekker <martijn at inlv.org>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at deca...
2012 Oct 19
0
[LLVMdev] LLD archive library design
...small sketches done on reading archive libraries in lld. Can you provide pointers to the design ?
The general idea is to have a new Reader class (i.e. ReaderArchive) along with a ReaderOptionsArchive class. One of the options will be if all members are force loaded or not.
The ReaderArchive ::parseFile() method will check the force-load option, if true it will parse up all the members and return an vector<> of File* objects, one for each member. If force-load is not specified, ReaderArchive ::parseFile() will just return one FileArchive object which is a subclass of ArchiveLibraryFile....
2012 Oct 23
1
[LLVMdev] LLD archive library design
...,
CommandLine options flag)
2) lld-core creates an object of type ReaderArchive(ReaderOptions), that
users would subclass (off ArchiveLibraryFile)
a) GNUArchiveLibrary
b) BSDArchiveLibrary
b) MachOArchiveLibrary
c) COFFArchiveLibrary
3) ReaderArchive has two functions
a) parseFile that returns a vector of file objects, if the force
load option is set
b) parseFile (overloaded) that returns the ArchiveLibraryFile
4) The ArchiveLibrary object has functions:
find(symbolName, isDataSym) and returns a file object if the file
contains a definition for that symbolName....
2012 Oct 23
0
[LLVMdev] LLD archive library design
...> 2) lld-core creates an object of type ReaderArchive(ReaderOptions), that users would subclass (off ArchiveLibraryFile)
> a) GNUArchiveLibrary
> b) BSDArchiveLibrary
> b) MachOArchiveLibrary
> c) COFFArchiveLibrary
> 3) ReaderArchive has two functions
> a) parseFile that returns a vector of file objects, if the force load option is set
> b) parseFile (overloaded) that returns the ArchiveLibraryFile
> 4) The ArchiveLibrary object has functions:
> find(symbolName, isDataSym) and returns a file object if the file contains a definition for that...
2012 Oct 19
2
[LLVMdev] LLD archive library design
Hi,
I have started to work on support for Reading archive libraries in lld
and thought of using the llvm/lib/ArchiveReader for this.
The ArchiveReader doesnot fully support GNU archive libraries (thin
archives), do you think we should continue using llvm/lib/ArchiveReader ?
I was chatting with Michael and looks like there have been discussions
and small sketches done on reading archive
2005 Apr 12
2
FXSettings problem
...x12"
include Fox
class Registry < FXSettings
attr_accessor :mFile
attr_accessor :mDefaults
def initialize(aFile)
self.mFile = aFile
self.mDefaults = FXSettings.new
end
def Parse
parseFile(self.mFile, true)
Defaults(false)
end
def Write
unparseFile(self.mFile)
end
def Defaults(aOverwrite)
end
// Then a lot of stuff for setting default values and
// some model-view implementations...
2013 Sep 04
1
[LLVMdev] [lld] Modeling ELF FileNodes/ControlNodes (Group's) in lld
...; to replace InputFiles. It seems link LinkerInput could be merged into
> FileNode.
I both agree and disagree. Logically we have two different views, the
command line and the resulting input tree on the side and the groups of
object files as seen by the resolver on the other side. The goal of
parseFile is ultimately to transform the first into the second. Agreed
so far?
Want I want to do is encapsulate the "command line" side in LinkerInput,
that means the "logical" path used for error reporting and the buffers
associated with the input. The resolver side should not be involv...
2010 Sep 01
3
[LLVMdev] Assertion failure in tablegen: rationale ?
...(this=0x7fffffffd480)
at TGParser.cpp:1727
#9 0x0000000000548b86 in llvm::TGParser::ParseObject (this=0x7fffffffd480,
MC=0x0) at TGParser.cpp:2098
#10 0x0000000000548bbb in llvm::TGParser::ParseObjectList
(this=0x7fffffffd480, MC=0x0) at TGParser.cpp:2107
#11 0x0000000000548c10 in llvm::TGParser::ParseFile (this=0x7fffffffd480) at
TGParser.cpp:2115
#12 0x0000000000550035 in ParseFile (Filename=..., IncludeDirs=...,
SrcMgr=...) at TableGen.cpp:196
#13 0x0000000000550116 in main (argc=3, argv=0x7fffffffe208) at
TableGen.cpp:206
Looking at the code, it's triggered because UnOpInit::getFieldType onl...
2005 Mar 23
1
system-config-samba, error
...", line 41, in ?
mainWindow.MainWindow(debug_flag)
File "/usr/share/system-config-samba/mainWindow.py", line 79, in __init__
self.samba_data = sambaParser.SambaParser(self)
File "/usr/share/system-config-samba/sambaParser.py", line 177, in __init__
self.parseFile()
File "/usr/share/system-config-samba/sambaParser.py", line 215, in parseFile
token = self.createToken(line, section)
File "/usr/share/system-config-samba/sambaParser.py", line 264, in
createToken
token =
sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_K...
2007 Oct 11
1
Unable to connect to Xend. Connection refused
...ndStateStore.py",
line 104, in load_state
dom = minidom.parse(xml_path)
File "/usr/lib/python2.4/xml/dom/minidom.py", line 1915, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 924, in
parse
result = builder.parseFile(fp)
File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 211, in
parseFile
parser.Parse("", True)
ExpatError: no element found: line 1, column 0
____________________________________________________________
ADSL 4 MB FLAT
La tua ADSL a € 19.95.
GRATIS 2 mesi di ca...
2010 Sep 01
0
[LLVMdev] Assertion failure in tablegen: rationale ?
...ffd480) at TGParser.cpp:1727
> #9 0x0000000000548b86 in llvm::TGParser::ParseObject (this=0x7fffffffd480, MC=0x0) at TGParser.cpp:2098
> #10 0x0000000000548bbb in llvm::TGParser::ParseObjectList (this=0x7fffffffd480, MC=0x0) at TGParser.cpp:2107
> #11 0x0000000000548c10 in llvm::TGParser::ParseFile (this=0x7fffffffd480) at TGParser.cpp:2115
> #12 0x0000000000550035 in ParseFile (Filename=..., IncludeDirs=..., SrcMgr=...) at TableGen.cpp:196
> #13 0x0000000000550116 in main (argc=3, argv=0x7fffffffe208) at TableGen.cpp:206
>
> Looking at the code, it's triggered because UnOpIn...
2005 Nov 02
0
samba log on problems
...quot;, line
41, in ?
mainWindow.MainWindow(debug_flag)
File "/usr/share/system-config-samba/mainWindow.py", line 75, in __init__
self.samba_data = sambaParser.SambaParser(self)
File "/usr/share/system-config-samba/sambaParser.py", line 41, in
__init__
self.parseFile()
File "/usr/share/system-config-samba/sambaParser.py", line 75, in
parseFile
token = self.createToken(line)
File "/usr/share/system-config-samba/sambaParser.py", line 147, in
createToken
token =
sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL,...
2012 Jan 20
1
[LLVMdev] TableGen Crash
...ab1
llvm::TGParser::ParseDef(llvm::MultiClass*) + 1201
7 llvm-tblgen 0x000000010891cab9
llvm::TGParser::ParseObject(llvm::MultiClass*) + 153
8 llvm-tblgen 0x000000010891cb82
llvm::TGParser::ParseObjectList(llvm::MultiClass*) + 66
9 llvm-tblgen 0x000000010891f9d7 llvm::TGParser::ParseFile() + 55
10 llvm-tblgen 0x00000001088e3e63 llvm::TableGenMain(char*,
llvm::TableGenAction&) + 931
11 llvm-tblgen 0x00000001088d05c6 main + 102
12 llvm-tblgen 0x0000000108738934 start + 52
13 llvm-tblgen 0x0000000000000002 start + 18446744069272794882
Stack dump:
0. Program...
2020 Mar 28
0
[klibc:update-dash] dash: eval: avoid leaking memory associated with redirections
...case.cases ; cp && evalskip == 0 ; cp = cp->nclist.next) {
@@ -459,8 +460,6 @@ evalcase(union node *n, int flags)
}
}
out:
- popstackmark(&smark);
-
return status;
}
@@ -717,7 +716,6 @@ evalcommand(union node *cmd, int flags)
struct localvar_list *localvar_stop;
struct parsefile *file_stop;
struct redirtab *redir_stop;
- struct stackmark smark;
union node *argp;
struct arglist arglist;
struct arglist varlist;
@@ -746,7 +744,6 @@ evalcommand(union node *cmd, int flags)
/* First expand the arguments. */
TRACE(("evalcommand(0x%lx, %d) called\n", (long)...
2010 Sep 01
1
[LLVMdev] Assertion failure in tablegen: rationale ?
...727
> > #9 0x0000000000548b86 in llvm::TGParser::ParseObject
> (this=0x7fffffffd480, MC=0x0) at TGParser.cpp:2098
> > #10 0x0000000000548bbb in llvm::TGParser::ParseObjectList
> (this=0x7fffffffd480, MC=0x0) at TGParser.cpp:2107
> > #11 0x0000000000548c10 in llvm::TGParser::ParseFile (this=0x7fffffffd480)
> at TGParser.cpp:2115
> > #12 0x0000000000550035 in ParseFile (Filename=..., IncludeDirs=...,
> SrcMgr=...) at TableGen.cpp:196
> > #13 0x0000000000550116 in main (argc=3, argv=0x7fffffffe208) at
> TableGen.cpp:206
> >
> > Looking at the code,...