From 67d3eff0ed1437047f6eb0f1057390f906b98730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Thu, 11 Apr 2024 09:33:09 +0200 Subject: [PATCH] Fix TeX syntax in documentation example. --- src/libc/dpmi/helper/mapmem.txh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libc/dpmi/helper/mapmem.txh b/src/libc/dpmi/helper/mapmem.txh index 3ec7b666..ceb9786e 100644 --- a/src/libc/dpmi/helper/mapmem.txh +++ b/src/libc/dpmi/helper/mapmem.txh @@ -60,28 +60,28 @@ DPMI server rejected the mapping request. @example void *my_page_aligned_memory = valloc (16384); if (!my_page_aligned_memory) -{ +@{ printf ("Failed to allocate page-aligned memory!\n"); return; -} +@} if (__djgpp_map_physical_memory (my_page_aligned_memory, 16384, 0x40000000)) -{ +@{ printf ("Failed to map physical addresses!\n"); -} +@} else -{ +@{ /* code which access mapped my_page_aligned_memory */ -} +@} if (__djgpp_set_page_attributes (my_page_aligned_memory, 16384, (0<<4) | (1<<3) | 1)) -{ +@{ printf ("Failed to unmap physical addresses!\n"); -} +@} else -{ +@{ free (my_page_aligned_memory); -} +@} @end example