Beispiel #1
0
    void init_charArry()
    {
        Slot = new charSlot[3];
        int count;

        for (count = 0; count < 3; count++)
        {
            Slot[count] = new charSlot();
        }
        charArry = new charSet[3];
        for (count = 0; count < 3; count++)
        {
            charArry[count] = new charSet();
        }
    }
Beispiel #2
0
        /// <summary>
        /// Finds the collection of preprocessor definitions for the configuration passed in.
        /// </summary>
        private void parseCompilerSettings_PreprocessorDefinitions(VCConfiguration vcConfiguration, VCCLCompilerTool compilerTool, ProjectConfigurationInfo_CPP configurationInfo)
        {
            // We read the delimited string of preprocessor definitions, and
            // split them...
            string strPreprocessorDefinitions = Utils.call(() => (compilerTool.PreprocessorDefinitions));

            if (strPreprocessorDefinitions == null)
            {
                return;
            }
            List <string> preprocessorDefinitions = Utils.split(strPreprocessorDefinitions, ';');

            // We add the definitions to the parsed configuration (removing ones that
            // aren't relevant to a linux build)...
            foreach (string definition in preprocessorDefinitions)
            {
                // Ignore variable with $
                if (definition.IndexOf("$") == -1)
                {
                    configurationInfo.addPreprocessorDefinition(definition);
                }
            }

            // Use of Mfc (TODO: improvement)
            useOfMfc useMfc = Utils.call(() => (vcConfiguration.useOfMfc));

            switch (useMfc)
            {
            case useOfMfc.useMfcDynamic:
                configurationInfo.addPreprocessorDefinition("_AFXDLL");
                break;
            }

            // Charset (TODO: improvement)
            charSet characterSet = Utils.call(() => (vcConfiguration.CharacterSet));

            switch (characterSet)
            {
            case charSet.charSetUnicode:
                configurationInfo.addPreprocessorDefinition("UNICODE");
                break;
            }
        }