projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Icon bug
[wxWidgets.git]
/
src
/
common
/
wxexpr.cpp
diff --git
a/src/common/wxexpr.cpp
b/src/common/wxexpr.cpp
index 951445a5955cf01ee8cc94c42c111b5ca9a0508c..bbfce13288cc298d55857de745e34f7beca7c516 100644
(file)
--- a/
src/common/wxexpr.cpp
+++ b/
src/common/wxexpr.cpp
@@
-275,12
+275,12
@@
wxExpr *wxExpr::AttributeValue(const wxString& word) const // Use only for a cla
wxString wxExpr::Functor(void) const // Use only for a clause
{
if ((type != wxExprList) || !value.first)
wxString wxExpr::Functor(void) const // Use only for a clause
{
if ((type != wxExprList) || !value.first)
- return wxString(
_
T(""));
+ return wxString(
wx
T(""));
if (value.first->type == wxExprWord)
return wxString(value.first->value.word);
else
if (value.first->type == wxExprWord)
return wxString(value.first->value.word);
else
- return wxString(
_
T(""));
+ return wxString(
wx
T(""));
}
bool wxExpr::IsFunctor(const wxString& f) const // Use only for a clause
}
bool wxExpr::IsFunctor(const wxString& f) const // Use only for a clause
@@
-390,7
+390,7
@@
void wxExpr::AddAttributeValue(const wxString& attribute, wxExpr *val)
// DeleteAttributeValue(attribute);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
// DeleteAttributeValue(attribute);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-414,7
+414,7
@@
void wxExpr::AddAttributeValue(const wxString& attribute, long val)
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-436,7
+436,7
@@
void wxExpr::AddAttributeValue(const wxString& attribute, double val)
// DeleteAttributeValue(attribute);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
// DeleteAttributeValue(attribute);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-459,7
+459,7
@@
void wxExpr::AddAttributeValueString(const wxString& attribute, const wxString&
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(wxExprString, val);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(wxExprString, val);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-482,7
+482,7
@@
void wxExpr::AddAttributeValueWord(const wxString& attribute, const wxString& va
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(wxExprWord, val);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(wxExprWord, val);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-507,7
+507,7
@@
void wxExpr::AddAttributeValue(const wxString& attribute, wxList *val)
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
wxExpr *patt = new wxExpr(wxExprWord, attribute);
wxExpr *pval = new wxExpr(val);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr = new wxExpr(wxExprList);
wxExpr *listExpr = new wxExpr(wxExprList);
@@
-543,7
+543,7
@@
void wxExpr::AddAttributeValueStringList(const wxString& attribute, wxList *stri
// Now make an (=, Att, Value) triple
wxExpr *patt = new wxExpr(wxExprWord, attribute);
// Now make an (=, Att, Value) triple
wxExpr *patt = new wxExpr(wxExprWord, attribute);
- wxExpr *pequals = new wxExpr(wxExprWord,
_
T("="));
+ wxExpr *pequals = new wxExpr(wxExprWord,
wx
T("="));
wxExpr *listExpr2 = new wxExpr(wxExprList);
wxExpr *listExpr2 = new wxExpr(wxExprList);
@@
-769,7
+769,7
@@
void wxExpr::WriteExpr(FILE* stream) // Write as any other subexpression
{
wxExpr *expr = value.first;
{
wxExpr *expr = value.first;
- if ((expr->Type() == wxExprWord) && (wxStrcmp(expr->WordValue(),
_
T("=")) == 0))
+ if ((expr->Type() == wxExprWord) && (wxStrcmp(expr->WordValue(),
wx
T("=")) == 0))
{
wxExpr *arg1 = expr->next;
wxExpr *arg2 = arg1->next;
{
wxExpr *arg1 = expr->next;
wxExpr *arg2 = arg1->next;
@@
-800,9
+800,7
@@
void wxExpr::WriteExpr(FILE* stream) // Write as any other subexpression
* wxExpr 'database' (list of expressions)
*/
* wxExpr 'database' (list of expressions)
*/
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxExprDatabase, wxList)
IMPLEMENT_DYNAMIC_CLASS(wxExprDatabase, wxList)
-#endif
wxExprDatabase::wxExprDatabase(wxExprErrorHandler handler)
{
wxExprDatabase::wxExprDatabase(wxExprErrorHandler handler)
{
@@
-1018,7
+1016,7
@@
bool wxExprDatabase::ReadFromString(const wxString& buffer)
thewxExprDatabase = this;
const wxWX2MBbuf buf = buffer.mb_str();
thewxExprDatabase = this;
const wxWX2MBbuf buf = buffer.mb_str();
- LexFromString(MBSTRINGCAST buf);
+ LexFromString(
wx
MBSTRINGCAST buf);
yyparse();
wxExprCleanUp();
return (noErrors == 0);
yyparse();
wxExprCleanUp();
return (noErrors == 0);
@@
-1143,21
+1141,21
@@
char *wxmake_string(char *str)
t = s;
for(i=1; i<len; i++) // 1 since we want to skip leading quote
{
t = s;
for(i=1; i<len; i++) // 1 since we want to skip leading quote
{
- if (sbuf[i] ==
_T('\\') && sbuf[i+1] == _
T('"'))
+ if (sbuf[i] ==
wxT('\\') && sbuf[i+1] == wx
T('"'))
{
{
- *t++ =
_
T('"');
+ *t++ =
wx
T('"');
i ++;
}
i ++;
}
- else if (sbuf[i] ==
_T('\\') && sbuf[i+1] == _
T('\\'))
+ else if (sbuf[i] ==
wxT('\\') && sbuf[i+1] == wx
T('\\'))
{
{
- *t++ =
_
T('\\');
+ *t++ =
wx
T('\\');
i ++;
}
else
*t++ = sbuf[i];
}
i ++;
}
else
*t++ = sbuf[i];
}
- *t =
_
T('\0');
+ *t =
wx
T('\0');
wxExpr *x = new wxExpr(wxExprString, s, FALSE);
return (char *)x;
wxExpr *x = new wxExpr(wxExprString, s, FALSE);
return (char *)x;