Replies: 2 comments 1 reply
-
#include <i86.h> // Watcom’s DOS interrupt support // Network driver stubs (replace with real implementation) // Function prototypes // NFSv3 constants // RPC message structure // NFSv3 reply structures typedef struct { typedef struct { typedef struct { // Global variables // Send RPC and get reply // Mount NFSv3 share // Unmount NFSv3 share // NFSv3 LOOKUP // NFSv3 READ // NFSv3 READDIRPLUS // Parse path // INT 21h handler
} // Install/uninstall handler void uninstall_nfs_handler(void) { // Main function // Network driver stubs (replace with real implementation) // Function prototypes // NFSv3 constants // RPC message structure // NFSv3 reply structures typedef struct { typedef struct { typedef struct { // Global variables // Send RPC and get reply // Mount NFSv3 share // Unmount NFSv3 share // NFSv3 LOOKUP // NFSv3 READ // NFSv3 READDIRPLUS // Parse path // INT 21h handler
} // Install/uninstall handler void uninstall_nfs_handler(void) { // Main function
} |
Beta Was this translation helpful? Give feedback.
-
OW default C standard is C89 that you cannot mix data declaration with code.
after data declaration
Or if you want to use mixed declaration and code statements than it is enabled by C99 standard. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i try to create and compile a NFS cleint and i have no success. I ask google and near everithing what can genereate code but there is no right help. So maybe here can help me somewhere to fix the issue or can explain me what is wrong:
Open Watcom C16 Optimizing Compiler Version 2.0beta1 LA
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
nfc.c(213): Error! E1077: Missing '}'
nfc.c(218): Error! E1099: Statement must be inside function. Probable cause: missing {
nfc.c(310): Error! E1077: Missing '}'
nfc.c(310): Error! E1077: Missing '}'
nfc.c(310): Error! E1077: Missing '}'
nfc.c(310): Warning! W107: Missing return value for function 'main'
nfc.c(310): Error! E1054: Expression must be constant
nfc.c(311): Error! E1054: Expression must be constant
nfc.c(312): Error! E1099: Statement must be inside function. Probable cause: missing {
nfc.c(327): Error! E1099: Statement must be inside function. Probable cause: missing {
nfc.c(347): Error! E1099: Statement must be inside function. Probable cause: missing {
nfc.c: 380 lines, included 2223, 1 warnings, 10 errors
Beta Was this translation helpful? Give feedback.
All reactions