view docs/manual/index.html @ 273:1409debcb1a0

Fix crash on listing when nested noexpand macros are used Macros flagged noexpand were causing a segfault during listing. The problem was incorrect accounting for nesting levels for noexpand macros causing the listing handler to fall off the end of the program in certain circumstances and in other circumstances it would fail to suppress expansion. Both the segfault in the case of misbehaviour and the misbhaviour itself are corrected with this update. If you do not use nested noexpand macros, this bug has no effect.
author William Astle <lost@l-w.ca>
date Sat, 25 May 2013 13:35:46 -0600
parents 155799f6cfa5
children c4853a54b4a1
line wrap: on
line source

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>LW Tool Chain</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="NEXT"
TITLE="Introduction"
HREF="c10.html"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="AEN1"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>LW Tool Chain</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN4"
></A
>William Astle</H3
><P
CLASS="COPYRIGHT"
>Copyright &copy; 2009-2013 William Astle</P
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="c10.html"
>Introduction</A
></DT
><DD
><DL
><DT
>1.1. <A
HREF="c10.html#AEN13"
>History</A
></DT
></DL
></DD
><DT
>2. <A
HREF="c18.html"
>Output Formats</A
></DT
><DD
><DL
><DT
>2.1. <A
HREF="c18.html#AEN21"
>Raw Binaries</A
></DT
><DT
>2.2. <A
HREF="x24.html"
>DECB Binaries</A
></DT
><DT
>2.3. <A
HREF="x29.html"
>OS9 Modules</A
></DT
><DT
>2.4. <A
HREF="x37.html"
>Object Files</A
></DT
></DL
></DD
><DT
>3. <A
HREF="c45.html"
>LWASM</A
></DT
><DD
><DL
><DT
>3.1. <A
HREF="c45.html#AEN48"
>Command Line Options</A
></DT
><DT
>3.2. <A
HREF="x170.html"
>Dialects</A
></DT
><DT
>3.3. <A
HREF="x177.html"
>Source Format</A
></DT
><DT
>3.4. <A
HREF="x187.html"
>Symbols</A
></DT
><DT
>3.5. <A
HREF="x192.html"
>Numbers and Expressions</A
></DT
><DT
>3.6. <A
HREF="x200.html"
>Assembler Directives</A
></DT
><DD
><DL
><DT
>3.6.1. <A
HREF="x200.html#AEN203"
>Data Directives</A
></DT
><DT
>3.6.2. <A
HREF="x200.html#AEN314"
>Address Definition</A
></DT
><DT
>3.6.3. <A
HREF="x200.html#AEN361"
>Conditional Assembly</A
></DT
><DT
>3.6.4. <A
HREF="x200.html#AEN426"
>OS9 Target Directives</A
></DT
><DT
>3.6.5. <A
HREF="x200.html#AEN451"
>Miscelaneous Directives</A
></DT
></DL
></DD
><DT
>3.7. <A
HREF="x491.html"
>Macros</A
></DT
><DT
>3.8. <A
HREF="x514.html"
>Structures</A
></DT
><DT
>3.9. <A
HREF="x535.html"
>Object Files and Sections</A
></DT
><DT
>3.10. <A
HREF="x599.html"
>Assembler Modes and Pragmas</A
></DT
></DL
></DD
><DT
>4. <A
HREF="c693.html"
>LWLINK</A
></DT
><DD
><DL
><DT
>4.1. <A
HREF="c693.html#AEN696"
>Command Line Options</A
></DT
><DT
>4.2. <A
HREF="x793.html"
>Linker Operation</A
></DT
><DT
>4.3. <A
HREF="x807.html"
>Linking Scripts</A
></DT
><DT
>4.4. <A
HREF="x864.html"
>Format Specific Linking Notes</A
></DT
><DD
><DL
><DT
>4.4.1. <A
HREF="x864.html#AEN867"
>OS9 Modules</A
></DT
></DL
></DD
></DL
></DD
><DT
>5. <A
HREF="c879.html"
>Libraries and LWAR</A
></DT
><DD
><DL
><DT
>5.1. <A
HREF="c879.html#AEN883"
>Command Line Options</A
></DT
></DL
></DD
><DT
>6. <A
HREF="c941.html"
>Object Files</A
></DT
></DL
></DIV
><DIV
CLASS="LOT"
><DL
CLASS="LOT"
><DT
><B
>List of Tables</B
></DT
><DT
>6-1. <A
HREF="c941.html#AEN966"
>Object File Term Types</A
></DT
><DT
>6-2. <A
HREF="c941.html#AEN996"
>Object File Operator Numbers</A
></DT
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c10.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Introduction</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>