ecpg: move some functions into a new file ecpg/preproc/util.c.
Tom Lane <tgl@sss.pgh.pa.us>
ecpg: move some functions into a new file ecpg/preproc/util.c. mm_alloc and mm_strdup were in type.c, which seems a completely random choice. No doubt the original author thought two small functions didn't deserve their own file. But I'm about to add some more memory-management stuff beside them, so let's put them in a less surprising place. This seems like a better home for mmerror, mmfatal, and the cat_str/make_str family, too. Discussion: https://postgr.es/m/2011420.1713493114@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/preproc/ecpg.header | modified | +0 −129 |
| src/interfaces/ecpg/preproc/Makefile | modified | +1 −0 |
| src/interfaces/ecpg/preproc/meson.build | modified | +1 −0 |
| src/interfaces/ecpg/preproc/preproc_extern.h | modified | +4 −0 |
| src/interfaces/ecpg/preproc/type.c | modified | +0 −24 |
| src/interfaces/ecpg/preproc/util.c | added | +189 −0 |
Discussion
- ECPG cleanup and fix for clang compile-time problem 25 messages · 2024-04-19 → 2024-11-27