~rjwills/ensoft-sextant/packaging-fix

« back to all changes in this revision

Viewing changes to src/sextant/test_resources/parser_file2.c

  • Committer: Tarmac
  • Author(s): Ben Hutchings
  • Date: 2014-12-18 15:01:01 UTC
  • mfrom: (30.8.7 wierd-names-merge)
  • Revision ID: tarmac-20141218150101-pl5pkixozsekf86i
Function names are now cleaned up by a helper function, which removes __be_ prefixes if they are there (bi-endian builds) and converts names like <name>.<other stuff> to just <name>.

Tests extended to check that this works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include "parser_header.h"
 
3
 
 
4
static int
 
5
wierd$name(int a);
 
6
 
 
7
static int
 
8
__be_name(int a);
 
9
 
 
10
static int
 
11
wierd$name(int a)
 
12
{
 
13
    a = __be_name(inl_func(a));
 
14
    return (a);
 
15
}
 
16
 
 
17
static int
 
18
__be_name(int a)
 
19
{
 
20
    printf("In __be_name\n");
 
21
    return (a+1);
 
22
}
 
23
 
 
24