aslfileio.c (98e0ffaefb0f241cda3a72395d3be04192ae0d47) | aslfileio.c (5ef5072350492e3ee9aff4303789fc75972b5afe) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: aslfileio - File I/O support 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2015, Intel Corp. --- 204 unchanged lines hidden (view full) --- 213 /* Write and check for error */ 214 215 Actual = fwrite ((char *) Buffer, 1, Length, Gbl_Files[FileId].Handle); 216 if (Actual != Length) 217 { 218 FlFileError (FileId, ASL_MSG_WRITE); 219 AslAbort (); 220 } | 1/****************************************************************************** 2 * 3 * Module Name: aslfileio - File I/O support 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2015, Intel Corp. --- 204 unchanged lines hidden (view full) --- 213 /* Write and check for error */ 214 215 Actual = fwrite ((char *) Buffer, 1, Length, Gbl_Files[FileId].Handle); 216 if (Actual != Length) 217 { 218 FlFileError (FileId, ASL_MSG_WRITE); 219 AslAbort (); 220 } |
221 222 if ((FileId == ASL_FILE_PREPROCESSOR) && Gbl_PreprocessorOutputFlag) 223 { 224 /* Duplicate the output to the user preprocessor (.i) file */ 225 226 Actual = fwrite ((char *) Buffer, 1, Length, 227 Gbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle); 228 if (Actual != Length) 229 { 230 FlFileError (FileId, ASL_MSG_WRITE); 231 AslAbort (); 232 } 233 } |
|
221} 222 223 224/******************************************************************************* 225 * 226 * FUNCTION: FlPrintFile 227 * 228 * PARAMETERS: FileId - Index into file info array --- 13 unchanged lines hidden (view full) --- 242 char *Format, 243 ...) 244{ 245 INT32 Actual; 246 va_list Args; 247 248 249 va_start (Args, Format); | 234} 235 236 237/******************************************************************************* 238 * 239 * FUNCTION: FlPrintFile 240 * 241 * PARAMETERS: FileId - Index into file info array --- 13 unchanged lines hidden (view full) --- 255 char *Format, 256 ...) 257{ 258 INT32 Actual; 259 va_list Args; 260 261 262 va_start (Args, Format); |
250 | |
251 Actual = vfprintf (Gbl_Files[FileId].Handle, Format, Args); 252 va_end (Args); 253 254 if (Actual == -1) 255 { 256 FlFileError (FileId, ASL_MSG_WRITE); 257 AslAbort (); 258 } | 263 Actual = vfprintf (Gbl_Files[FileId].Handle, Format, Args); 264 va_end (Args); 265 266 if (Actual == -1) 267 { 268 FlFileError (FileId, ASL_MSG_WRITE); 269 AslAbort (); 270 } |
271 272 if ((FileId == ASL_FILE_PREPROCESSOR) && Gbl_PreprocessorOutputFlag) 273 { 274 /* 275 * Duplicate the output to the user preprocessor (.i) file, 276 * except: no #line directives. 277 */ 278 if (!strncmp (Format, "#line", 5)) 279 { 280 return; 281 } 282 283 va_start (Args, Format); 284 Actual = vfprintf (Gbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle, 285 Format, Args); 286 va_end (Args); 287 288 if (Actual == -1) 289 { 290 FlFileError (FileId, ASL_MSG_WRITE); 291 AslAbort (); 292 } 293 } 294 |
|
259} 260 261 262/******************************************************************************* 263 * 264 * FUNCTION: FlSeekFile 265 * 266 * PARAMETERS: FileId - Index into file info array --- 98 unchanged lines hidden --- | 295} 296 297 298/******************************************************************************* 299 * 300 * FUNCTION: FlSeekFile 301 * 302 * PARAMETERS: FileId - Index into file info array --- 98 unchanged lines hidden --- |