Mercurial > hg > CbC > CbC_gcc
comparison libbacktrace/mmap.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* mmap.c -- Memory allocation with mmap. | 1 /* mmap.c -- Memory allocation with mmap. |
2 Copyright (C) 2012-2018 Free Software Foundation, Inc. | 2 Copyright (C) 2012-2020 Free Software Foundation, Inc. |
3 Written by Ian Lance Taylor, Google. | 3 Written by Ian Lance Taylor, Google. |
4 | 4 |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions are | 6 modification, are permitted provided that the following conditions are |
7 met: | 7 met: |
319 alc -= aligned - size; | 319 alc -= aligned - size; |
320 | 320 |
321 backtrace_free (state, (char *) vec->base + aligned, alc, | 321 backtrace_free (state, (char *) vec->base + aligned, alc, |
322 error_callback, data); | 322 error_callback, data); |
323 vec->alc = 0; | 323 vec->alc = 0; |
324 if (vec->size == 0) | |
325 vec->base = NULL; | |
324 return 1; | 326 return 1; |
325 } | 327 } |