diff options
Diffstat (limited to 'source/tools/acpisrc')
-rw-r--r-- | source/tools/acpisrc/acpisrc.h | 10 | ||||
-rw-r--r-- | source/tools/acpisrc/ascase.c | 2 | ||||
-rw-r--r-- | source/tools/acpisrc/asconvrt.c | 4 | ||||
-rw-r--r-- | source/tools/acpisrc/asfile.c | 4 | ||||
-rw-r--r-- | source/tools/acpisrc/asmain.c | 2 | ||||
-rw-r--r-- | source/tools/acpisrc/asremove.c | 2 | ||||
-rw-r--r-- | source/tools/acpisrc/astable.c | 10 | ||||
-rw-r--r-- | source/tools/acpisrc/asutils.c | 36 |
8 files changed, 53 insertions, 17 deletions
diff --git a/source/tools/acpisrc/acpisrc.h b/source/tools/acpisrc/acpisrc.h index e628f34ae7025..c1bd992c6d7aa 100644 --- a/source/tools/acpisrc/acpisrc.h +++ b/source/tools/acpisrc/acpisrc.h @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -48,14 +48,12 @@ #include <sys/stat.h> #include <errno.h> -/* mkdir/strlwr support */ +/* mkdir support */ #ifdef WIN32 #include <direct.h> - #else #define mkdir(x) mkdir(x, 0770) -char * strlwr(char* str); #endif @@ -402,3 +400,7 @@ AsInsertCarriageReturns ( void AsConvertToLineFeeds ( char *Buffer); + +void +AsStrlwr ( + char *SrcString); diff --git a/source/tools/acpisrc/ascase.c b/source/tools/acpisrc/ascase.c index 96e1269eaaf39..ea669a809a8d7 100644 --- a/source/tools/acpisrc/ascase.c +++ b/source/tools/acpisrc/ascase.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/source/tools/acpisrc/asconvrt.c b/source/tools/acpisrc/asconvrt.c index ff2804d72fce3..22eee864a344f 100644 --- a/source/tools/acpisrc/asconvrt.c +++ b/source/tools/acpisrc/asconvrt.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1345,7 +1345,7 @@ AsInsertPrefix ( } strcpy (LowerKeyword, Keyword); - strlwr (LowerKeyword); + AsStrlwr (LowerKeyword); SubBuffer = Buffer; SubString = Buffer; diff --git a/source/tools/acpisrc/asfile.c b/source/tools/acpisrc/asfile.c index f5b09338e5ec7..c21703c03fa30 100644 --- a/source/tools/acpisrc/asfile.c +++ b/source/tools/acpisrc/asfile.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -178,7 +178,7 @@ AsProcessTree ( { if (ConversionTable->Flags & FLG_LOWERCASE_DIRNAMES) { - strlwr (TargetPath); + AsStrlwr (TargetPath); } VERBOSE_PRINT (("Creating Directory \"%s\"\n", TargetPath)); diff --git a/source/tools/acpisrc/asmain.c b/source/tools/acpisrc/asmain.c index 2e38e3481f571..d3c68c54d7a30 100644 --- a/source/tools/acpisrc/asmain.c +++ b/source/tools/acpisrc/asmain.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/source/tools/acpisrc/asremove.c b/source/tools/acpisrc/asremove.c index 54da0af0b1919..fded3fd957fa3 100644 --- a/source/tools/acpisrc/asremove.c +++ b/source/tools/acpisrc/asremove.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/source/tools/acpisrc/astable.c b/source/tools/acpisrc/astable.c index 88226e0ad8bf9..e655818464fef 100644 --- a/source/tools/acpisrc/astable.c +++ b/source/tools/acpisrc/astable.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -90,7 +90,7 @@ ACPI_STRING_TABLE StandardDataTypes[] = { char DualLicenseHeader[] = "/*\n" -" * Copyright (C) 2000 - 2012, Intel Corp.\n" +" * Copyright (C) 2000 - 2013, Intel Corp.\n" " * All rights reserved.\n" " *\n" " * Redistribution and use in source and binary forms, with or without\n" @@ -820,12 +820,12 @@ ACPI_CONVERSION_TABLE LicenseConversionTable = { ACPI_STRING_TABLE CustomReplacements[] = { + {"(c) 1999 - 2012", "(c) 1999 - 2013", REPLACE_WHOLE_WORD}, /* Main ACPICA source */ + {"(c) 2006 - 2012", "(c) 2006 - 2013", REPLACE_WHOLE_WORD}, /* Test suites */ + #if 0 {"SUPPORT, ASSISTANCE", "SUPPORT, ASSISTANCE", REPLACE_WHOLE_WORD}, /* Fix intel header */ - {"(c) 1999 - 2012", "(c) 1999 - 2012", REPLACE_WHOLE_WORD}, /* Main ACPICA source */ - {"(c) 2006 - 2012", "(c) 2006 - 2012", REPLACE_WHOLE_WORD}, /* Test suites */ - {"(ACPI_INTEGER)", "(UINT64)", REPLACE_WHOLE_WORD}, {"ACPI_INTEGER ", "UINT64 ", REPLACE_WHOLE_WORD}, {"ACPI_INTEGER", "UINT64", REPLACE_WHOLE_WORD}, diff --git a/source/tools/acpisrc/asutils.c b/source/tools/acpisrc/asutils.c index f3d9350a3108f..a358596965460 100644 --- a/source/tools/acpisrc/asutils.c +++ b/source/tools/acpisrc/asutils.c @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,40 @@ #include "acpisrc.h" +/******************************************************************************* + * + * FUNCTION: AsStrlwr (strlwr) + * + * PARAMETERS: SrcString - The source string to convert + * + * RETURN: None + * + * DESCRIPTION: Convert string to lowercase + * + * NOTE: This is not a POSIX function, so it appears here so that we don't have + * header file issues with the various hosts/compilers/clibs. + * + ******************************************************************************/ + +void +AsStrlwr ( + char *SrcString) +{ + char *String; + + + /* Walk entire string, lowercasing the letters */ + + if (SrcString) + { + for (String = SrcString; *String; String++) + { + *String = (char) ACPI_TOLOWER (*String); + } + } +} + + /****************************************************************************** * * FUNCTION: AsSkipUntilChar |