# HG changeset patch # User Nobuyasu Oshiro # Date 1339743540 -32400 # Node ID 88899c193e6df62a2115790bf5bd1d8ed231b24b # Parent 203699cf538495139a8ddd07bdbc54125fe54fd2 modify diff -r 203699cf5384 -r 88899c193e6d paper/Makefile --- a/paper/Makefile Fri Jun 15 10:34:00 2012 +0900 +++ b/paper/Makefile Fri Jun 15 15:59:00 2012 +0900 @@ -1,8 +1,8 @@ -DEPENDENCY = aplas2012.tex abstract 0 % sections +DEPENDENCY = rectype.ind figure/code.pdf figure/tree1.pdf figure/tree2.pdf -DEPENDOHP = ohp.tex abstract 0 % sections +DEPENDOHP = ohp.tex graphics[width=6cm] graphics[width=6cm]figure/code.pdf graphicsfigure/tree1.pdf graphicsfigure/tree2.pdf -PAPER = aplas2012.tex +PAPER = rectype.ind PRINTER = ab diff -r 203699cf5384 -r 88899c193e6d paper/o2tex --- a/paper/o2tex Fri Jun 15 10:34:00 2012 +0900 +++ b/paper/o2tex Fri Jun 15 15:59:00 2012 +0900 @@ -131,7 +131,7 @@ close fh; -$[ = 1; # set array base to 1 +#$[ = 1; # set array base to 1 $FS = ' '; # set field separator $, = ' '; # set output field separator $\ = "\n"; # set output record separator diff -r 203699cf5384 -r 88899c193e6d paper/rectype.ind --- a/paper/rectype.ind Fri Jun 15 10:34:00 2012 +0900 +++ b/paper/rectype.ind Fri Jun 15 15:59:00 2012 +0900 @@ -220,6 +220,21 @@ p's argument type is same csA that function pointer. +--Problems with implementation of \rectype. +Segmentation fault has occurred in the following program on compile. + + __code csA(__rectype *p) { + goto p(3); + } + +The above code is the wrong argument of p. +The argument convert the above code is carried out in the GCC. +3 of type int that to a pointer type conversions are made of code segment. + + + + + --How to implement \rectype \rectype syntx is implemented overriding AST. First, \rectype syntax make Tree same \code(\ref{fig:tree1}). @@ -472,3 +487,4 @@ +