summaryrefslogtreecommitdiff
path: root/source/compiler/aslsupport.l
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
commitc457a42be4fca72c51fdca569271b62213d01a37 (patch)
tree0ce624183fb74a6ec5d2260e6904585800e8c4d8 /source/compiler/aslsupport.l
parent65c600c804e5a81af3a34d461312027000738994 (diff)
Notes
Diffstat (limited to 'source/compiler/aslsupport.l')
-rw-r--r--source/compiler/aslsupport.l15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/compiler/aslsupport.l b/source/compiler/aslsupport.l
index 130540674d68..42cee752a952 100644
--- a/source/compiler/aslsupport.l
+++ b/source/compiler/aslsupport.l
@@ -697,15 +697,19 @@ AslDoCommentType2 (
AslInsertLineBuffer ('/');
- AslInsertLineBuffer ('*');
if (Gbl_CaptureComments && CurrentState.CaptureComments)
{
+ AslInsertLineBuffer ('*');
*StringBuffer = '/';
++StringBuffer;
*StringBuffer = '*';
++StringBuffer;
}
+ else
+ {
+ AslInsertLineBuffer ('/');
+ }
while (((c = input ()) != '\n') && (c != EOF))
{
@@ -1006,15 +1010,6 @@ CompletedString:
*StringBuffer = 0;
CleanString = UtStringCacheCalloc (strlen (MsgBuffer) + 1);
- if (!CleanString)
- {
- AslCommonError (ASL_ERROR, ASL_MSG_MEMORY_ALLOCATION,
- Gbl_CurrentLineNumber, Gbl_LogicalLineNumber,
- Gbl_CurrentLineOffset, Gbl_CurrentColumn,
- Gbl_Files[ASL_FILE_INPUT].Filename, NULL);
- return (FALSE);
- }
-
strcpy (CleanString, MsgBuffer);
AslCompilerlval.s = CleanString;
return (TRUE);