diff options
author | Darrell Anderson <[email protected]> | 2012-04-13 02:53:12 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-04-13 02:53:12 -0500 |
commit | 80056d7ae2cbde97eb23dcf37307a6f3f8a29bdb (patch) | |
tree | 0d9335b5519422237cd81752ce2da4c19443f89d /src/translators | |
parent | 1b40827812adaf9476578406766d62dae7adf1d3 (diff) | |
download | tellico-80056d7ae2cbde97eb23dcf37307a6f3f8a29bdb.tar.gz tellico-80056d7ae2cbde97eb23dcf37307a6f3f8a29bdb.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'src/translators')
-rw-r--r-- | src/translators/bibtexexporter.cpp | 4 | ||||
-rw-r--r-- | src/translators/bibtexhandler.cpp | 2 | ||||
-rw-r--r-- | src/translators/bibtexhandler.h | 2 | ||||
-rw-r--r-- | src/translators/btparse/ast.h | 4 | ||||
-rw-r--r-- | src/translators/btparse/bibtex.c | 2 | ||||
-rw-r--r-- | src/translators/btparse/err.c | 2 | ||||
-rw-r--r-- | src/translators/btparse/parse_auxiliary.c | 2 | ||||
-rw-r--r-- | src/translators/btparse/scan.c | 2 | ||||
-rw-r--r-- | src/translators/btparse/tokens.h | 2 | ||||
-rw-r--r-- | src/translators/libcsv.c | 2 | ||||
-rw-r--r-- | src/translators/libcsv.h | 2 | ||||
-rw-r--r-- | src/translators/pilotdb/strop.cpp | 32 |
12 files changed, 29 insertions, 29 deletions
diff --git a/src/translators/bibtexexporter.cpp b/src/translators/bibtexexporter.cpp index 7aca156..f987815 100644 --- a/src/translators/bibtexexporter.cpp +++ b/src/translators/bibtexexporter.cpp @@ -244,7 +244,7 @@ void BibtexExporter::readOptions(KConfig* config_) { if(group.readBoolEntry("Use Braces", true)) { BibtexHandler::s_quoteStyle = BibtexHandler::BRACES; } else { - BibtexHandler::s_quoteStyle = BibtexHandler::TQUOTES; + BibtexHandler::s_quoteStyle = BibtexHandler::QUOTES; } } @@ -262,7 +262,7 @@ void BibtexExporter::saveOptions(KConfig* config_) { if(useBraces) { BibtexHandler::s_quoteStyle = BibtexHandler::BRACES; } else { - BibtexHandler::s_quoteStyle = BibtexHandler::TQUOTES; + BibtexHandler::s_quoteStyle = BibtexHandler::QUOTES; } } diff --git a/src/translators/bibtexhandler.cpp b/src/translators/bibtexhandler.cpp index 1896f95..76a21bf 100644 --- a/src/translators/bibtexhandler.cpp +++ b/src/translators/bibtexhandler.cpp @@ -182,7 +182,7 @@ TQString BibtexHandler::exportText(const TQString& text_, const TQStringList& ma lquote = '{'; rquote = '}'; break; - case TQUOTES: + case QUOTES: lquote = '"'; rquote = '"'; break; diff --git a/src/translators/bibtexhandler.h b/src/translators/bibtexhandler.h index afaf599..76ee90b 100644 --- a/src/translators/bibtexhandler.h +++ b/src/translators/bibtexhandler.h @@ -29,7 +29,7 @@ namespace Tellico { */ class BibtexHandler { public: - enum QuoteStyle { BRACES=0, TQUOTES=1 }; + enum QuoteStyle { BRACES=0, QUOTES=1 }; static TQStringList bibtexKeys(const Data::EntryVec& entries); static TQString bibtexKey(Data::ConstEntryPtr entry); static TQString importText(char* text); diff --git a/src/translators/btparse/ast.h b/src/translators/btparse/ast.h index 56dcb90..59622ec 100644 --- a/src/translators/btparse/ast.h +++ b/src/translators/btparse/ast.h @@ -55,9 +55,9 @@ typedef struct _ast { #else #ifdef zzAST_DOUBLE -#define AST_RETQUIRED_FIELDS struct _ast *right, *down, *left, *up; +#define AST_REQUIRED_FIELDS struct _ast *right, *down, *left, *up; #else -#define AST_RETQUIRED_FIELDS struct _ast *right, *down; +#define AST_REQUIRED_FIELDS struct _ast *right, *down; #endif #endif diff --git a/src/translators/btparse/bibtex.c b/src/translators/btparse/bibtex.c index fb4518a..c922803 100644 --- a/src/translators/btparse/bibtex.c +++ b/src/translators/btparse/bibtex.c @@ -226,7 +226,7 @@ field(AST**_root) zzastArg(1)->nodetype = BTAST_FIELD; check_field_name (zzastArg(1)); zzCONSUME; - zzmatch(ETQUALS); zzCONSUME; + zzmatch(EQUALS); zzCONSUME; value(zzSTR); zzlink(_root, &_sibling, &_tail); #if DEBUG > 1 diff --git a/src/translators/btparse/err.c b/src/translators/btparse/err.c index 341ab70..f143048 100644 --- a/src/translators/btparse/err.c +++ b/src/translators/btparse/err.c @@ -47,7 +47,7 @@ const ANTLRChar *zztokens[27]={ /* 12 */ "RBRACE", /* 13 */ "ENTRY_OPEN", /* 14 */ "ENTRY_CLOSE", - /* 15 */ "ETQUALS", + /* 15 */ "EQUALS", /* 16 */ "HASH", /* 17 */ "COMMA", /* 18 */ "\"", diff --git a/src/translators/btparse/parse_auxiliary.c b/src/translators/btparse/parse_auxiliary.c index 6284e6a..f509741 100644 --- a/src/translators/btparse/parse_auxiliary.c +++ b/src/translators/btparse/parse_auxiliary.c @@ -54,7 +54,7 @@ static struct { RBRACE, "right brace (\"}\")" }, { ENTRY_OPEN, "start of entry (\"{\" or \"(\")" }, { ENTRY_CLOSE,"end of entry (\"}\" or \")\")" }, - { ETQUALS, "\"=\"" }, + { EQUALS, "\"=\"" }, { HASH, "\"#\"" }, { COMMA, "\",\"" }, { NUMBER, "number" }, diff --git a/src/translators/btparse/scan.c b/src/translators/btparse/scan.c index 8f01d3c..b9899e4 100644 --- a/src/translators/btparse/scan.c +++ b/src/translators/btparse/scan.c @@ -188,7 +188,7 @@ static void act16() static void act17() { - NLA = ETQUALS; + NLA = EQUALS; } diff --git a/src/translators/btparse/tokens.h b/src/translators/btparse/tokens.h index 1f51459..6f9405a 100644 --- a/src/translators/btparse/tokens.h +++ b/src/translators/btparse/tokens.h @@ -17,7 +17,7 @@ #define RBRACE 12 #define ENTRY_OPEN 13 #define ENTRY_CLOSE 14 -#define ETQUALS 15 +#define EQUALS 15 #define HASH 16 #define COMMA 17 #define STRING 25 diff --git a/src/translators/libcsv.c b/src/translators/libcsv.c index 6cb39a0..4e53f63 100644 --- a/src/translators/libcsv.c +++ b/src/translators/libcsv.c @@ -114,7 +114,7 @@ csv_init(struct csv_parser **p, unsigned char options) (*p)->entry_size = MEM_BLK_SIZE; (*p)->status = 0; (*p)->options = options; - (*p)->quote_char = CSV_TQUOTE; + (*p)->quote_char = CSV_QUOTE; (*p)->delim_char = CSV_COMMA; (*p)->is_space = NULL; (*p)->is_term = NULL; diff --git a/src/translators/libcsv.h b/src/translators/libcsv.h index 4830c15..9058192 100644 --- a/src/translators/libcsv.h +++ b/src/translators/libcsv.h @@ -46,7 +46,7 @@ Copyright (C) 2007 Robert Gamble #define CSV_CR 0x0d #define CSV_LF 0x0a #define CSV_COMMA 0x2c -#define CSV_TQUOTE 0x22 +#define CSV_QUOTE 0x22 struct csv_parser { int pstate; /* Parser state */ diff --git a/src/translators/pilotdb/strop.cpp b/src/translators/pilotdb/strop.cpp index 3b0deeb..b8c7f55 100644 --- a/src/translators/pilotdb/strop.cpp +++ b/src/translators/pilotdb/strop.cpp @@ -167,7 +167,7 @@ std::string StrOps::strip_front(const std::string& str,const std::string& what) StrOps::string_list_t StrOps::csv_to_array(const std::string& str, char delim, bool quoted_string) { - enum { STATE_NORMAL, STATE_TQUOTES } state; + enum { STATE_NORMAL, STATE_QUOTES } state; StrOps::string_list_t result; std::string elem; @@ -176,7 +176,7 @@ StrOps::string_list_t StrOps::csv_to_array(const std::string& str, char delim, b switch (state) { case STATE_NORMAL: if (quoted_string && *p == '"') { - state = STATE_TQUOTES; + state = STATE_QUOTES; } else if (*p == delim) { result.push_back(elem); elem = ""; @@ -185,7 +185,7 @@ StrOps::string_list_t StrOps::csv_to_array(const std::string& str, char delim, b } break; - case STATE_TQUOTES: + case STATE_QUOTES: if (quoted_string && *p == '"') { if ((p + 1) != str.end() && *(p+1) == '"') { ++p; @@ -204,7 +204,7 @@ StrOps::string_list_t StrOps::csv_to_array(const std::string& str, char delim, b case STATE_NORMAL: result.push_back(elem); break; - case STATE_TQUOTES: + case STATE_QUOTES: kdDebug() << "unterminated quotes" << endl; break; } @@ -216,8 +216,8 @@ StrOps::string_list_t StrOps::str_to_array(const std::string& str, const std::string& delim, bool multiple_delim, bool handle_comments) { - enum { STATE_NORMAL, STATE_COMMENT, STATE_TQUOTE_DOUBLE, STATE_TQUOTE_SINGLE, - STATE_BACKSLASH, STATE_BACKSLASH_DOUBLETQUOTE } state; + enum { STATE_NORMAL, STATE_COMMENT, STATE_QUOTE_DOUBLE, STATE_QUOTE_SINGLE, + STATE_BACKSLASH, STATE_BACKSLASH_DOUBLEQUOTE } state; StrOps::string_list_t result; std::string elem; @@ -226,9 +226,9 @@ StrOps::str_to_array(const std::string& str, const std::string& delim, switch (state) { case STATE_NORMAL: if (*p == '"') { - state = STATE_TQUOTE_DOUBLE; + state = STATE_QUOTE_DOUBLE; } else if (*p == '\'') { - state = STATE_TQUOTE_SINGLE; + state = STATE_QUOTE_SINGLE; } else if (std::find(delim.begin(), delim.end(), *p) != delim.end()) { if (multiple_delim) { ++p; @@ -252,16 +252,16 @@ StrOps::str_to_array(const std::string& str, const std::string& delim, case STATE_COMMENT: break; - case STATE_TQUOTE_DOUBLE: + case STATE_QUOTE_DOUBLE: if (*p == '"') state = STATE_NORMAL; else if (*p == '\\') - state = STATE_BACKSLASH_DOUBLETQUOTE; + state = STATE_BACKSLASH_DOUBLEQUOTE; else elem += *p; break; - case STATE_TQUOTE_SINGLE: + case STATE_QUOTE_SINGLE: if (*p == '\'') state = STATE_NORMAL; else @@ -273,7 +273,7 @@ StrOps::str_to_array(const std::string& str, const std::string& delim, state = STATE_NORMAL; break; - case STATE_BACKSLASH_DOUBLETQUOTE: + case STATE_BACKSLASH_DOUBLEQUOTE: switch (*p) { case '\\': elem += '\\'; @@ -329,7 +329,7 @@ StrOps::str_to_array(const std::string& str, const std::string& delim, } // Escape is done. Go back to the normal double quote state. - state = STATE_TQUOTE_DOUBLE; + state = STATE_QUOTE_DOUBLE; break; } } @@ -339,16 +339,16 @@ StrOps::str_to_array(const std::string& str, const std::string& delim, result.push_back(elem); break; - case STATE_TQUOTE_DOUBLE: + case STATE_QUOTE_DOUBLE: kdDebug() << "unterminated double quotes" << endl; break; - case STATE_TQUOTE_SINGLE: + case STATE_QUOTE_SINGLE: kdDebug() << "unterminated single quotes" << endl; break; case STATE_BACKSLASH: - case STATE_BACKSLASH_DOUBLETQUOTE: + case STATE_BACKSLASH_DOUBLEQUOTE: kdDebug() << "an escape character must follow a backslash" << endl; break; |