From 79df7a5bf4a1caafd48d382ef2f326822786261d Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 28 Aug 2002 16:59:20 +0000 Subject: [PATCH] Removed SetLanguage (back to $LANGUAGE) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@778 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/fileform.h | 2 -- Source/script.cpp | 5 ----- Source/tokens.cpp | 1 - Source/tokens.h | 1 - 4 files changed, 9 deletions(-) diff --git a/Source/exehead/fileform.h b/Source/exehead/fileform.h index c9b7f74a..90fb3ab5 100644 --- a/Source/exehead/fileform.h +++ b/Source/exehead/fileform.h @@ -121,8 +121,6 @@ enum EW_CREATEFONT, // CreateFont: 5: [handle output, face name, height, weight, flags] - EW_SETLANG, // SetLanguage: 1: [language] - // instructions not actually implemented in exehead, but used in compiler. EW_GETLABELADDR, // both of these get converted to EW_ASSIGNVAR EW_GETFUNCTIONADDR, diff --git a/Source/script.cpp b/Source/script.cpp index e9b02198..983788bf 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3401,11 +3401,6 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char } SCRIPT_MSG("\n"); return add_entry(&ent); - case TOK_SETLANG: - ent.which=EW_SETLANG; - ent.offsets[0]=add_string(line.gettoken_str(1)); - SCRIPT_MSG("SetLanguage: language=%s\n", line.gettoken_str(1)); - return add_entry(&ent); // end of instructions /////////////////////////////////////////////////////////////////////////////// diff --git a/Source/tokens.cpp b/Source/tokens.cpp index 149537ab..15087696 100644 --- a/Source/tokens.cpp +++ b/Source/tokens.cpp @@ -135,7 +135,6 @@ static tokenType tokenlist[TOK__LAST] = {TOK_SETERRORS,"SetErrors",0,0,""}, {TOK_SETFILEATTRIBUTES,"SetFileAttributes",2,0,"file attribute[|attribute[...]]\n attribute=(NORMAL|ARCHIVE|HIDDEN|OFFLINE|READONLY|SYSTEM|TEMPORARY|0)"}, {TOK_SETFONT,"SetFont",2,0,"font_face_name font_size"}, -{TOK_SETLANG,"SetLanguage",1,0,"language_id"}, {TOK_SETOUTPATH,"SetOutPath",1,0,"output_path"}, {TOK_SETOVERWRITE,"SetOverwrite",1,0,"(on|off|try|ifnewer)"}, {TOK_SETREBOOTFLAG,"SetRebootFlag",1,0,"true|false"}, diff --git a/Source/tokens.h b/Source/tokens.h index fa35df9a..2141de24 100644 --- a/Source/tokens.h +++ b/Source/tokens.h @@ -189,7 +189,6 @@ enum TOK_SETSHELLVARCONTEXT, TOK_PLUGINDIR, TOK_CREATEFONT, - TOK_SETLANG, TOK__LAST, TOK__PLUGINCOMMAND