Merge branch 'master' into wip-manual-2
[bpt/guile.git] / libguile / backtrace.c
1 /* Printing of backtraces and error messages
2 * Copyright (C) 1996,1997,1998,1999,2000,2001, 2003, 2004, 2006, 2009, 2010 Free Software Foundation
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public License
6 * as published by the Free Software Foundation; either version 3 of
7 * the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
18 */
19
20 #ifdef HAVE_CONFIG_H
21 # include <config.h>
22 #endif
23
24 #include <stdio.h>
25 #include <ctype.h>
26
27 #include "libguile/_scm.h"
28
29 #ifdef HAVE_UNISTD_H
30 #include <unistd.h>
31 #endif
32 #ifdef HAVE_IO_H
33 #include <io.h>
34 #endif
35
36 #include "libguile/stacks.h"
37 #include "libguile/srcprop.h"
38 #include "libguile/struct.h"
39 #include "libguile/strports.h"
40 #include "libguile/throw.h"
41 #include "libguile/fluids.h"
42 #include "libguile/ports.h"
43 #include "libguile/strings.h"
44 #include "libguile/dynwind.h"
45 #include "libguile/frames.h"
46
47 #include "libguile/validate.h"
48 #include "libguile/backtrace.h"
49 #include "libguile/filesys.h"
50 #include "libguile/private-options.h"
51
52 /* {Error reporting and backtraces}
53 *
54 * Note that these functions shouldn't generate errors themselves.
55 */
56
57 /* Print parameters for error messages. */
58
59 #define DISPLAY_ERROR_MESSAGE_MAX_LEVEL 7
60 #define DISPLAY_ERROR_MESSAGE_MAX_LENGTH 10
61
62 /* Print parameters for failing expressions in error messages.
63 * (See also `print_params' below for backtrace print parameters.)
64 */
65
66 #define DISPLAY_EXPRESSION_MAX_LEVEL 2
67 #define DISPLAY_EXPRESSION_MAX_LENGTH 3
68
69 #undef SCM_ASSERT
70 #define SCM_ASSERT(_cond, _arg, _pos, _subr) \
71 if (!(_cond)) \
72 return SCM_BOOL_F;
73
74 SCM scm_the_last_stack_fluid_var;
75
76 static void
77 display_header (SCM source, SCM port)
78 {
79 scm_puts ("ERROR", port);
80 scm_puts (": ", port);
81 }
82
83
84 struct display_error_message_data {
85 SCM message;
86 SCM args;
87 SCM port;
88 scm_print_state *pstate;
89 int old_fancyp;
90 int old_level;
91 int old_length;
92 };
93
94 static SCM
95 display_error_message (struct display_error_message_data *d)
96 {
97 if (scm_is_string (d->message) && scm_is_true (scm_list_p (d->args)))
98 scm_simple_format (d->port, d->message, d->args);
99 else
100 scm_display (d->message, d->port);
101 scm_newline (d->port);
102 return SCM_UNSPECIFIED;
103 }
104
105 static void
106 before_display_error_message (struct display_error_message_data *d)
107 {
108 scm_print_state *pstate = d->pstate;
109 d->old_fancyp = pstate->fancyp;
110 d->old_level = pstate->level;
111 d->old_length = pstate->length;
112 pstate->fancyp = 1;
113 pstate->level = DISPLAY_ERROR_MESSAGE_MAX_LEVEL;
114 pstate->length = DISPLAY_ERROR_MESSAGE_MAX_LENGTH;
115 }
116
117 static void
118 after_display_error_message (struct display_error_message_data *d)
119 {
120 scm_print_state *pstate = d->pstate;
121 pstate->fancyp = d->old_fancyp;
122 pstate->level = d->old_level;
123 pstate->length = d->old_length;
124 }
125
126 void
127 scm_display_error_message (SCM message, SCM args, SCM port)
128 {
129 struct display_error_message_data d;
130 SCM print_state;
131 scm_print_state *pstate;
132
133 port = scm_i_port_with_print_state (port, SCM_UNDEFINED);
134 print_state = SCM_PORT_WITH_PS_PS (port);
135 pstate = SCM_PRINT_STATE (print_state);
136
137 d.message = message;
138 d.args = args;
139 d.port = port;
140 d.pstate = pstate;
141 scm_internal_dynamic_wind ((scm_t_guard) before_display_error_message,
142 (scm_t_inner) display_error_message,
143 (scm_t_guard) after_display_error_message,
144 &d,
145 &d);
146 }
147
148 static void
149 display_expression (SCM frame, SCM pname, SCM source, SCM port)
150 {
151 SCM print_state = scm_make_print_state ();
152 scm_print_state *pstate = SCM_PRINT_STATE (print_state);
153 pstate->writingp = 0;
154 pstate->fancyp = 1;
155 pstate->level = DISPLAY_EXPRESSION_MAX_LEVEL;
156 pstate->length = DISPLAY_EXPRESSION_MAX_LENGTH;
157 if (scm_is_symbol (pname) || scm_is_string (pname))
158 {
159 scm_puts ("In procedure ", port);
160 scm_iprin1 (pname, port, pstate);
161 }
162 scm_puts (":\n", port);
163 scm_free_print_state (print_state);
164 }
165
166 struct display_error_args {
167 SCM stack;
168 SCM port;
169 SCM subr;
170 SCM message;
171 SCM args;
172 SCM rest;
173 };
174
175 static SCM
176 display_error_body (struct display_error_args *a)
177 {
178 SCM current_frame = SCM_BOOL_F;
179 SCM source = SCM_BOOL_F;
180 SCM pname = a->subr;
181
182 if (scm_is_symbol (pname) || scm_is_string (pname))
183 {
184 display_header (source, a->port);
185 display_expression (current_frame, pname, source, a->port);
186 }
187 display_header (source, a->port);
188 scm_display_error_message (a->message, a->args, a->port);
189 return SCM_UNSPECIFIED;
190 }
191
192 struct display_error_handler_data {
193 char *mode;
194 SCM port;
195 };
196
197 /* This is the exception handler for error reporting routines.
198 Note that it is very important that this handler *doesn't* try to
199 print more than the error tag, since the error very probably is
200 caused by an erroneous print call-back routine. If we would
201 try to print all objects, we would enter an infinite loop. */
202 static SCM
203 display_error_handler (struct display_error_handler_data *data,
204 SCM tag, SCM args SCM_UNUSED)
205 {
206 SCM print_state = scm_make_print_state ();
207 scm_puts ("\nException during displaying of ", data->port);
208 scm_puts (data->mode, data->port);
209 scm_puts (": ", data->port);
210 scm_iprin1 (tag, data->port, SCM_PRINT_STATE (print_state));
211 scm_putc ('\n', data->port);
212 return SCM_UNSPECIFIED;
213 }
214
215
216 /* The function scm_i_display_error prints out a detailed error message. This
217 * function will be called directly within libguile to signal error messages.
218 * No parameter checks will be performed by scm_i_display_error. Thus, User
219 * code should rather use the function scm_display_error.
220 */
221 void
222 scm_i_display_error (SCM stack, SCM port, SCM subr, SCM message, SCM args, SCM rest)
223 {
224 struct display_error_args a;
225 struct display_error_handler_data data;
226 a.stack = stack;
227 a.port = port;
228 a.subr = subr;
229 a.message = message;
230 a.args = args;
231 a.rest = rest;
232 data.mode = "error";
233 data.port = port;
234 scm_internal_catch (SCM_BOOL_T,
235 (scm_t_catch_body) display_error_body, &a,
236 (scm_t_catch_handler) display_error_handler, &data);
237 }
238
239
240 SCM_DEFINE (scm_display_error, "display-error", 6, 0, 0,
241 (SCM stack, SCM port, SCM subr, SCM message, SCM args, SCM rest),
242 "Display an error message to the output port @var{port}.\n"
243 "@var{stack} is the saved stack for the error, @var{subr} is\n"
244 "the name of the procedure in which the error occurred and\n"
245 "@var{message} is the actual error message, which may contain\n"
246 "formatting instructions. These will format the arguments in\n"
247 "the list @var{args} accordingly. @var{rest} is currently\n"
248 "ignored.")
249 #define FUNC_NAME s_scm_display_error
250 {
251 SCM_VALIDATE_OUTPUT_PORT (2, port);
252
253 scm_i_display_error (stack, port, subr, message, args, rest);
254
255 return SCM_UNSPECIFIED;
256 }
257 #undef FUNC_NAME
258
259
260 typedef struct {
261 int level;
262 int length;
263 } print_params_t;
264
265 static int n_print_params = 9;
266 static print_params_t default_print_params[] = {
267 { 4, 9 }, { 4, 3 },
268 { 3, 4 }, { 3, 3 },
269 { 2, 4 }, { 2, 3 },
270 { 1, 4 }, { 1, 3 }, { 1, 2 }
271 };
272 static print_params_t *print_params = default_print_params;
273
274 #ifdef GUILE_DEBUG
275 SCM_DEFINE (scm_set_print_params_x, "set-print-params!", 1, 0, 0,
276 (SCM params),
277 "Set the print parameters to the values from @var{params}.\n"
278 "@var{params} must be a list of two-element lists which must\n"
279 "hold two integer values.")
280 #define FUNC_NAME s_scm_set_print_params_x
281 {
282 int i;
283 int n;
284 SCM ls;
285 print_params_t *new_params;
286
287 SCM_VALIDATE_NONEMPTYLIST_COPYLEN (2, params, n);
288 for (ls = params; !SCM_NULL_OR_NIL_P (ls); ls = SCM_CDR (ls))
289 SCM_ASSERT (scm_ilength (SCM_CAR (params)) == 2
290 && scm_is_unsigned_integer (SCM_CAAR (ls), 0, INT_MAX)
291 && scm_is_unsigned_integer (SCM_CADAR (ls), 0, INT_MAX),
292 params,
293 SCM_ARG2,
294 s_scm_set_print_params_x);
295 new_params = scm_malloc (n * sizeof (print_params_t));
296 if (print_params != default_print_params)
297 free (print_params);
298 print_params = new_params;
299 for (i = 0; i < n; ++i)
300 {
301 print_params[i].level = scm_to_int (SCM_CAAR (params));
302 print_params[i].length = scm_to_int (SCM_CADAR (params));
303 params = SCM_CDR (params);
304 }
305 n_print_params = n;
306 return SCM_UNSPECIFIED;
307 }
308 #undef FUNC_NAME
309 #endif
310
311 static void
312 indent (int n, SCM port)
313 {
314 int i;
315 for (i = 0; i < n; ++i)
316 scm_putc (' ', port);
317 }
318
319 static void
320 display_frame_expr (char *hdr, SCM exp, char *tlr, int indentation, SCM sport, SCM port, scm_print_state *pstate)
321 {
322 int i = 0, n;
323 scm_t_ptob_descriptor *ptob = scm_ptobs + SCM_PTOBNUM (sport);
324 do
325 {
326 pstate->length = print_params[i].length;
327 ptob->seek (sport, 0, SEEK_SET);
328 if (scm_is_pair (exp))
329 {
330 pstate->level = print_params[i].level - 1;
331 scm_iprlist (hdr, exp, tlr[0], sport, pstate);
332 scm_puts (&tlr[1], sport);
333 }
334 else
335 {
336 pstate->level = print_params[i].level;
337 scm_iprin1 (exp, sport, pstate);
338 }
339 ptob->flush (sport);
340 n = ptob->seek (sport, 0, SEEK_CUR);
341 ++i;
342 }
343 while (indentation + n > SCM_BACKTRACE_WIDTH && i < n_print_params);
344 ptob->truncate (sport, n);
345
346 scm_display (scm_strport_to_string (sport), port);
347 }
348
349 static void
350 display_application (SCM frame, int indentation, SCM sport, SCM port, scm_print_state *pstate)
351 {
352 SCM proc = scm_frame_procedure (frame);
353 SCM name = (scm_is_true (scm_procedure_p (proc))
354 ? scm_procedure_name (proc)
355 : SCM_BOOL_F);
356 display_frame_expr ("[",
357 scm_cons (scm_is_true (name) ? name : proc,
358 scm_frame_arguments (frame)),
359 "]",
360 indentation,
361 sport,
362 port,
363 pstate);
364 }
365
366 SCM_DEFINE (scm_display_application, "display-application", 1, 2, 0,
367 (SCM frame, SCM port, SCM indent),
368 "Display a procedure application @var{frame} to the output port\n"
369 "@var{port}. @var{indent} specifies the indentation of the\n"
370 "output.")
371 #define FUNC_NAME s_scm_display_application
372 {
373 SCM_VALIDATE_FRAME (1, frame);
374 if (SCM_UNBNDP (port))
375 port = scm_current_output_port ();
376 else
377 SCM_VALIDATE_OPOUTPORT (2, port);
378 if (SCM_UNBNDP (indent))
379 indent = SCM_INUM0;
380
381 /* Display an application. */
382 {
383 SCM sport, print_state;
384 scm_print_state *pstate;
385
386 /* Create a string port used for adaptation of printing parameters. */
387 sport = scm_mkstrport (SCM_INUM0,
388 scm_make_string (scm_from_int (240),
389 SCM_UNDEFINED),
390 SCM_OPN | SCM_WRTNG,
391 FUNC_NAME);
392
393 /* Create a print state for printing of frames. */
394 print_state = scm_make_print_state ();
395 pstate = SCM_PRINT_STATE (print_state);
396 pstate->writingp = 1;
397 pstate->fancyp = 1;
398
399 display_application (frame, scm_to_int (indent), sport, port, pstate);
400 return SCM_BOOL_T;
401 }
402 }
403 #undef FUNC_NAME
404
405 SCM_SYMBOL (sym_base, "base");
406
407 static void
408 display_backtrace_get_file_line (SCM frame, SCM *file, SCM *line)
409 {
410 SCM source = scm_frame_source (frame);
411 *file = *line = SCM_BOOL_F;
412 if (scm_is_pair (source)
413 && scm_is_pair (scm_cdr (source))
414 && scm_is_pair (scm_cddr (source))
415 && !scm_is_pair (scm_cdddr (source)))
416 {
417 /* (addr . (filename . (line . column))), from vm compilation */
418 *file = scm_cadr (source);
419 *line = scm_caddr (source);
420 }
421 }
422
423 static void
424 display_backtrace_file (frame, last_file, port, pstate)
425 SCM frame;
426 SCM *last_file;
427 SCM port;
428 scm_print_state *pstate;
429 {
430 SCM file, line;
431
432 display_backtrace_get_file_line (frame, &file, &line);
433
434 if (scm_is_true (scm_equal_p (file, *last_file)))
435 return;
436
437 *last_file = file;
438
439 scm_puts ("In ", port);
440 if (scm_is_false (file))
441 if (scm_is_false (line))
442 scm_puts ("unknown file", port);
443 else
444 scm_puts ("current input", port);
445 else
446 {
447 pstate->writingp = 0;
448 scm_iprin1 (file, port, pstate);
449 pstate->writingp = 1;
450 }
451 scm_puts (":\n", port);
452 }
453
454 static void
455 display_backtrace_file_and_line (SCM frame, SCM port, scm_print_state *pstate)
456 {
457 SCM file, line;
458
459 display_backtrace_get_file_line (frame, &file, &line);
460
461 if (scm_is_eq (SCM_PACK (SCM_SHOW_FILE_NAME), sym_base))
462 {
463 if (scm_is_false (file))
464 {
465 if (scm_is_false (line))
466 scm_putc ('?', port);
467 else
468 scm_puts ("<stdin>", port);
469 }
470 else
471 {
472 pstate -> writingp = 0;
473 #ifdef HAVE_POSIX
474 scm_iprin1 ((scm_is_string (file)?
475 scm_basename (file, SCM_UNDEFINED) : file),
476 port, pstate);
477 #else
478 scm_iprin1 (file, port, pstate);
479 #endif
480 pstate -> writingp = 1;
481 }
482
483 scm_putc (':', port);
484 }
485 else if (scm_is_true (line))
486 {
487 int i, j=0;
488 for (i = scm_to_int (line)+1; i > 0; i = i/10, j++)
489 ;
490 indent (4-j, port);
491 }
492
493 if (scm_is_false (line))
494 scm_puts (" ?", port);
495 else
496 scm_intprint (scm_to_int (line) + 1, 10, port);
497 scm_puts (": ", port);
498 }
499
500 static void
501 display_frame (SCM frame, int n, int nfield, int indentation,
502 SCM sport, SCM port, scm_print_state *pstate)
503 {
504 int i, j;
505
506 /* display file name and line number */
507 if (scm_is_true (SCM_PACK (SCM_SHOW_FILE_NAME)))
508 display_backtrace_file_and_line (frame, port, pstate);
509
510 /* Check size of frame number. */
511 for (i = 0, j = n; j > 0; ++i) j /= 10;
512
513 /* Number indentation. */
514 indent (nfield - (i ? i : 1), port);
515
516 /* Frame number. */
517 scm_iprin1 (scm_from_int (n), port, pstate);
518
519 /* Indentation. */
520 indent (indentation, port);
521
522 /* Display an application. */
523 display_application (frame, nfield + 1 + indentation, sport, port, pstate);
524 scm_putc ('\n', port);
525 }
526
527 struct display_backtrace_args {
528 SCM stack;
529 SCM port;
530 SCM first;
531 SCM depth;
532 SCM highlight_objects;
533 };
534
535 static SCM
536 display_backtrace_body (struct display_backtrace_args *a)
537 #define FUNC_NAME "display_backtrace_body"
538 {
539 int n_frames, beg, end, n, i, j;
540 int nfield, indent_p, indentation;
541 SCM frame, sport, print_state;
542 SCM last_file;
543 scm_print_state *pstate;
544
545 a->port = SCM_COERCE_OUTPORT (a->port);
546
547 /* Argument checking and extraction. */
548 SCM_VALIDATE_STACK (1, a->stack);
549 SCM_VALIDATE_OPOUTPORT (2, a->port);
550 n_frames = scm_to_int (scm_stack_length (a->stack));
551 n = scm_is_integer (a->depth) ? scm_to_int (a->depth) : SCM_BACKTRACE_DEPTH;
552 if (SCM_BACKWARDS_P)
553 {
554 beg = scm_is_integer (a->first) ? scm_to_int (a->first) : 0;
555 end = beg + n - 1;
556 if (end >= n_frames)
557 end = n_frames - 1;
558 n = end - beg + 1;
559 }
560 else
561 {
562 if (scm_is_integer (a->first))
563 {
564 beg = scm_to_int (a->first);
565 end = beg - n + 1;
566 if (end < 0)
567 end = 0;
568 }
569 else
570 {
571 beg = n - 1;
572 end = 0;
573 if (beg >= n_frames)
574 beg = n_frames - 1;
575 }
576 n = beg - end + 1;
577 }
578 SCM_ASSERT (beg >= 0 && beg < n_frames, a->first, SCM_ARG3, s_display_backtrace);
579 SCM_ASSERT (n > 0, a->depth, SCM_ARG4, s_display_backtrace);
580
581 /* Create a string port used for adaptation of printing parameters. */
582 sport = scm_mkstrport (SCM_INUM0,
583 scm_make_string (scm_from_int (240), SCM_UNDEFINED),
584 SCM_OPN | SCM_WRTNG,
585 FUNC_NAME);
586
587 /* Create a print state for printing of frames. */
588 print_state = scm_make_print_state ();
589 pstate = SCM_PRINT_STATE (print_state);
590 pstate->writingp = 1;
591 pstate->fancyp = 1;
592 pstate->highlight_objects = a->highlight_objects;
593
594 /* First find out if it's reasonable to do indentation. */
595 indent_p = 0;
596
597 /* Determine size of frame number field. */
598 j = end;
599 for (i = 0; j > 0; ++i) j /= 10;
600 nfield = i ? i : 1;
601
602 /* Print frames. */
603 indentation = 1;
604 last_file = SCM_UNDEFINED;
605 if (SCM_BACKWARDS_P)
606 end++;
607 else
608 end--;
609 for (i = beg; i != end; SCM_BACKWARDS_P ? ++i : --i)
610 {
611 frame = scm_stack_ref (a->stack, scm_from_int (i));
612 if (!scm_is_eq (SCM_PACK (SCM_SHOW_FILE_NAME), sym_base))
613 display_backtrace_file (frame, &last_file, a->port, pstate);
614 display_frame (frame, i, nfield, indentation, sport, a->port, pstate);
615 }
616
617 scm_remember_upto_here_1 (print_state);
618
619 return SCM_UNSPECIFIED;
620 }
621 #undef FUNC_NAME
622
623 SCM_DEFINE (scm_display_backtrace_with_highlights, "display-backtrace", 2, 3, 0,
624 (SCM stack, SCM port, SCM first, SCM depth, SCM highlights),
625 "Display a backtrace to the output port @var{port}. @var{stack}\n"
626 "is the stack to take the backtrace from, @var{first} specifies\n"
627 "where in the stack to start and @var{depth} how many frames\n"
628 "to display. @var{first} and @var{depth} can be @code{#f},\n"
629 "which means that default values will be used.\n"
630 "If @var{highlights} is given it should be a list; the elements\n"
631 "of this list will be highlighted wherever they appear in the\n"
632 "backtrace.")
633 #define FUNC_NAME s_scm_display_backtrace_with_highlights
634 {
635 struct display_backtrace_args a;
636 struct display_error_handler_data data;
637 a.stack = stack;
638 a.port = port;
639 a.first = first;
640 a.depth = depth;
641 if (SCM_UNBNDP (highlights))
642 a.highlight_objects = SCM_EOL;
643 else
644 a.highlight_objects = highlights;
645 data.mode = "backtrace";
646 data.port = port;
647 scm_internal_catch (SCM_BOOL_T,
648 (scm_t_catch_body) display_backtrace_body, &a,
649 (scm_t_catch_handler) display_error_handler, &data);
650 return SCM_UNSPECIFIED;
651 }
652 #undef FUNC_NAME
653
654 SCM
655 scm_display_backtrace (SCM stack, SCM port, SCM first, SCM depth)
656 {
657 return scm_display_backtrace_with_highlights (stack, port, first, depth,
658 SCM_EOL);
659 }
660
661 SCM_VARIABLE (scm_has_shown_backtrace_hint_p_var, "has-shown-backtrace-hint?");
662
663 SCM_DEFINE (scm_backtrace_with_highlights, "backtrace", 0, 1, 0,
664 (SCM highlights),
665 "Display a backtrace of the stack saved by the last error\n"
666 "to the current output port. If @var{highlights} is given\n"
667 "it should be a list; the elements of this list will be\n"
668 "highlighted wherever they appear in the backtrace.")
669 #define FUNC_NAME s_scm_backtrace_with_highlights
670 {
671 SCM port = scm_current_output_port ();
672 SCM the_last_stack =
673 scm_fluid_ref (SCM_VARIABLE_REF (scm_the_last_stack_fluid_var));
674
675 if (SCM_UNBNDP (highlights))
676 highlights = SCM_EOL;
677
678 if (scm_is_true (the_last_stack))
679 {
680 scm_newline (port);
681 scm_puts ("Backtrace:\n", port);
682 scm_display_backtrace_with_highlights (the_last_stack,
683 port,
684 SCM_BOOL_F,
685 SCM_BOOL_F,
686 highlights);
687 scm_newline (port);
688 if (scm_is_false (SCM_VARIABLE_REF (scm_has_shown_backtrace_hint_p_var))
689 && !SCM_BACKTRACE_P)
690 {
691 scm_puts ("Type \"(debug-enable 'backtrace)\" if you would like "
692 "a backtrace\n"
693 "automatically if an error occurs in the future.\n",
694 port);
695 SCM_VARIABLE_SET (scm_has_shown_backtrace_hint_p_var, SCM_BOOL_T);
696 }
697 }
698 else
699 {
700 scm_puts ("No backtrace available.\n", port);
701 }
702 return SCM_UNSPECIFIED;
703 }
704 #undef FUNC_NAME
705
706 SCM
707 scm_backtrace (void)
708 {
709 return scm_backtrace_with_highlights (SCM_EOL);
710 }
711
712 \f
713
714 void
715 scm_init_backtrace ()
716 {
717 SCM f = scm_make_fluid ();
718 scm_the_last_stack_fluid_var = scm_c_define ("the-last-stack", f);
719
720 #include "libguile/backtrace.x"
721 }
722
723 /*
724 Local Variables:
725 c-file-style: "gnu"
726 End:
727 */