Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/src/omega_resolve_osc.h # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / src / omega_resolve_osc.h` 39 lines ยท 1666 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev) 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef OMEGA_RESOLVE_OSC_H 18 #define OMEGA_RESOLVE_OSC_H 19 20 /* The adapter between the OSC front end's import hook (osc_front.h) and the resolver 21 * (omega_resolve.h). Lives in src/, not src/compiler/, so the plain compiler suite never links 22 * the resolver. Used by the verified driver (src/oscv_main.c) and by tests. */ 23 24 #include "omega_resolve.h" 25 #include "osc_front.h" 26 27 typedef struct { 28 OmegaResolver resolver; 29 const OmegaLock *lock; /* NULL = no lock file (an empty lock) */ 30 OmegaClosure closure; /* filled by a successful call; free with omega_closure_free */ 31 OmegaResolveError err; /* filled by a refused call */ 32 int resolved; /* 1 once a call succeeded */ 33 uint32_t n_imports; /* imports seen by the last call */ 34 } OmegaOscImports; 35 36 /* An OscImportResolver. why = "CODE_NAME: message". */ 37 int omega_osc_import_hook(void *ctx, const OscImport *imports, uint32_t n, uint32_t *bad, char *why, size_t why_cap); 38 39 #endif /* OMEGA_RESOLVE_OSC_H */