Home:ALL Converter>Was my C file generated from Pro*C

Was my C file generated from Pro*C

Ask Time:2017-11-15T20:49:19         Author:varrtto

Json Formatter

We are in the process of inhereting an application from another developer. To support it properly we are first auditing what's working and what's missing in the application, and if all the fonts compile to the matching binaries.

During this process, we found a C file, which to my little knowledge in the subject, seems to have been generated from a Pro*C file.

When confronted, the previous developer says it is NOT generated from a Pro*C and that he just modifies it in Visual Studio (Odd). It seems close to imposible to maintain such a file as it is. Let me show you some things in it:

/* CUD (Compilation Unit Data) Array */
static short sqlcud0[] =
{12,4130,31,0,0,
5,0,0,0,0,0,27,980,0,0,4,4,0,1,0,1,9,0,0,1,10,0,0,1,10,0,0,1,10,0,0,
36,0,0,2,60,0,4,984,0,0,1,0,0,1,0,2,3,0,0,
55,0,0,3,74,0,2,1000,0,0,3,3,0,1,0,1,3,0,0,1,3,0,0,1,3,0,0,
82,0,0,4,0,0,29,1077,0,0,0,0,0,1,0,

This array goes on for over 17 thousand characters.

Or even:

static struct sqlcxp sqlfpn =
{
    10,
    "nameoftheCfile.pc"
};

So, I was wondering, is it possible that he is really using some Visual Studio tool to generate this C file, and it's not really a ProC? Is it possible that Visual Studio or other tool generates this file, and he is unaware that it comes from a ProC file? Is it possible to confirm a 100% that this is actually a compiled Pro*C file?

I'm hoping this is just a misunderstanding with the previous developer and not that he is refusing to give us the original fonts...

Thanks in advance.

Author:varrtto,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47307877/was-my-c-file-generated-from-proc
yy