-
Notifications
You must be signed in to change notification settings - Fork 4
/
refs.c
40 lines (38 loc) · 1.3 KB
/
refs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @namespace biew
* @file refs.c
* @brief This file contains basic level routines for resolving references.
* @version -
* @remark this source file is part of Binary vIEW project (BIEW).
* The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K.
* All rights reserved. This software is redistributable under the
* licence given in the file "Licence.en" ("Licence.ru" in russian
* translation) distributed in the BIEW archive.
* @note Requires POSIX compatible development system
*
* @author Nickols_K
* @since 1995
* @note Development, fixes and improvements
**/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "reg_form.h"
#include "beyeutil.h"
#include "bconsole.h"
extern REGISTRY_BIN binTable;
unsigned long __FASTCALL__ AppendAsmRef(char *str,__filesize_t ulShift,int mode,char codelen,__filesize_t r_sh)
{
static tBool warn_displayed = False;
unsigned long ret = RAPREF_NONE;
if(detectedFormat->bind) ret = detectedFormat->bind(str,ulShift,mode,codelen,r_sh);
else
{
if(detectedFormat != &binTable && !warn_displayed)
{
WarnMessageBox("Sorry! Reference resolving for this format is still not supported",NULL);
warn_displayed = True;
}
}
return ret;
}