"Fossies" - the Fresh Open Source Software Archive

Member "mpr-2.8/config/btsparc.c" (19 Dec 2001, 366 Bytes) of package /linux/misc/old/mpr-2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 extern int mprprint(int, char *, ...);
    2 
    3 #if __GNUC__ < 2
    4 #error you need gcc >= 2 to use this abomination
    5 #endif
    6 
    7 struct frame
    8 {
    9     void    *lreg[8];   /* local registers */
   10     void    *ireg[8];   /* in registers */
   11 };
   12 
   13 void
   14 mprbt(int fd)
   15 {
   16     struct frame *sp = __builtin_frame_address(1);
   17 
   18     while (sp && sp->ireg[7]) {
   19         mprprint(fd, "%U:", sp->ireg[7]);
   20         sp = sp->ireg[6];
   21     }
   22 }